Skip to content

How to remove the white border located to the right of the left-drawer element #4558

Closed Answered by evnchn
lucasli0121 asked this question in Q&A
Discussion options

You must be logged in to vote

@lucasli0121 solved it from root cause. No need CSS hack to override width using !important

TL-DR: Quasar needs to know the width. Simply set CSS is nightmare for it, and things will break. Let it know via .props("width=260")

Notice how the style padding-left: 300px; and left: 300px is set and unset when the left drawer is shown / hidden based on browser width? Yes, it is because it is Quasar setting it. This is why we need to tell Quasar what width we are setting.

Reference:

quasarframework/quasar#15148

https://quasar.dev/layout/drawer#qdrawer-api

from nicegui import ui

ui.add_css('''
    .custom-tabs .q-tab__indicator {
        display: none !important; 
    }
    .custom-tabs .q-tab__…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@lucasli0121
Comment options

@lucasli0121
Comment options

Comment options

You must be logged in to vote
2 replies
@evnchn
Comment options

evnchn Apr 2, 2025
Collaborator

@lucasli0121
Comment options

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