Commit aa52febb authored by KesaubeEire's avatar KesaubeEire

style: 图片高度统一

parent d05c83a6
...@@ -79,8 +79,8 @@ npm run build:prod ...@@ -79,8 +79,8 @@ npm run build:prod
- [x] 展示基础卡片 - [x] 展示基础卡片
- [x] 图片 - [x] 图片
- [x] 点击 Cover 预览所有图片 - [x] 点击 Cover 预览所有图片
- [x] TODO: 懒加载 -> 有瀑布流后大概可以不需要懒加载了? - [x] 懒加载 -> 有瀑布流后大概可以不需要懒加载了?
- [ ] TODO: 图片高度统一 - [x] 图片高度统一
- [x] 语言 - [x] 语言
- [x] TAG - [x] TAG
- [x] 展示 - [x] 展示
......
...@@ -386,6 +386,12 @@ ...@@ -386,6 +386,12 @@
{#if List.length} {#if List.length}
<div class="cardContainer justify-evenly gap-4 my-3" transition:fade={{ delay: 0, duration: 300 }}> <div class="cardContainer justify-evenly gap-4 my-3" transition:fade={{ delay: 0, duration: 300 }}>
<!-- 示例卡片, 留着 -->
<!-- <Card raw_tags="|示例1|示例2|" cover="123"/> -->
<!-- <Card raw_tags="|示例1|示例2|" /> -->
<!-- <Card raw_tags="|示例1|示例2|" /> -->
<!-- <Card raw_tags="|示例1|示例2|" /> -->
{#each List as item} {#each List as item}
<Card <Card
title={item.cn_name} title={item.cn_name}
...@@ -399,12 +405,6 @@ ...@@ -399,12 +405,6 @@
p_searchCategory={searchCategory} p_searchCategory={searchCategory}
/> />
{/each} {/each}
<!-- 示例卡片, 留着 -->
<!-- <Card raw_tags="|示例1|示例2|" /> -->
<!-- <Card raw_tags="|示例1|示例2|" /> -->
<!-- <Card raw_tags="|示例1|示例2|" /> -->
<!-- <Card raw_tags="|示例1|示例2|" /> -->
</div> </div>
{/if} {/if}
......
...@@ -84,8 +84,20 @@ ...@@ -84,8 +84,20 @@
<div class="card w-80 bg-primary text-primary-content shadow-xl"> <div class="card w-80 bg-primary text-primary-content shadow-xl">
<!-- NOTE: Cover --> <!-- NOTE: Cover -->
<figure> <figure class="relative">
<!-- {#if !_picError} -->
<img <img
class="w-80 h-60 object-cover blur-lg"
src={cover ?? '/favicon.ico'}
alt={title ?? 'default alt'}
style={_picError ? 'height: 240px; width: 320px;' : ''}
on:click={getInfoPics}
onclick="globalModal.showModal()"
on:keypress={() => {}}
/>
<!-- {/if} -->
<img
class="left-0 top-0 absolute w-80 h-60 object-contain"
src={cover ?? '/favicon.ico'} src={cover ?? '/favicon.ico'}
alt={title ?? 'default alt'} alt={title ?? 'default alt'}
style={_picError ? 'height: 240px; width: 320px;' : ''} style={_picError ? 'height: 240px; width: 320px;' : ''}
...@@ -95,7 +107,7 @@ ...@@ -95,7 +107,7 @@
on:keypress={() => {}} on:keypress={() => {}}
/> />
</figure> </figure>
<div class="card-body"> <div class="card-body justify-between">
<h2 class="card-title block text-lg"> <h2 class="card-title block text-lg">
<!-- NOTE: 游戏类别 --> <!-- NOTE: 游戏类别 -->
<div <div
......
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