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
style/note badges: tweak
Adorian Doran1ed4192c93fc
diff --git a/apps/client/src/stylesheets/theme-next-dark.css b/apps/client/src/stylesheets/theme-next-dark.cssindex bea87d14f8..55d260755b 100644--- a/apps/client/src/stylesheets/theme-next-dark.css+++ b/apps/client/src/stylesheets/theme-next-dark.css@@ -202,11 +202,11 @@--badge-background-color: #ffffff1a;--badge-text-color: var(--muted-text-color);- --badge-temporaraily-editable-background-color: #4fa52b;- --badge-read-only-background-color: #e33f3b;- --badge-share-background-color: #3b82f6;- --badge-clipped-note-background-color: #57a2a5;- --badge-execute-background-color: #f59e0b;+ --badge-temporaraily-editable-background-color: #297331;+ --badge-read-only-background-color: #af4340;+ --badge-share-background-color: #4d4d4d;+ --badge-clipped-note-background-color: #295773;+ --badge-execute-background-color: #604180;--note-icon-background-color: #444444;--note-icon-color: #d4d4d4;diff --git a/apps/client/src/stylesheets/theme-next-light.css b/apps/client/src/stylesheets/theme-next-light.cssindex 6214946d30..f55e674fec 100644--- a/apps/client/src/stylesheets/theme-next-light.css+++ b/apps/client/src/stylesheets/theme-next-light.css@@ -194,11 +194,11 @@--badge-background-color: #00000011;--badge-text-color: var(--muted-text-color);- --badge-temporaraily-editable-background-color: #4fa52b;- --badge-read-only-background-color: #e33f3b;- --badge-share-background-color: #3b82f6;- --badge-clipped-note-background-color: #57a2a5;- --badge-execute-background-color: #f59e0b;+ --badge-temporaraily-editable-background-color: #35a64c;+ --badge-read-only-background-color: #c8302c;+ --badge-share-background-color: #6b6b6b;+ --badge-clipped-note-background-color: #2284c0;+ --badge-execute-background-color: #7b47af;--note-icon-background-color: #4f4f4f;--note-icon-color: white;diff --git a/apps/client/src/widgets/note_title.css b/apps/client/src/widgets/note_title.cssindex fe3e0e912a..6376610951 100644--- a/apps/client/src/widgets/note_title.css+++ b/apps/client/src/widgets/note_title.css@@ -80,6 +80,18 @@ body.experimental-feature-new-layout {.ext-badge .text {display: none;}++ .ext-badge {+ --size: 2em;+ width: var(--size);+ height: var(--size);+ padding: 0;++ .bx {+ opacity: 1;+ margin: 0;+ }+ };}}diff --git a/apps/client/src/widgets/react/Badge.css b/apps/client/src/widgets/react/Badge.cssindex cf8542a110..cf661b4f97 100644--- a/apps/client/src/widgets/react/Badge.css+++ b/apps/client/src/widgets/react/Badge.css@@ -1,15 +1,20 @@.ext-badge {display: flex;+ height: 1.9em;align-items: center;- padding: 2px 6px;+ justify-content: center;border-radius: var(--badge-radius);+ padding-inline: 8px;font-size: 0.75em;+ letter-spacing: .2pt;background-color: var(--color, transparent);color: white;min-width: 0;flex-shrink: 1;+ white-space: collapse;- &.clickable {+ &.clickable,+ .dropdown-badge & {cursor: pointer;&:hover {@@ -17,12 +22,20 @@}}+ .bx {+ font-size: 1.2em;+ margin-inline-end: 4px;+ opacity: .6;+ }+a {color: inherit !important;text-decoration: none;}> * {+ display: flex;+ align-items: center;min-width: 0;overflow: hidden;text-overflow: ellipsis;diff --git a/apps/client/src/widgets/react/Badge.tsx b/apps/client/src/widgets/react/Badge.tsxindex f45f377e56..e76700b610 100644--- a/apps/client/src/widgets/react/Badge.tsx+++ b/apps/client/src/widgets/react/Badge.tsx@@ -36,7 +36,7 @@ export function Badge({ icon, className, text, tooltip, href, ...containerProps});const content = <>- {icon && <><Icon icon={icon} /> </>}+ {icon && <Icon icon={icon} />}<span class="text">{text}</span></>;