mirror of
https://github.com/penpot/penpot.git
synced 2026-06-16 20:32:04 +00:00
🐛 Fix fonts select position (#10192)
This commit is contained in:
parent
6fed3e1212
commit
7863692c98
@ -480,7 +480,15 @@
|
||||
:aria-label (tr "workspace.options.convert-to-typography")
|
||||
:on-click on-convert-to-typography
|
||||
:tooltip-placement "top-left"
|
||||
:icon i/add}])]]]
|
||||
:icon i/add}])]]
|
||||
(when (and token-typography-row-enabled? token-dropdown-open?)
|
||||
[:> searchable-options-dropdown* {:on-click on-option-click
|
||||
:id listbox-id
|
||||
:options (resolve-delay dropdown-options)
|
||||
:selected selected-token-id
|
||||
:align "right"
|
||||
:placeholder (tr "workspace.tokens.search-by-token")
|
||||
:ref set-option-ref}])]
|
||||
|
||||
(when main-menu-open?
|
||||
[:div {:class (stl/css :element-content)}
|
||||
@ -540,13 +548,4 @@
|
||||
[:div {:class (stl/css :text-decoration-options)}
|
||||
[:> vertical-align* common-props]
|
||||
[:> text-decoration-options* (mf/spread-props common-props {:token-applied current-token-name})]
|
||||
[:> text-direction-options* common-props]])])
|
||||
|
||||
(when (and token-typography-row-enabled? token-dropdown-open?)
|
||||
[:> searchable-options-dropdown* {:on-click on-option-click
|
||||
:id listbox-id
|
||||
:options (resolve-delay dropdown-options)
|
||||
:selected selected-token-id
|
||||
:align "right"
|
||||
:placeholder (tr "workspace.tokens.search-by-token")
|
||||
:ref set-option-ref}])]))
|
||||
[:> text-direction-options* common-props]])])]))
|
||||
|
||||
@ -14,12 +14,11 @@
|
||||
|
||||
.element-set {
|
||||
@include sidebar.option-grid-structure;
|
||||
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.element-title {
|
||||
grid-column: span 8;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.element-content {
|
||||
|
||||
@ -389,7 +389,7 @@
|
||||
}
|
||||
|
||||
.font-selector-dropdown-full-size {
|
||||
block-size: calc(100vh - 48px); // TODO: ugly hack :( Find a workaround for this.
|
||||
block-size: var(--sidebar-element-options-height);
|
||||
display: grid;
|
||||
grid-template-rows: auto 1fr;
|
||||
padding: var(--sp-xxs) var(--sp-m) var(--sp-m) var(--sp-m);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user