feat: no borders in cards (#925)

This commit is contained in:
patak 2023-01-10 10:05:59 +01:00 committed by GitHub
parent 971e273dc3
commit ad1e597b5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 11 additions and 11 deletions

View file

@ -38,12 +38,13 @@ const cardTypeIconMap: Record<mastodon.v1.PreviewCardType, string> = {
v-else
block
of-hidden
hover:bg-active
:to="card.url"
bg-card
hover:bg-active
:class="{
'flex': isSquare,
'p-4': root,
'rounded-lg border border-base': !root,
'rounded-lg': !root,
}"
target="_blank"
external
@ -52,10 +53,9 @@ const cardTypeIconMap: Record<mastodon.v1.PreviewCardType, string> = {
v-if="card.image"
flex flex-col
display-block of-hidden
border="base"
:class="{
'sm:(min-w-32 w-32 h-32) min-w-22 w-22 h-22 border-r': isSquare,
'w-full aspect-[1.91] border-b': !isSquare,
'sm:(min-w-32 w-32 h-32) min-w-22 w-22 h-22': isSquare,
'w-full aspect-[1.91]': !isSquare,
'rounded-lg': root,
}"
>