Skip to content

Correct margins for heading actions#12797

Merged
Gargron merged 1 commit intomastodon:masterfrom
brawaru:fix/heading-actions-margins
Jan 12, 2020
Merged

Correct margins for heading actions#12797
Gargron merged 1 commit intomastodon:masterfrom
brawaru:fix/heading-actions-margins

Conversation

@brawaru
Copy link
Copy Markdown
Contributor

@brawaru brawaru commented Jan 7, 2020

This pull request changes margins of the page heading header, actions in order to fix displaying with low screen size and long enough header.

Demo screenshot

… What language is that?

It is working by giving heading and action buttons margin from top and then negating it in parent element. Whenever flex item wrap, the "negated" margin will be applied again, providing us nice space between header and action buttons.

This pull request also adds a margin to header, so it does not clamp with the heading actions and they wrap a little earlier (15px ahead). As well as the left margin is not anymore applied to the first action.

This commit changes margins of the page heading header, actions in
order to fix displaying with low screen size and long enough header.

It is working by giving heading and action buttons margin from top
and then negating it in parent element. Whenever flex item wrap, the
"negated" margin will be applied again, providing us nice space
between header and action buttons.

This commit also adds a margin to header, so it does not clamp with
the heading actions and they wrap a little earlier (15px ahead). As
well as the left margin is not anymore applied to the first action.
@brawaru
Copy link
Copy Markdown
Contributor Author

brawaru commented Jan 8, 2020

It is working by giving heading and action buttons margin from top and then negating it in parent element. the "negated" margin will be applied again

CSS

Shrugging man picture

@Gargron Gargron merged commit 5dcca33 into mastodon:master Jan 12, 2020
@brawaru brawaru deleted the fix/heading-actions-margins branch April 2, 2020 22:18
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

Successfully merging this pull request may close these issues.

2 participants