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

fix(core): app icon alignment in app menu #41923

Merged
merged 2 commits into from
Nov 30, 2023

Conversation

ShGKme
Copy link
Contributor

@ShGKme ShGKme commented Nov 30, 2023

Summary

In the app menu popover (on a small screen) the icon was aligned by fixed padding. But the calculation of padding doesn't take into account the actual menu item size.

It results in:

  • Broken outline
  • A bit not visually aligned position of the icon

Changed to a fixed size + flex.

Screenshots

Before After
image image
image image
image image

Note

I kept the width the same as it was before (44x48px), but I'd also propose to make it 44x44.

image

Checklist

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
@ShGKme ShGKme added enhancement 3. to review Waiting for reviews labels Nov 30, 2023
@ShGKme ShGKme added this to the Nextcloud 29 milestone Nov 30, 2023
@ShGKme ShGKme self-assigned this Nov 30, 2023
@@ -270,6 +270,10 @@ $header-icon-size: 20px;
.app-icon {
position: relative;
height: 44px;
width: 48px;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using 44px here maybe indeed would lookt better?

Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but didnt test

@AndyScherzinger
Copy link
Member

/backport to stable28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Keyboard focus on collapsed apps menu looks weird
4 participants