Skip to content

Commit

Permalink
Snackbar hasProgress: Set to double column grid
Browse files Browse the repository at this point in the history
Use new id for snackbar with progress and style it

Signed-off-by: Pedro Pinto Silva <[email protected]>
Change-Id: I24a1647f0f629b7b079aa65601f4309c339a06e8
  • Loading branch information
pedropintosilva committed Oct 11, 2023
1 parent 37bc01a commit 9a6b877
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion browser/css/jsdialogs.css
Original file line number Diff line number Diff line change
Expand Up @@ -1386,7 +1386,8 @@ input[type='number']:hover::-webkit-outer-spin-button {
.snackbar.jsdialog-window {
overflow: visible;
}
.snackbar #snackbar-container {
.snackbar #snackbar-container,
.snackbar #snackbar-container-progress {
align-items: center;
max-width: calc(80vw);
}
Expand Down Expand Up @@ -1437,6 +1438,16 @@ input[type='number']:hover::-webkit-outer-spin-button {
padding: 8px;
}

#snackbar-container-progress .ui-progressbar {
display: grid;
grid-column: 1 / 3;
}

#snackbar-container-progress {
grid-template-rows: repeat(2, auto);
grid-template-columns: repeat(2, auto);
}

#mobile-wizard.popup.snackbar #button,
.snackbar.jsdialog-container #button {
color: #469cff !important;
Expand Down
2 changes: 1 addition & 1 deletion browser/src/control/Control.UIManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ L.Control.UIManager = L.Control.extend({
'init_focus_id': action ? buttonId : undefined,
children: [
{
id: 'snackbar-container',
id: hasProgress ? 'snackbar-container-progress' : 'snackbar-container',
type: 'container',
children: [
action ? {id: labelId, type: 'fixedtext', text: label, labelFor: buttonId} : {id: 'label-no-action', type: 'fixedtext', text: label},
Expand Down

0 comments on commit 9a6b877

Please sign in to comment.