Skip to content

Commit

Permalink
Document has been changed: Add missing title
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Pinto Silva <[email protected]>
Change-Id: Ib602bb5d9c48268013e83b65047be128f3d7b558
  • Loading branch information
pedropintosilva committed Dec 6, 2021
1 parent 8327de7 commit 60a6f79
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions browser/css/override-vex.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@
z-index: 2001 !important;
}

.vex.vex-theme-plain .vex-dialog-title {
margin-bottom: .5em;
font-size: 1.1em;
color: #444;
}

.vex.vex-theme-plain .vex-dialog-button-spacer {
visibility: hidden;
padding: 0;
Expand Down
3 changes: 2 additions & 1 deletion browser/src/core/Socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -850,9 +850,10 @@ app.definitions.Socket = L.Class.extend({
}

vex.dialog.open({
message: _('Document has been changed in storage. What would you like to do with your unsaved changes?'),
unsafeMessage: '<h1 class="vex-dialog-title">' + vex._escapeHtml(_('Document has been changed')) + '</h1><p class="vex-dialog-message">' + vex._escapeHtml(_('Document has been changed in storage. What would you like to do with your unsaved changes?')) + '</p>',
escapeButtonCloses: false,
overlayClosesOnClick: false,
contentClassName: 'vex-content vex-3btns',
buttons: dialogButtons,
callback: function(value) {
if (value === 'discard') {
Expand Down

0 comments on commit 60a6f79

Please sign in to comment.