-
Notifications
You must be signed in to change notification settings - Fork 745
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
Correct text and icon alignments in server audit dialog #10925
Correct text and icon alignments in server audit dialog #10925
Conversation
@pedropintosilva please review, and I would also like your feedback on "No issues found" styling |
25ff897
to
4b37e37
Compare
2c65ee5
to
0294109
Compare
@pedropintosilva advise on the darkmode icon. |
Nice, Maybe the indicator could look more line one element (distinct from the others rows and compound by icon and text) if the text would be set with the same dark green as the outer circle of the new icon. Another option would be to keep the text black but set a subtle green background that encompasses both the icon and the text. You need to see what it's better in terms of being distinct enough to be perceived as an indicator of the overall status and subtle enough to don't be confused by a button or other component that requires an active action from the user via the UI. Please create another icon for dark mode purposes that should be uploaded to the
Also, I didn't see changes WRT how it looks when there is an error, please attach a screenshot if you can |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^
I also see that there is only one commit, maybe it would be better to have one single commit (PR) that fixes the issue (linked in the description) so we can merge it as soon as it passes CI and then another PR with further UX improvements |
a736f0e
to
9fe955d
Compare
Alignments of Icons, and Text in the server dialog Will be creating another PR for UX improvements on the Status |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
9fe955d
to
747b84c
Compare
Screencast.from.21-01-25.23.22.14.webm |
747b84c
to
e2c22b3
Compare
@pedropintosilva please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additionally it seems there is a max-height being set elsewhere and the min-width of the #ServerAuditDialog-mainbox doesn't need to be so wide by default. Bellow is a the diff patch that I ended up having locally while reviewing your changes. Feel free to apply it with git apply pedroChangesOnTopOf10925pr.txt
browser/css/jsdialogs.css
Outdated
grid-template-columns: auto 1fr 180px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see 2 problems here:
- I would prefer to avoid hard coded pixels and instead use ratios
- Where I'm missing a pixel value is on the initial column (the icon)
grid-template-columns: var(--btn-img-size-s) 6fr 3fr;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed from pixel to ratios and used --btn-img-size-m as the ratio for the first column
browser/css/jsdialogs.css
Outdated
grid-template-columns: auto 1fr 170px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see 2 problems here:
- I would prefer to avoid hard coded pixels and instead use ratios
- Where I'm missing a pixel value is on the initial column (the icon)
grid-template-columns: var(--btn-img-size-s) 6fr 3fr;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Used 0fr
to remove space for the unused icon instead of var(--btn-img-size-s)
browser/css/jsdialogs.css
Outdated
#ServerAuditDialog .ui-treeview-icon { | ||
margin-inline-end: 2px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need margins if we use column-gap as in:
.ui-treeview-headers,
+.ui-treeview-entry {
+ column-gap: 8px;
+}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed margin-inline-end
browser/css/jsdialogs.css
Outdated
#ServerAuditDialog .ui-treeview-headers div.ui-treeview-icon-column { | ||
margin-inline-end: 4px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need margins if we use column-gap as in:
.ui-treeview-headers,
+.ui-treeview-entry {
+ column-gap: 8px;
+}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed margin-inline-end
browser/css/jsdialogs.css
Outdated
#ServerAuditDialog .ui-treeview-entry > div:nth-last-child(1) { | ||
margin-inline-start: 8px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need margins if we use column-gap as in:
.ui-treeview-headers,
+.ui-treeview-entry {
+ column-gap: 8px;
+}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using column-gap: 8px
on ui-treeview-headers
adds a gap between all three grid items, but we want to avoid adding extra space between the icon column and the status.
browser/css/jsdialogs.css
Outdated
@@ -2214,6 +2238,7 @@ kbd, | |||
|
|||
#ServerAuditDialog .ui-treeview { | |||
border-color: transparent; | |||
max-width: fit-content; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If previous comments I added we don't need this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed max-width, but added max-height to max-content as the max-height was capped at 150px
.jsdialog:not(.sidebar).ui-treeview {
max-height: 150px;
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pedropintosilva please review
e2c22b3
to
6b32f3e
Compare
reduced the width of the server audit dailog as it doesn't need to be so wide by default. set a max-height to max content for server audit dialog Signed-off-by: Banobe Pascal <[email protected]> Change-Id: Ie7fa03d0009a55fb437417959c1f7d941b8c816f
6b32f3e
to
8b7a893
Compare
#ServerAuditDialog .ui-treeview-headers > div:nth-last-child(1) { | ||
margin-inline-start: 7px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to don't added this margin. I would prefer to add the inherited margin from the entries only when there is a single column, rather than applying the margin here to align with the entries. But let's merge this for now and we cna discuss this later.
Change-Id: Id4b45e9097b8ba77df5280bedf1635693fce72fc
Summary
Improvements in alignment of icons and text in the server audit dialog
IN (COOLWSD version: 24.04.8.1(git hash: 8475197 (E))
AFTER: #10870
CURRENT FIX AND IMPROVEMENT
Checklist
make prettier-write
and formatted the code.make check
make run
and manually verified that everything looks okay