Skip to content

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

@Lepel1998

Description

@Lepel1998

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
    ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions