Skip to content

Tabs menu alignment #3428

Discussion options

You must be logged in to vote

Hi @BattlemasterLoL,

To left-align the tabs, you can justify the tabs (similar to #1248):

ui.tab(...).classes('justify-start')

To fill the vertical screen size, replace "h-full" (100% of the parent container) with "h-screen" (100% of the screen size). Because there is no parent container with a height constraint, "h-full" is ineffective here.
This will allow the page to scroll a little bit due to padding. You can either remove the padding like this:

ui.query('.nicegui-content').classes('p-0')

or subtract it from the screen size like this:

with ui.splitter(value=15).classes('w-full h-[calc(100vh-2rem)]') as splitter:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BattlemasterLoL
Comment options

Answer selected by BattlemasterLoL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants