🐛 Fix show more files button overlap (#11675)

This commit is contained in:
Eva Marco 2026-09-15 15:41:15 +02:00 committed by GitHub
parent a91aa0e37d
commit 1c8b0c1844
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 16 deletions

View File

@ -279,7 +279,18 @@
:top (:y (:menu-pos @local))
:on-edit on-edit-open
:on-close on-menu-close
:on-import on-import}])]]]
:on-import on-import}])]
(when (and (> limit 0)
(> file-count limit))
[:button {:class (stl/css :show-more)
:on-click on-nav
:tab-index "0"
:on-key-down (fn [event]
(when (kbd/enter? event)
(on-nav)))}
[:span {:class (stl/css :placeholder-label)} (tr "dashboard.show-all-files")]
show-more-icon])]]
[:div {:class (stl/css :grid-container) :ref rowref}
(if ^boolean empty?
@ -298,18 +309,7 @@
:create-fn create-file
:can-edit can-edit
:limit limit
:layout layout}])]
(when (and (> limit 0)
(> file-count limit))
[:button {:class (stl/css :show-more)
:on-click on-nav
:tab-index "0"
:on-key-down (fn [event]
(when (kbd/enter? event)
(on-nav)))}
[:span {:class (stl/css :placeholder-label)} (tr "dashboard.show-all-files")]
show-more-icon])]))
:layout layout}])]]))
(def ^:private ref:recent-files
(l/derived :recent-files st/state))

View File

@ -151,17 +151,17 @@
@include t.use-typography("body-medium");
flex: 0 0 auto;
margin-inline-start: auto;
border: none;
background: none;
cursor: pointer;
position: absolute;
inset-block-start: var(--sp-s);
inset-inline-end: px2rem(52);
display: flex;
align-items: center;
justify-content: space-between;
column-gap: var(--sp-m);
color: var(--show-more-color);
white-space: nowrap;
&:hover {
--show-more-color: var(--button-secondary-foreground-color-active);