mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 07:58:59 +01:00
client/shared note info bar: improve appearance
This commit is contained in:
parent
c4603fce25
commit
50869d29db
@ -1328,14 +1328,6 @@ body.mobile .note-title {
|
||||
border-bottom: 2px solid #0000001c !important;
|
||||
}
|
||||
|
||||
/*
|
||||
* Read-only note info bar
|
||||
*/
|
||||
|
||||
.read-only-note-info-bar-widget {
|
||||
--link-color: var(--main-text-color);
|
||||
}
|
||||
|
||||
/*
|
||||
* Promoted attributes
|
||||
*/
|
||||
|
||||
@ -1,10 +1,11 @@
|
||||
.info-bar {
|
||||
--link-color: var(--main-text-color);
|
||||
|
||||
margin-top: 4px;
|
||||
contain: unset !important;
|
||||
padding: 8px 20px;
|
||||
color: var(--read-only-note-info-bar-color);
|
||||
font-size: .9em;
|
||||
|
||||
}
|
||||
|
||||
.info-bar-prominent {
|
||||
|
||||
@ -1,15 +1,15 @@
|
||||
import { ComponentChildren } from "preact";
|
||||
|
||||
import "./InfoBar.css";
|
||||
import { ComponentChildren, CSSProperties } from "preact";
|
||||
|
||||
export type InfoBarParams = {
|
||||
type: "prominent" | "subtle",
|
||||
className: string;
|
||||
style: CSSProperties
|
||||
children: ComponentChildren;
|
||||
};
|
||||
|
||||
export default function InfoBar(props: InfoBarParams) {
|
||||
return <div className={`info-bar ${props.className} info-bar-${props.type}`}>
|
||||
return <div className={`info-bar ${props.className} info-bar-${props.type}`} style={props.style}>
|
||||
{props?.children}
|
||||
</div>
|
||||
}
|
||||
|
||||
@ -49,7 +49,7 @@ export default function SharedInfo() {
|
||||
});
|
||||
|
||||
return (
|
||||
<InfoBar className="shared-info-widget" type="subtle">
|
||||
<InfoBar className="shared-info-widget" type="subtle" style={{display: (!link) ? "none" : undefined}}>
|
||||
{link && (
|
||||
<RawHtml html={syncServerHost
|
||||
? t("shared_info.shared_publicly", { link })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user