Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

css class 'st-col' breaks q-gutter when applied at first level #247

Open
hhaensel opened this issue Dec 22, 2023 · 0 comments
Open

css class 'st-col' breaks q-gutter when applied at first level #247

hhaensel opened this issue Dec 22, 2023 · 0 comments

Comments

@hhaensel
Copy link
Member

using cell() in a row with 'q-gutter' class at first level leads to unexpected results.

MWE:

using Stipple, Stipple.ReactiveTools
using StippleUI

@app begin
    @in c = false
    @in d::Any = Dict(:myclass => "c")
end

const UI = Ref(ParsedHTMLString[])

UI[] = [
    heading("htmldiv (without 'st-col')")
    row(class = "q-col-gutter-md",
        htmldiv(col = 2, btn(class = "full-width",  color = "primary", R"`${n}`"), @for(n in 1:25))
    )

    heading("cell (with 'st-col')")
    row(class = "q-col-gutter-md",
        cell(col = 2, btn(class = "full-width",  color = "primary", R"`${n}`"), @for(n in 1:25))
    )

    row(cell(class = "st-module", [
        heading("cell inside st-module (with 'st-col')")
        row(class = "q-col-gutter-md",
            cell(col = 2, btn(class = "full-width",  color = "primary", R"`${n}`"), @for(n in 1:25))
        )
    ]))
]

ui() = UI[]

@page("/", ui)

up(open_browser = true)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant