client/shared note message: convert to an info bar

This commit is contained in:
Adorian Doran
2025-11-09 01:56:52 +02:00
parent 220aab2b76
commit c4603fce25
6 changed files with 21 additions and 17 deletions

View File

@@ -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;

View File

@@ -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>
}