Commit 435c295e authored by nick zheng's avatar nick zheng

fix: 草稿箱封面图根据布局比例展示

parent 2dfc6182
......@@ -36,8 +36,11 @@ export function createDarftTableColumns({
src: row.coverUrl,
alt: '作品圖',
class: 'h-full object-cover',
style: {
width: row.width > row.height ? '64px' : '20px',
},
})
: h('div', { class: 'border w-full h-full text-xs flex items-center justify-center' }, '暫無圖片'),
: h('div', { class: 'w-full h-full text-xs flex items-center justify-center' }, '暫無圖片'),
],
),
h(NEllipsis, {}, { default: () => row.draftName || '--' }),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment