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

Extra gap when using (display: flex) and (justify-content: space-between) #560

Open
Lepel1998 opened this issue Jan 8, 2022 · 3 comments

Comments

@Lepel1998
Copy link

Am I overseeing something, or do the span tags that are added by elm-css cause problems when using (justify-content : space-between).

view =
    div [ css myStyle ]
        [ -- a span tag with css is inserted before here,
          -- creating a gap in the flex container
          -- when using (justify-content: space-between)
          -- because space is added between the span and
          -- the div with text
          div [] [ text "I have unwanted space on the left" ]
        , div [] [ text "Other element" ]
        ]


myStyle =
    [ displayFlex
    , width (pct 100)
    , justifyContent spaceBetween
    ]
@schoettl
Copy link

There is the CSS gap property but it's not yet supported in elm-css. Only a gap transition exists already.

Can I add it in a PR?

I think it's very important and handy when working with flexbox.

gap is described here:
https://css-tricks.com/snippets/css/a-guide-to-flexbox/#aa-gap-row-gap-column-gap

@Arrow7000
Copy link

@schoettl that's not what this issue is about

@schoettl
Copy link

Sorry, didn't read carefully.

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

3 participants