posit-dev / posit-dev/py-shiny
Left Side Bar for ui.navset_pill_list
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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