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

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); color: var(--accent);
} }
> .thumbnail > * { > .thumbnail {
width: 100%; & + article {
height: 200px; border-radius: 0 0 var(--radius) var(--radius);
border-radius: var(--radius) var(--radius) 0 0; }
overflow: hidden;
> * {
width: 100%;
height: 200px;
border-radius: var(--radius) var(--radius) 0 0;
overflow: hidden;
}
} }
> article { > article {
background-color: var(--panel); background-color: var(--panel);
padding: 16px; padding: 16px;
border-radius: 0 0 var(--radius) var(--radius); border-radius: var(--radius);
> header { > header {
margin-bottom: 8px; margin-bottom: 8px;