card style changes
This commit is contained in:
parent
6a94d8ef63
commit
8351c63e57
1 changed files with 21 additions and 5 deletions
|
|
@ -10,20 +10,37 @@ defineProps({
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<n-card :title="merch.name" class="responsive-card">
|
<n-card class="responsive-card">
|
||||||
|
<template #header>
|
||||||
|
<h3 class="card-title">{{ merch.name }}</h3>
|
||||||
|
</template>
|
||||||
<template #cover>
|
<template #cover>
|
||||||
<div class="cover-wrapper">
|
<div class="cover-wrapper">
|
||||||
<BoxIcon />
|
<BoxIcon />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
Card Content
|
|
||||||
</n-card>
|
</n-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.responsive-card {
|
.responsive-card {
|
||||||
max-width: 200px;
|
width: 180px;
|
||||||
min-width: 180px;
|
height: 240px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-title {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
white-space: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cover-wrapper {
|
.cover-wrapper {
|
||||||
|
|
@ -40,5 +57,4 @@ defineProps({
|
||||||
height: auto;
|
height: auto;
|
||||||
max-width: 80%;
|
max-width: 80%;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue