fix(type_widgets): code background leaking when switching types

This commit is contained in:
Elian Doran
2025-11-09 13:37:31 +02:00
parent c772430dd0
commit b36ef54507
3 changed files with 11 additions and 7 deletions

View File

@@ -2,6 +2,7 @@ import type { CommandListenerData, EventData, EventNames } from "../../component
import type NoteContext from "../../components/note_context.js";
import type BasicWidget from "../basic_widget.js";
import Container from "./container.js";
import "./scrolling_container.css";
export default class ScrollingContainer extends Container<BasicWidget> {
@@ -11,9 +12,6 @@ export default class ScrollingContainer extends Container<BasicWidget> {
super();
this.class("scrolling-container");
this.css("overflow", "auto");
this.css("scroll-behavior", "smooth");
this.css("position", "relative");
}
setNoteContextEvent({ noteContext }: EventData<"setNoteContext">) {