mirror of
https://github.com/penpot/penpot.git
synced 2025-02-03 21:09:00 -05:00
🐛 Fix share modal when the file has 1 file only
This commit is contained in:
parent
6de70ff5b7
commit
cdc8c270dc
2 changed files with 17 additions and 5 deletions
|
@ -240,17 +240,21 @@
|
||||||
(tr "common.share-link.permissions-pages")]
|
(tr "common.share-link.permissions-pages")]
|
||||||
[:div {:class (stl/css :items)}
|
[:div {:class (stl/css :items)}
|
||||||
(if (= 1 (count pages))
|
(if (= 1 (count pages))
|
||||||
|
|
||||||
[:div {:class (stl/css :checkbox-wrapper)}
|
[:div {:class (stl/css :checkbox-wrapper)}
|
||||||
|
|
||||||
|
[:label {:for (str "page-" current-page-id)
|
||||||
|
:class (stl/css-case :global/checked true)}
|
||||||
|
|
||||||
|
[:span {:class (stl/css :checked)}
|
||||||
|
i/status-tick-refactor]
|
||||||
|
|
||||||
|
(:name current-page)]
|
||||||
|
|
||||||
[:input {:type "checkbox"
|
[:input {:type "checkbox"
|
||||||
:id (dm/str "page-" current-page-id)
|
:id (dm/str "page-" current-page-id)
|
||||||
:data-page-id (dm/str current-page-id)
|
:data-page-id (dm/str current-page-id)
|
||||||
:on-change on-mark-checked-page
|
:on-change on-mark-checked-page
|
||||||
:checked true}]
|
:checked true}]
|
||||||
[:label {:for (str "page-" current-page-id)} (:name current-page)]
|
|
||||||
[:span {:class (stl/css-case :checkobox-tick true
|
|
||||||
:global/checked true)}
|
|
||||||
i/status-tick-refactor]
|
|
||||||
[:span (str " " (tr "common.share-link.current-tag"))]]
|
[:span (str " " (tr "common.share-link.current-tag"))]]
|
||||||
|
|
||||||
[:*
|
[:*
|
||||||
|
|
|
@ -187,4 +187,12 @@
|
||||||
@extend .input-checkbox;
|
@extend .input-checkbox;
|
||||||
height: $s-32;
|
height: $s-32;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
span.checked {
|
||||||
|
background-color: var(--input-checkbox-background-color-active);
|
||||||
|
border: $s-1 solid var(--input-checkbox-background-color-active);
|
||||||
|
svg {
|
||||||
|
@extend .button-icon-small;
|
||||||
|
stroke: var(--input-checkbox-foreground-color-active);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue