You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems to create a weird styling bug when using the text block in a wide variant resulting in huge X margins. Its caused because the 'width: 90%' of the texy body a ;margin: 0 auto; used to center it.
It means for some strange margins breaking the visual flow of the cards. Here are 2 examples:
The text was updated successfully, but these errors were encountered:
jamiecarter7
changed the title
Margin issue with width: 90% on wide text blocks
Margin issue with 'width: 90%' on wide text blocks
Oct 12, 2023
When creating a wide text block in the dashboard - I've noticed a strange margin issue.
Its being caused by the following line
link -> https://github.com/dhis2/dashboard-app/blob/9c6c0c65a20852fd0f1187cc5a359c9180d5b43b/src/components/Item/TextItem/Item.js#L30C19-L30C19
Seems to create a weird styling bug when using the text block in a wide variant resulting in huge X margins. Its caused because the 'width: 90%' of the texy body a ;margin: 0 auto; used to center it.
It means for some strange margins breaking the visual flow of the cards. Here are 2 examples:
The text was updated successfully, but these errors were encountered: