mirror of
https://github.com/zadam/trilium.git
synced 2025-12-20 23:29:55 +01:00
fix(type_widgets): code background leaking when switching types
This commit is contained in:
@@ -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">) {
|
||||
|
||||
Reference in New Issue
Block a user