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(#9481): improve style of new menu buttons and labels #9545

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

GallyTi
Copy link

@GallyTi GallyTi commented Oct 15, 2024

Description

chore: improve style of menu buttons and labels #9533
This is Requested changes to #9481. But because there was so many things wrong i decided to make it from scratch, with new branch from master.

#9481

Code review checklist

  • Readable: Concise, well named, follows the style guide, documented if necessary.
  • Documented: Configuration and user documentation on cht-docs
  • Tested: Unit and/or e2e where appropriate
  • Internationalised: All user facing text
  • Backwards compatible: Works with existing data and configuration or includes a migration. Any breaking changes documented in the release notes.

License

The software is provided under AGPL-3.0. Contributions to this project are accepted under the same license.

@latin-panda latin-panda self-requested a review October 17, 2024 04:50
@latin-panda latin-panda changed the title Repaired PR request fix(#9481): improve style of new menu buttons and labels Oct 17, 2024
Copy link
Contributor

@latin-panda latin-panda left a comment

Choose a reason for hiding this comment

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

Good job! 🤩
It looks great, I added some suggestions below
Thank you

webapp/src/css/inbox.less Outdated Show resolved Hide resolved
webapp/src/css/inbox.less Outdated Show resolved Hide resolved
webapp/src/css/inbox.less Show resolved Hide resolved
webapp/src/css/inbox.less Outdated Show resolved Hide resolved
Comment on lines 1425 to 1427
.panel-header-close {
width: 48px !important;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Same advice, to remove !important name the selector more specific, in L1418 .mat-sidenav mm-panel-header {
Then remove the !important

Suggested change
.panel-header-close {
width: 48px !important;
}
.panel-header-close {
width: 48px;
}

Copy link
Author

Choose a reason for hiding this comment

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

Cant do, it just don't apply those changes no matter hard i tried.

Comment on lines 1414 to 1416
mat-icon {
margin-left: -6px !important;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Follow the same trick here, more specific selector and we can remove !important

Suggested change
mat-icon {
margin-left: -6px !important;
}
.nav-item mat-icon {
margin-left: -6px;
}

Copy link
Author

Choose a reason for hiding this comment

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

Same here.

Comment on lines 1435 to 1451
.app-root:not(.old-nav) .header .tabs a .button-label {
/* Keep the desired styles */
margin-top: 3px;
overflow: hidden;
word-wrap: break-word;
color: @nav-icon-gray;
font-size: @font-XXS;
text-overflow: ellipsis;

/* Unset or override the unwanted properties */
display: block;
white-space: unset;
word-break: unset;
-webkit-line-clamp: unset;
-webkit-box-orient: unset;
line-clamp: unset;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Please move this into L1499, which is pretty much the same selector.
Then, remove the comments and duplicate attributes.

Copy link
Author

Choose a reason for hiding this comment

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

Done.

@Benmuiruri
Copy link
Contributor

Hi @GallyTi were you able to address the feedback from the changes @latin-panda requested ? Do you need any support ?

@GallyTi
Copy link
Author

GallyTi commented Oct 23, 2024

Hi @Benmuiruri :) . I was curious myself why i haven't get any new update. It turns out, maybe i didn't call Latin panda that the MR is repaired ass suggested, only some part of it.

So I am sorry, @latin-panda can you please look at the comments I left on each comment you gave and look for changes, thank you :)

@Benmuiruri
Copy link
Contributor

No worries @GallyTi I will review it tomorrow first thing. @latin-panda is away for a couple of days

Copy link
Contributor

@Benmuiruri Benmuiruri left a comment

Choose a reason for hiding this comment

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

Hi @GallyTi thanks for making the changes.

This is pretty close. I left a few comments, once those are resolved this will be ready to merge.

webapp/src/css/inbox.less Outdated Show resolved Hide resolved
webapp/src/css/inbox.less Outdated Show resolved Hide resolved
webapp/src/css/inbox.less Outdated Show resolved Hide resolved
@GallyTi
Copy link
Author

GallyTi commented Oct 26, 2024

@Benmuiruri Sorry for late response. It should be now good, sorry for troubles :/

Copy link
Contributor

@latin-panda latin-panda left a comment

Choose a reason for hiding this comment

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

Thank you! Exciting to have this so nice!
I just have one tiny suggestion

webapp/src/css/inbox.less Outdated Show resolved Hide resolved
Comment on lines +1485 to +1487
-webkit-line-clamp: unset;
-webkit-box-orient: unset;
line-clamp: unset;
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @GallyTi I'm curious whether we need these?
These styles are causing misalignment of the labels.

Screenshot 2024-10-28 at 19 19 33

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.

3 participants