🐛 Fix theme modal height (#9105)

* 🐛 Fix CI

* 🐛 Fix theme modal height
This commit is contained in:
Eva Marco 2026-04-24 11:38:34 +02:00 committed by GitHub
parent 7135782e7d
commit 4a7140d82d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 62 additions and 40 deletions

View File

@ -23,6 +23,7 @@
- Fix dashboard navigation tabs overlap with projects content when scrolling [Taiga #13962](https://tree.taiga.io/project/penpot/issue/13962) - Fix dashboard navigation tabs overlap with projects content when scrolling [Taiga #13962](https://tree.taiga.io/project/penpot/issue/13962)
- Fix text editor v1 focus [Taiga #13961](https://tree.taiga.io/project/penpot/issue/13961) - Fix text editor v1 focus [Taiga #13961](https://tree.taiga.io/project/penpot/issue/13961)
- Fix color dropdown option update [Taiga #14035](https://tree.taiga.io/project/penpot/issue/14035) - Fix color dropdown option update [Taiga #14035](https://tree.taiga.io/project/penpot/issue/14035)
- Fix themes modal height [Taiga #14046](https://tree.taiga.io/project/penpot/issue/14046)
## 2.15.0 (Unreleased) ## 2.15.0 (Unreleased)

View File

@ -745,12 +745,12 @@
(mf/defc mcp-menu* (mf/defc mcp-menu*
{::mf/private true} {::mf/private true}
[{:keys [on-close]}] [{:keys [on-close]}]
(let [plugins? (features/active-feature? @st/state "plugins/runtime") (let [plugins? (features/active-feature? @st/state "plugins/runtime")
profile (mf/deref refs/profile) profile (mf/deref refs/profile)
mcp (mf/deref refs/mcp) mcp (mf/deref refs/mcp)
tokens (mf/deref refs/access-tokens) tokens (mf/deref refs/access-tokens)
expired? (some->> tokens expired? (some->> tokens
(some #(when (= (:type %) "mcp") %)) (some #(when (= (:type %) "mcp") %))
:expires-at :expires-at

View File

@ -4,20 +4,36 @@
// //
// Copyright (c) KALEIDOS INC // Copyright (c) KALEIDOS INC
@use "ds/_utils.scss" as *;
@use "ds/_sizes.scss" as *; @use "ds/_sizes.scss" as *;
@use "ds/_borders.scss" as *;
@use "refactor/common-refactor.scss" as deprecated; @use "ds/mixins.scss" as *;
@use "ds/z-index.scss" as *;
.modal-overlay { .modal-overlay {
@extend .modal-overlay-base; display: flex;
justify-content: center;
align-items: center;
position: fixed;
inset-inline-start: 0;
inset-block-start: 0;
block-size: 100%;
inline-size: 100%;
z-index: var(--z-index-set);
background-color: var(--color-overlay-default);
} }
.modal-dialog { .modal-dialog {
@extend .modal-container-base; position: relative;
inline-size: 100%;
width: 100%; min-inline-size: $sz-364;
max-width: deprecated.$s-512; min-block-size: $sz-192;
max-height: unset; max-inline-size: $sz-512;
max-block-size: calc(100dvh - #{px2rem(192)});
padding: var(--sp-xxxl);
border-radius: $br-8;
border: $b-2 solid var(--color-background-quaternary);
background-color: var(--color-background-primary);
user-select: none; user-select: none;
} }
@ -26,14 +42,15 @@
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
gap: deprecated.$s-12; gap: var(--sp-m);
padding: deprecated.$s-72 0; padding-block: px2rem(72);
padding-inline: 0;
} }
.themes-modal-wrapper { .themes-modal-wrapper {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: deprecated.$s-16; gap: var(--sp-l);
} }
.edit-theme-form { .edit-theme-form {
@ -53,10 +70,10 @@
border: none; border: none;
appearance: none; appearance: none;
color: var(--color-foreground-secondary); color: var(--color-foreground-secondary);
width: fit-content; inline-size: fit-content;
display: grid; display: grid;
grid-template-columns: auto auto; grid-template-columns: auto auto;
gap: deprecated.$s-4; gap: var(--sp-xs);
align-items: center; align-items: center;
padding: 0; padding: 0;
&:hover { &:hover {
@ -66,9 +83,9 @@
.button-footer { .button-footer {
display: flex; display: flex;
margin-left: auto; margin-inline-start: auto;
justify-content: flex-end; justify-content: flex-end;
gap: deprecated.$s-6; gap: px2rem(6);
} }
.edit-theme-footer { .edit-theme-footer {
@ -97,18 +114,19 @@
.create-theme-wrapper { .create-theme-wrapper {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: deprecated.$s-24; gap: var(--sp-xxl);
} }
.close-btn { .close-btn {
position: absolute; position: absolute;
top: deprecated.$s-8; inset-block-start: var(--sp-s);
right: deprecated.$s-6; inset-inline-end: px2rem(6);
} }
.theme-group-label { .theme-group-label {
color: var(--color-foreground-secondary); color: var(--color-foreground-secondary);
margin: 0 0 deprecated.$s-12 0; margin-block: 0 var(--sp-m);
margin-inline: 0;
padding: 0; padding: 0;
} }
@ -116,7 +134,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: flex-start; justify-content: flex-start;
gap: deprecated.$s-4; gap: var(--sp-xs);
} }
.group-title-icon { .group-title-icon {
@ -124,34 +142,37 @@
} }
.group-title-name { .group-title-name {
@include textEllipsis;
flex-grow: 1; flex-grow: 1;
@include deprecated.textEllipsis;
} }
.theme-group-rows-wrapper { .theme-group-rows-wrapper {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: deprecated.$s-6; gap: px2rem(6);
margin: 0; margin: 0;
} }
.theme-group-wrapper { .theme-group-wrapper {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
margin-block-start: deprecated.$s-6; margin-block-start: px2rem(6);
overflow-y: auto; overflow-y: auto;
gap: deprecated.$s-32; gap: var(--sp-xxxl);
max-block-size: calc(100dvh - #{px2rem(448)});
} }
.theme-row { .theme-row {
align-items: center; align-items: center;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
gap: deprecated.$s-16; gap: var(--sp-l);
} }
.theme-name-row { .theme-name-row {
@include deprecated.textEllipsis; @include textEllipsis;
flex-grow: 1; flex-grow: 1;
} }
@ -162,13 +183,13 @@
.theme-actions-row { .theme-actions-row {
align-items: center; align-items: center;
display: flex; display: flex;
gap: deprecated.$s-6; gap: px2rem(6);
flex-shrink: 0; flex-shrink: 0;
} }
.sets-count-button { .sets-count-button {
padding: deprecated.$s-6; padding: px2rem(6);
padding-left: deprecated.$s-12; padding-inline-start: var(--sp-m);
} }
.label-wrapper { .label-wrapper {
@ -181,32 +202,32 @@
.edit-theme-wrapper { .edit-theme-wrapper {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: deprecated.$s-24; gap: var(--sp-xxl);
inline-size: 100%; inline-size: 100%;
} }
.sets-list-wrapper { .sets-list-wrapper {
border: deprecated.$s-1 solid color-mix(in hsl, var(--color-foreground-secondary) 30%, transparent); border: $b-1 solid color-mix(in hsl, var(--color-foreground-secondary) 30%, transparent);
border-radius: deprecated.$s-8; border-radius: $br-8;
overflow-y: auto; overflow-y: auto;
max-height: deprecated.$s-452; max-block-size: px2rem(452);
} }
.sets-count-empty-button { .sets-count-empty-button {
text-transform: lowercase; text-transform: lowercase;
padding: deprecated.$s-6; padding: px2rem(6);
padding-left: deprecated.$s-12; padding-inline-start: var(--sp-m);
} }
.group-input-wrapper { .group-input-wrapper {
position: relative; position: relative;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: deprecated.$s-4; gap: var(--sp-xs);
} }
.edit-theme-inputs-wrapper { .edit-theme-inputs-wrapper {
display: grid; display: grid;
grid-template-columns: 0.6fr 1fr; grid-template-columns: 0.6fr 1fr;
gap: deprecated.$s-12; gap: var(--sp-m);
} }