Skip to content

Fix: Add spacing between Shared label and icon in AppMenuEntry.vue #53825

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

Closed

Conversation

divyanshsirohi
Copy link

@divyanshsirohi divyanshsirohi commented Jul 4, 2025

Summary

TODO

  • add spacing between label and icon

Checklist

@divyanshsirohi divyanshsirohi requested a review from a team as a code owner July 4, 2025 15:11
@divyanshsirohi divyanshsirohi requested review from susnux, artonge and skjnldsv and removed request for a team July 4, 2025 15:11
@AndyScherzinger AndyScherzinger added design Design, UI, UX, etc. 3. to review Waiting for reviews labels Jul 4, 2025
@susnux susnux added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Jul 4, 2025
@@ -85,6 +85,7 @@ watch(() => props.app.name, calculateSize)
text-overflow: ellipsis;
overflow: hidden;
letter-spacing: -0.5px;
gap: 8px;
Copy link
Contributor

Choose a reason for hiding this comment

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

gap has no effect on display: block.
Thus this does nothing.

Could you elaborate what you want to achieve?

Copy link
Author

@divyanshsirohi divyanshsirohi Jul 4, 2025

Choose a reason for hiding this comment

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

Thanks for the feedback! My goal is simply to add around 8px of spacing between the app icon and the label to match the design expectations in the issue.

I initially used gap, but I now understand it doesn’t apply to display: block. To fix this while keeping the layout as it is, i’ll switch to using margin-right: 8px on the icon.

Copy link
Contributor

Choose a reason for hiding this comment

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

What should this fix? Adding inline margin will not add any spacing instead it just misaligns the icon and the label by shifting them apart:

image

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah I guess you are working on #53797 but then this file is the wrong one.

@divyanshsirohi divyanshsirohi force-pushed the fix/shared-label-spacing branch from 7d2b9d1 to 77c21c8 Compare July 4, 2025 16:21
@susnux susnux added this to the Nextcloud 32 milestone Jul 4, 2025
Copy link
Contributor

@susnux susnux left a comment

Choose a reason for hiding this comment

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

@divyanshsirohi
Copy link
Author

Ah, thanks for pointing that out — I completely missed the sharingStatusAction.scss file under files_sharing/src/files_actions. I was focusing mainly on the core FilesList.vue and didn’t realize the label and icon styling were coming from there. Appreciate the heads up that clears it up!

I’ll update my changes accordingly.😊

@divyanshsirohi divyanshsirohi closed this by deleting the head repository Jul 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing Work in progress design Design, UI, UX, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some spacing between Shared label and icon in Files
3 participants