diff --git a/apps/client/src/stylesheets/theme-next/shell.css b/apps/client/src/stylesheets/theme-next/shell.css index 75c859009..880e85f70 100644 --- a/apps/client/src/stylesheets/theme-next/shell.css +++ b/apps/client/src/stylesheets/theme-next/shell.css @@ -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 */ diff --git a/apps/client/src/widgets/react/InfoBar.css b/apps/client/src/widgets/react/InfoBar.css index 200b1de13..ec69f466c 100644 --- a/apps/client/src/widgets/react/InfoBar.css +++ b/apps/client/src/widgets/react/InfoBar.css @@ -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 { diff --git a/apps/client/src/widgets/react/InfoBar.tsx b/apps/client/src/widgets/react/InfoBar.tsx index 52435ab48..084b25ddb 100644 --- a/apps/client/src/widgets/react/InfoBar.tsx +++ b/apps/client/src/widgets/react/InfoBar.tsx @@ -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