Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj committed Mar 4, 2024
1 parent 2b98e5f commit a5043c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions page/customize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type STYLE_JSON = {
PreeditFontSize: string
}
Cursor: {
Style: "Blink" | "Static" | "Text"
Style: 'Blink' | 'Static' | 'Text'
Text: string
}
BorderWidth: string
Expand Down Expand Up @@ -218,7 +218,7 @@ export function setStyle (style: string) {
setFontFamily(rules[PREEDIT], j.Font.PreeditFontFamily)
rules[PREEDIT]['font-size'] = px(j.Font.PreeditFontSize)
// Cursor height should be the same with preedit
rules[CURSOR_NO_TEXT]['height'] = px(j.Font.PreeditFontSize)
rules[CURSOR_NO_TEXT].height = px(j.Font.PreeditFontSize)

setBlink(j.Cursor.Style === 'Blink')

Expand Down

0 comments on commit a5043c0

Please sign in to comment.