Skip to content
Discussion options

You must be logged in to vote

Hi @dofdary!

You can define the column template yourself with custom widths:

with ui.grid().classes("w-full").style("grid-template-columns: auto auto auto auto 1fr"):
    for _ in range(4):
        ui.icon("visibility")
    ui.link("https://quasar.dev/layout/grid/row#setting-one-column-width")
  • auto: This value makes the column only as wide as the content inside it. If you specify this value for the first 4 columns, they will each take up only as much space as they need.
  • 1fr: This value distributes container space proportionally. So, if you use 1fr for the last column, it will take up any remaining space in the grid container.

But you can also use a ui.row:

with ui.row().classes("w-full")…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by dofdary
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