Skip to content

Build your personal knowledge base with Trilium Notes

feat(promoted_attributes): improve color picker aspect

Elian Dorandb3581eb2696
diff --git a/apps/client/src/widgets/ribbon_widgets/promoted_attributes.ts b/apps/client/src/widgets/ribbon_widgets/promoted_attributes.ts
index e843edb586..5cb85b79da 100644
--- a/apps/client/src/widgets/ribbon_widgets/promoted_attributes.ts
+++ b/apps/client/src/widgets/ribbon_widgets/promoted_attributes.ts
@@ -67,9 +67,22 @@ const TPL = /*html*/`
}
.promoted-attribute-cell input[type="color"] {
- width: 50px;
+ width: 24px;
+ height: 24px;
+ margin-top: 2px;
+ appearance: none;
padding: 0;
border: 0;
+ outline: none;
+ border-radius: 25% !important;
+ }
+
+ .promoted-attribute-cell input[type="color"]::-webkit-color-swatch-wrapper {
+ padding: 0;
+ }
+ .promoted-attribute-cell input[type="color"]::-webkit-color-swatch {
+ border: none;
+ border-radius: 25%;
}
</style>