Open Amselfass opened 4 days ago
Phew, is that even possible with toLocaleDateString()
@m1212e? I mean you could just use replace()
but you also would not want text breaking anywhere because the it runs out of space and you don't want overflow either... Maybe just solve it with ellipsis
and no-wrap
? Also not that safe of an option.
Maybe just replacing the first space with a
would be sufficient/a good solution? Or just not using long formats at all?
Yes I think this would be more a CSS thing. Replacing Strings to adjust how the text is displayed isn't a good idea imo.
When full dates in the 4. November 2024 format are shown to the user, the spaces should be replaced with
to avoid ugly line breaks within the date.For example: https://github.com/DeutscheModelUnitedNations/munify-delegator/blob/e42634457dbe78f28f134a55c32c595472752c53/src/lib/components/ConferenceCard.svelte#L104C8-L104C8