From eb797f37a791eca689cdd48dd28fcd3ea531e67a Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Fri, 19 Aug 2022 12:07:11 +0200 Subject: [PATCH] :bug: Fix hide html options on handoff --- CHANGES.md | 1 + .../resources/styles/main/partials/handoff.scss | 17 ++--------------- .../src/app/main/ui/viewer/handoff/code.cljs | 12 ++---------- 3 files changed, 5 insertions(+), 25 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 4bf4c81ce..225d24b97 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -35,6 +35,7 @@ ### :bug: Bugs fixed +- Fix hide html options on handoff [Taiga 3533](https://tree.taiga.io/project/penpot/issue/3533) - Fix share prototypes overlay and stroke [Taiga #3994](https://tree.taiga.io/project/penpot/issue/3994) - Fix border radious on boolean operations [Taiga #3959](https://tree.taiga.io/project/penpot/issue/3959) - Fix inconsistent representation of rectangles [Taiga #3977](https://tree.taiga.io/project/penpot/issue/3977) diff --git a/frontend/resources/styles/main/partials/handoff.scss b/frontend/resources/styles/main/partials/handoff.scss index adcb45082..a4eb7dd4f 100644 --- a/frontend/resources/styles/main/partials/handoff.scss +++ b/frontend/resources/styles/main/partials/handoff.scss @@ -330,26 +330,13 @@ } .code-row-lang { + color: $color-gray-10; position: relative; display: flex; flex-direction: row; + font-size: $fs14; margin: 0.5rem; - .code-selection { - height: 100%; - margin: 0; - padding: 0.5rem; - width: 4.5rem; - font-size: $fs12; - background: $color-gray-50; - color: $color-gray-10; - border-radius: 2px; - border: 1px solid $color-gray-30; - background-image: url("/images/icons/arrow-down-white.svg"); - background-repeat: no-repeat; - background-position: 90% 48%; - background-size: 8px; - } .expand-button, .copy-button { margin-top: 8px; diff --git a/frontend/src/app/main/ui/viewer/handoff/code.cljs b/frontend/src/app/main/ui/viewer/handoff/code.cljs index 030a443b4..265b2eba5 100644 --- a/frontend/src/app/main/ui/viewer/handoff/code.cljs +++ b/frontend/src/app/main/ui/viewer/handoff/code.cljs @@ -72,12 +72,7 @@ [:div.element-options [:div.code-block - [:div.code-row-lang - [:select.code-selection - [:option {:value "css"} "CSS"] - #_[:option {:value "sass"} "SASS"] - #_[:option {:value "less"} "Less"] - #_[:option {:value "stylus"} "Stylus"]] + [:div.code-row-lang "CSS" [:button.expand-button {:on-click on-expand } @@ -91,10 +86,7 @@ :code style-code}]]] [:div.code-block - [:div.code-row-lang - [:select.code-selection - [:option "SVG"] - [:option "HTML"]] + [:div.code-row-lang "SVG" [:button.expand-button {:on-click on-expand}