From 4d73cdefef544240ecdd18f609f6ad001dc39e1a Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 25 Jul 2025 10:08:14 +0300 Subject: [PATCH] style(client): fix checkboxes override causing issues for canvas (closes #6463) --- apps/client/src/stylesheets/style.css | 6 ------ .../src/widgets/ribbon_widgets/promoted_attributes.ts | 7 +++++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.css index 1a527bf5c..2296166f2 100644 --- a/apps/client/src/stylesheets/style.css +++ b/apps/client/src/stylesheets/style.css @@ -139,12 +139,6 @@ textarea, color: var(--muted-text-color); } -/* Restore default apperance */ -input[type="number"], -input[type="checkbox"] { - appearance: auto !important; -} - /* Add a gap between consecutive radios / check boxes */ label.tn-radio + label.tn-radio, label.tn-checkbox + label.tn-checkbox { diff --git a/apps/client/src/widgets/ribbon_widgets/promoted_attributes.ts b/apps/client/src/widgets/ribbon_widgets/promoted_attributes.ts index 523bfe903..8895d5e42 100644 --- a/apps/client/src/widgets/ribbon_widgets/promoted_attributes.ts +++ b/apps/client/src/widgets/ribbon_widgets/promoted_attributes.ts @@ -53,12 +53,19 @@ const TPL = /*html*/` word-break:keep-all; white-space: nowrap; } + .promoted-attribute-cell input[type="checkbox"] { width: 22px !important; flex-grow: 0; width: unset; } + /* Restore default apperance */ + .promoted-attribute-cell input[type="number"], + .promoted-attribute-cell input[type="checkbox"] { + appearance: auto; + } +