Skip to content

Commit 1cd0223

Browse files
committed
Fixes requested by prettier
1 parent 3e1d277 commit 1cd0223

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

ts/output/chtml.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,11 @@ export class CHTML<N, T, D> extends CommonOutputJax<
101101
// Clip the token elements' character content,
102102
// to remove excessive height and depth of ZERO font
103103
//
104-
'mjx-mo > mjx-c, mjx-mi > mjx-c, mjx-mn > mjx-c, mjx-ms > mjx-c, mjx-mtext > mjx-c': {
105-
'clip-path': 'padding-box xywh(-1em -2px calc(100% + 2em) calc(100% + 4px))',
106-
},
104+
'mjx-mo > mjx-c, mjx-mi > mjx-c, mjx-mn > mjx-c, mjx-ms > mjx-c, mjx-mtext > mjx-c':
105+
{
106+
'clip-path':
107+
'padding-box xywh(-1em -2px calc(100% + 2em) calc(100% + 4px))',
108+
},
107109

108110
'mjx-container[jax="CHTML"] :focus': { outline: 'solid 2px' },
109111
'mjx-container [space="1"]': { 'margin-left': '.111em' },

ts/output/common.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,19 +155,19 @@ export abstract class CommonOutputJax<
155155
*/
156156
public static commonStyles: CssStyleList = {
157157
'mjx-container[overflow="scroll"][display]': {
158-
'overflow': 'auto clip',
158+
overflow: 'auto clip',
159159
'min-width': 'initial !important',
160160
},
161161
'mjx-container[overflow="truncate"][display]': {
162-
'overflow': 'hidden clip',
162+
overflow: 'hidden clip',
163163
'min-width': 'initial !important',
164164
},
165165
'mjx-container[display]': {
166166
display: 'block',
167167
'text-align': 'center',
168168
'justify-content': 'center',
169169
margin: 'calc(1em - 2px) 0',
170-
padding: '2px 0'
170+
padding: '2px 0',
171171
},
172172
'mjx-container[display][width="full"]': {
173173
display: 'flex',

0 commit comments

Comments
 (0)