mirror of
https://github.com/penpot/penpot.git
synced 2026-09-14 16:09:01 +00:00
🐛 Fix small visual error
This commit is contained in:
parent
401cd273a5
commit
41ac0aa1cd
@ -937,7 +937,7 @@
|
||||
|
||||
(mf/defc updates-tab*
|
||||
{::mf/private true}
|
||||
[{:keys [file-id libraries]}]
|
||||
[{:keys [file-id libraries is-legacy]}]
|
||||
;; FIXME: naming
|
||||
(let [summary?* (mf/use-state true)
|
||||
summary? (deref summary?*)
|
||||
@ -972,7 +972,8 @@
|
||||
(dwl/set-updating-library true)
|
||||
(dwl/sync-file file-id library-id)))))))]
|
||||
|
||||
[:div {:class (stl/css :updates-content)}
|
||||
[:div {:class (stl/css-case :updates-content (not is-legacy)
|
||||
:updates-content-legacy is-legacy)}
|
||||
[:div {:class (stl/css :update-section)}
|
||||
(if (empty? libs-assets)
|
||||
[:div {:class (stl/css :section-list-empty)}
|
||||
@ -1174,6 +1175,7 @@
|
||||
"updates"
|
||||
[:> updates-tab*
|
||||
{:file-id file-id
|
||||
:is-legacy (not token-lib-sync?)
|
||||
:libraries linked-libraries}])]]]))
|
||||
|
||||
(mf/defc v2-info-dialog
|
||||
|
||||
@ -49,15 +49,15 @@
|
||||
}
|
||||
|
||||
// Tabs content
|
||||
.libraries-content {
|
||||
.libraries-content,
|
||||
.updates-content {
|
||||
display: grid;
|
||||
gap: var(--sp-xxxl);
|
||||
max-height: $sz-400;
|
||||
padding-block-start: var(--sp-l);
|
||||
}
|
||||
|
||||
.libraries-content-legacy,
|
||||
.updates-content {
|
||||
.updates-content-legacy {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: var(--sp-xxxl);
|
||||
@ -71,6 +71,7 @@
|
||||
display: grid;
|
||||
grid-template-rows: auto 1fr;
|
||||
gap: var(--sp-s);
|
||||
padding-block-start: var(--sp-xs);
|
||||
}
|
||||
|
||||
.shared-section {
|
||||
@ -203,6 +204,7 @@
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.updates-content-legacy,
|
||||
.updates-content {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
@ -345,6 +347,7 @@
|
||||
block-size: fit-content;
|
||||
border: $b-1 solid var(--color-accent-select);
|
||||
border-radius: $br-8;
|
||||
padding-inline: var(--sp-xxs) px2rem(6);
|
||||
}
|
||||
|
||||
// Modal Component v2 update
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user