Skip to content

Commit e48c94e

Browse files
committed
more diff minimization
1 parent 969c5fc commit e48c94e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

browser-extension/src/overtype/styles.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Embedded in JavaScript to ensure single-file distribution
44
*/
55

6-
import { themeToCSSVars } from "./themes.js"
6+
import { themeToCSSVars } from "./themes.js";
77

88
/**
99
* Generate the complete CSS for the editor
@@ -19,10 +19,10 @@ export function generateStyles(options = {}) {
1919
padding = "20px",
2020
theme = null,
2121
mobile = {},
22-
} = options
22+
} = options;
2323

2424
fontFamily = "inherit"
25-
fontSize = "var(--text-body-size-medium)"
25+
fontSize = "var(--text-body-size-medium)";
2626

2727
// Generate mobile overrides
2828
const mobileStyles =
@@ -34,16 +34,16 @@ export function generateStyles(options = {}) {
3434
${Object.entries(mobile)
3535
.map(([prop, val]) => {
3636
const cssProp = prop.replace(/([A-Z])/g, "-$1").toLowerCase()
37-
return `${cssProp}: ${val} !important;`
37+
return `${cssProp}: ${val} !important;`;
3838
})
3939
.join("\n ")}
4040
}
4141
}
4242
`
43-
: ""
43+
: "";
4444

4545
// Generate theme variables if provided
46-
const themeVars = theme && theme.colors ? themeToCSSVars(theme.colors) : ""
46+
const themeVars = theme && theme.colors ? themeToCSSVars(theme.colors) : "";
4747

4848
return `
4949
/* OverType Editor Styles */

0 commit comments

Comments
 (0)