mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 16:25:51 +01:00
client/shared note message: convert to an info bar
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
.info-bar {
|
||||
margin-top: 4px;
|
||||
contain: unset !important;
|
||||
padding: 8px 20px;
|
||||
color: var(--read-only-note-info-bar-color);
|
||||
font-size: .9em;
|
||||
|
||||
@@ -3,12 +3,13 @@ import { ComponentChildren } from "preact";
|
||||
import "./InfoBar.css";
|
||||
|
||||
export type InfoBarParams = {
|
||||
type: "prominent" | "subtle"
|
||||
type: "prominent" | "subtle",
|
||||
className: string;
|
||||
children: ComponentChildren;
|
||||
};
|
||||
|
||||
export default function InfoBar(props: InfoBarParams) {
|
||||
return <div className={`info-bar info-bar-${props.type}`}>
|
||||
return <div className={`info-bar ${props.className} info-bar-${props.type}`}>
|
||||
{props?.children}
|
||||
</div>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user