Skip to content

Commit 69642b0

Browse files
committed
Fix palette scrollbar sizing
1 parent 25055c2 commit 69642b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

@webwriter/core/view/editor/palette.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,9 @@ export class Palette extends LitElement {
129129
super.connectedCallback()
130130
if(WEBWRITER_ENVIRONMENT.engine.name === "WebKit") {
131131
const sheet = new CSSStyleSheet()
132-
sheet.replaceSync(`:host { padding-right: 10px; overflow-y: scroll; height: 100% !important}`)
132+
sheet.replaceSync(`:host { padding-right: 10px; overflow-y: auto; height: 100% !important}`)
133133
this.shadowRoot!.adoptedStyleSheets = [...this.shadowRoot!.adoptedStyleSheets, sheet]
134+
this.requestUpdate()
134135
}
135136
}
136137

0 commit comments

Comments
 (0)