Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
client: rename "status bar pane" to "bottom panel"
Adorian Doran608f156b82d1
diff --git a/apps/client/src/widgets/layout/StatusBar.css b/apps/client/src/widgets/layout/StatusBar.cssindex 4502cd412b..f7c468dacd 100644--- a/apps/client/src/widgets/layout/StatusBar.css+++ b/apps/client/src/widgets/layout/StatusBar.css@@ -294,18 +294,18 @@}-.status-bar-pane {+.bottom-panel {margin: 0 !important;padding: 0;- .status-bar-pane-title-bar {+ .bottom-panel-title-bar {display: flex;padding: 6px 12px;background: var(--bottom-panel-title-bar-background-color);justify-content: space-between;align-items: center;- .status-bar-pane-title-bar-caption {+ .bottom-panel-title-bar-caption {text-transform: uppercase;letter-spacing: .3pt;font-weight: 600;@@ -313,7 +313,7 @@}}- .status-bar-pane-content {+ .bottom-panel-content {border-bottom: 1px solid var(--main-border-color);background: var(--bottom-panel-background-color);padding: 8px 12px;diff --git a/apps/client/src/widgets/layout/StatusBar.tsx b/apps/client/src/widgets/layout/StatusBar.tsxindex 932d51b532..73938b502c 100644--- a/apps/client/src/widgets/layout/StatusBar.tsx+++ b/apps/client/src/widgets/layout/StatusBar.tsx@@ -268,13 +268,13 @@ function NoteInfoValue({ text, title, value }: { text: string; title?: string, vfunction SimilarNotesPane({ note, similarNotesShown, setSimilarNotesShown }: NoteInfoContext) {return (similarNotesShown &&- <StatusBarPane title={t("similar_notes.title")}+ <BottomPanel title={t("similar_notes.title")}className="similar-notes-pane"visible={similarNotesShown}setVisible={setSimilarNotesShown}scrollable><SimilarNotesTab note={note} />- </StatusBarPane>+ </BottomPanel>);}//#endregion@@ -371,7 +371,7 @@ function AttributesPane({ note, noteContext, attributesShown, setAttributesShown}), [ api ]));return (context &&- <StatusBarPane title={t("attributes_panel.title")}+ <BottomPanel title={t("attributes_panel.title")}className="attribute-list"visible={attributesShown}setVisible={setAttributesShown}>@@ -384,7 +384,7 @@ function AttributesPane({ note, noteContext, attributesShown, setAttributesShownapi={api}ntxId={noteContext.ntxId}/>- </StatusBarPane>+ </BottomPanel>);}//#endregion@@ -449,9 +449,9 @@ function CodeNoteSwitcher({ note }: StatusBarContext) {}//#endregion-//#region Status bar pane+//#region Bottom panel-interface StatusBarPaneParms {+interface BottomPanelParams {children: ComponentChildren;title: string;visible: boolean;@@ -459,13 +459,13 @@ interface StatusBarPaneParms {className?: string;}-function StatusBarPane({ children, title, visible, setVisible, className }: StatusBarPaneParms) {- return <div className={clsx("status-bar-pane", className, {"hidden-ext": !visible})}>- <div className="status-bar-pane-title-bar">- <span className="status-bar-pane-title-bar-caption">{title}</span>+function BottomPanel({ children, title, visible, setVisible, className }: BottomPanelParams) {+ return <div className={clsx("bottom-panel", className, {"hidden-ext": !visible})}>+ <div className="bottom-panel-title-bar">+ <span className="bottom-panel-title-bar-caption">{title}</span><button class="icon-action bx bx-x" onClick={() => setVisible?.(false)}></button></div>- <div class={clsx("status-bar-pane-content")}>+ <div class={clsx("bottom-panel-content")}>{children}</div></div>