posit-dev / posit-dev/py-shiny

Left Side Bar for ui.navset_pill_list

Open
#700 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.8k
Forks
135
Avg merge
2d 18h
Merged PRs (30d)
21

Description

I'm trying to implement a left side tab bar into my app, and I currently using ui.navset_pill_list to achieve this. When looking at its documentation (https://shiny.posit.co/py/api/ui.navset_pill_list.html), I can adjust the widths of the side bar and contents, but they scale based on the hosting window's size (not fixed.) Is there a way to set the side bar to a fixed size? Also, the widths are in int, so I can't get the exact size I would like to fit each tab's name in 1 line without being oversized. Is there any work around to get a more accurate size?

This Issue was originally posted on the Shiny Discord.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the ui.navset_pill_list documentation and its implementation entry point. Check how sidebar and content widths are interpreted, then determine whether fixed sizing and more precise tab-width values can be supported. Done means the requested sizing behavior is available and documented, with coverage for the relevant width inputs.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.