mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 00:10:11 -05:00
Merge pull request #5110 from penpot/eva-fix-code-block-height
🐛 Fix code block height
This commit is contained in:
commit
c26f909565
2 changed files with 7 additions and 2 deletions
|
@ -244,7 +244,8 @@
|
|||
(fn [result]
|
||||
(reset! images-data* result)))))
|
||||
|
||||
[:div {:class (stl/css :element-options)}
|
||||
[:div {:class (stl/css-case :element-options true
|
||||
:viewer-code-block (= :viewer from))}
|
||||
[:div {:class (stl/css :attributes-block)}
|
||||
[:button {:class (stl/css :download-button)
|
||||
:on-click handle-copy-all-code}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
.element-options {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: calc(100vh - #{$s-128}); // TODO: Fix this hardcoded value
|
||||
height: calc(100vh - #{$s-160}); // TODO: Fix this hardcoded value
|
||||
overflow: hidden;
|
||||
padding-bottom: $s-16;
|
||||
overflow-y: auto;
|
||||
|
@ -17,6 +17,10 @@
|
|||
scrollbar-gutter: stable;
|
||||
}
|
||||
|
||||
.viewer-code-block {
|
||||
height: calc(100vh - #{$s-108}); // TODO: Fix this hardcoded value
|
||||
}
|
||||
|
||||
.download-button {
|
||||
@extend .button-secondary;
|
||||
@include uppercaseTitleTipography;
|
||||
|
|
Loading…
Reference in a new issue