mirror of
https://github.com/penpot/penpot.git
synced 2026-08-05 12:29:00 +00:00
🐛 Fix notification vertical alignment (#6272)
This commit is contained in:
parent
20f695e8d7
commit
580b60550c
@ -37,9 +37,9 @@
|
|||||||
{::mf/props :obj
|
{::mf/props :obj
|
||||||
::mf/schema schema:notification-pill}
|
::mf/schema schema:notification-pill}
|
||||||
[{:keys [level type is-html appearance detail children show-detail on-toggle-detail]}]
|
[{:keys [level type is-html appearance detail children show-detail on-toggle-detail]}]
|
||||||
(let [class (stl/css-case :notification-pill true
|
(let [class (stl/css-case :appearance-neutral (= appearance :neutral)
|
||||||
:appearance-neutral (= appearance :neutral)
|
|
||||||
:appearance-ghost (= appearance :ghost)
|
:appearance-ghost (= appearance :ghost)
|
||||||
|
:with-detail detail
|
||||||
:type-toast (= type :toast)
|
:type-toast (= type :toast)
|
||||||
:type-context (= type :context)
|
:type-context (= type :context)
|
||||||
:level-default (= level :default)
|
:level-default (= level :default)
|
||||||
|
|||||||
@ -88,6 +88,9 @@
|
|||||||
display: grid;
|
display: grid;
|
||||||
max-height: 92vh;
|
max-height: 92vh;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.with-detail {
|
||||||
grid-template-rows: auto 1fr;
|
grid-template-rows: auto 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user