Skip to content

Commit 32a520e

Browse files
committed
Adjust dialog icons for better cross-platform support. Fix dialog height issue in Safari. Fix wrapping of help dialog when About MathJax dialog is open.
1 parent 18c9ec4 commit 32a520e

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

ts/input/tex/mhchem/MhchemConfiguration.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ new CharacterMap('mhchem-chars', MhchemUtils.relmo, {
136136
mhchemrightarrow: '\uE42C',
137137
mhchemleftarrow: '\uE42D',
138138
mhchemleftrightarrow: '\uE42E',
139+
mhchemleftrightharpoons: '\u21CB',
140+
mhchemrightleftharpoons: '\u21CC',
139141
});
140142

141143
/**

ts/ui/dialog/DraggableDialog.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ export class DraggableDialog {
231231
all: 'initial',
232232
cursor: 'inherit',
233233
width: '100%',
234-
height: '100%',
235234
display: 'flex',
236235
'flex-direction': 'column',
237236
'flex-grow': 1,
@@ -274,6 +273,7 @@ export class DraggableDialog {
274273
position: 'absolute',
275274
top: '6px',
276275
height: '17px',
276+
width: '17px',
277277
cursor: 'default',
278278
display: 'block',
279279
border: '2px solid #AAA',
@@ -305,16 +305,16 @@ export class DraggableDialog {
305305
//
306306
'mjx-dialog-close': {
307307
right: '6px',
308-
'font-size': '24px;',
308+
'font-size': '20px;',
309309
},
310310

311311
//
312312
// The help button
313313
//
314314
'mjx-dialog-help': {
315315
left: '6px',
316-
'font-size': '16px;',
317-
width: '17px',
316+
'font-size': '14px;',
317+
'font-weight': 'bold',
318318
},
319319
'.mjx-dialog-help mjx-dialog-help': {
320320
display: 'none',

ts/ui/menu/Menu.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,9 @@ export class Menu {
334334
'mjx-dialog > div': {
335335
'white-space': 'nowrap',
336336
},
337+
'dialog.mjx-dialog-help > mjx-dialog > div': {
338+
'white-space': 'normal',
339+
},
337340
'mjx-v': {
338341
'font-size': '80%',
339342
},

0 commit comments

Comments
 (0)