サムネイルがないとき変な角丸にならんようにする

This commit is contained in:
kakkokari-gtyih 2023-09-03 19:10:55 +09:00
parent 02798e0809
commit 59206d6ef5
1 changed files with 12 additions and 6 deletions

View File

@ -46,17 +46,23 @@ const props = defineProps<{
color: var(--accent);
}
> .thumbnail > * {
width: 100%;
height: 200px;
border-radius: var(--radius) var(--radius) 0 0;
overflow: hidden;
> .thumbnail {
& + article {
border-radius: 0 0 var(--radius) var(--radius);
}
> * {
width: 100%;
height: 200px;
border-radius: var(--radius) var(--radius) 0 0;
overflow: hidden;
}
}
> article {
background-color: var(--panel);
padding: 16px;
border-radius: 0 0 var(--radius) var(--radius);
border-radius: var(--radius);
> header {
margin-bottom: 8px;