Skip to content

Commit

Permalink
fix(ui): broken text for the asset ref link
Browse files Browse the repository at this point in the history
  • Loading branch information
xyhp915 committed Nov 4, 2024
1 parent 2232fc8 commit 81918d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/frontend/components/block.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -2279,7 +2279,7 @@
(text-block-title (dissoc config :raw-title?) block)

(ldb/asset? block)
[:div.grid.grid-cols-1.justify-items-center
[:div.grid.grid-cols-1.justify-items-center.asset-block-wrap
(asset-cp config block)
(when (img-audio-video? block)
[:div.text-xs.opacity-60.mt-1
Expand Down
6 changes: 6 additions & 0 deletions src/main/frontend/components/block.css
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,12 @@
&:hover {
color: var(--lx-accent-11, var(--ls-link-text-color, hsl(var(--primary))));
}

&:has(.asset-ref.is-pdf) {
.asset-block-wrap {
@apply inline;
}
}
}

.asset-ref {
Expand Down

0 comments on commit 81918d9

Please sign in to comment.