Skip to content

Commit

Permalink
Correct text and icon alignments in server audit dialog
Browse files Browse the repository at this point in the history
Signed-off-by: Banobe Pascal <[email protected]>
Change-Id: Id4b45e9097b8ba77df5280bedf1635693fce72fc
  • Loading branch information
Banobe Pascal committed Jan 13, 2025
1 parent 0fff143 commit 25ff897
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
17 changes: 17 additions & 0 deletions browser/css/jsdialogs.css
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,10 @@ td.jsdialog > [id^='table-box']:not(.sidebar) {
white-space: nowrap;
}

#ServerAuditDialog .ui-treeview-entry {
display: flex;
}

.ui-treeview-expanded-content {
display: grid;
}
Expand Down Expand Up @@ -568,6 +572,19 @@ td.jsdialog > [id^='table-box']:not(.sidebar) {
/* grid-column: '1 / ' + (this._columns + 1) - set inside JS */
}

#ServerAuditDialog .ui-treeview-headers {
display: flex;
}

#ServerAuditDialog .ui-treeview-headers div.ui-treeview-icon-column {
margin-inline-end: 4px;
width: 0px /* prevent display of ui-treeview-icon-column in ui-treeview-header */
}

#ServerAuditDialog .ui-treeview-headers > div:nth-child(2) {
width: calc(100% - 90px);
}

.ui-treeview-header {
display: inline-block;
width: 100%;
Expand Down
14 changes: 7 additions & 7 deletions browser/src/control/Control.ServerAuditDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,6 @@ class ServerAuditDialog {
type: 'container',
vertical: true,
children: [
!hasErrors
? {
id: 'auditsuccess',
type: 'fixedtext',
text: _('No issues found'),
}
: {},
{
id: 'auditlist',
type: 'treelistbox',
Expand All @@ -215,6 +208,13 @@ class ServerAuditDialog {
entries: entries,
enabled: entries.length > 0,
},
!hasErrors
? {
id: 'auditsuccess',
type: 'fixedtext',
text: _('No issues found'),
}
: {},
{
id: this.id + '-buttonbox',
type: 'buttonbox',
Expand Down

0 comments on commit 25ff897

Please sign in to comment.