Skip to content

Commit abb1951

Browse files
committed
fix: description in safari & mobile
1 parent 08f5112 commit abb1951

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/components/faucet/FaucetCard.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
<div class="flex flex-col justify-between h-full min-h-64">
44
<FaucetAvailability :available="true" class="self-end" />
55
<!-- <div class="group-hover:-translate-y-0 translate-y-[calc(theme(spacing.12)_+_theme(spacing.7))] mt-28 ease-in-out duration-500"> -->
6-
<div class="">
6+
<div class="mt-12">
77
<span class="mb-2 text-grey-100 text-50 uppercase">{{ faucet.chain_id }}</span>
88
<h2 class="text-500 text-grey-50">{{ faucet.name }}</h2>
9-
<h3 class="text-grey-100 text-100 mt-3 h-12 group-hover:max-h-12 group-hover:opacity-100 max-h-0 opacity-0 ease-in-out duration-700 bottom-0 line-clamp-3">{{ faucet.description }}</h3>
9+
<h3 class="text-grey-100 text-100 mt-3 h-12 group-hover:max-h-12 md:max-h-0 ease-in-out duration-700 line-clamp-4 md:line-clamp-3 will-change-[max-height]">
10+
{{ faucet.description }}
11+
</h3>
1012
</div>
1113
</div>
1214
</Card>

src/components/ui/Card.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
2-
<article ref="DOMcard" v-bind="$attrs" class="card-container flex h-full flex-col cursor-pointer before:block before:absolute before:top-0 before:left-0 before:h-full before:w-full before:rounded before:blur-xl before:will-change-transform">
2+
<article ref="DOMcard" v-bind="$attrs" class="card-container group flex h-full flex-col cursor-pointer before:block before:absolute before:pointer-events-none before:top-0 before:left-0 before:h-full before:w-full before:rounded before:blur-xl before:will-change-transform">
33
<div
4-
class="card-inner group relative h-full shadow-card will-change-transform after:block after:absolute after:rounded after:top-px after:left-px after:h-[calc(100%-2px)] after:w-[calc(100%-2px)] after:z-99 after:mix-blend-overlay after:brightness-90 after:contrast-75 after:transition-opacity after:duration-500 before:absolute before:w-[calc(100%+2px)] before:h-[calc(100%+2px)] before:-top-px before:-left-px before:rounded ease-in-out after:z-20"
4+
class="card-inner relative h-full shadow-card will-change-transform after:block after:absolute after:rounded after:pointer-events-none after:top-px after:left-px after:h-[calc(100%-2px)] after:w-[calc(100%-2px)] after:z-99 after:mix-blend-overlay after:brightness-90 after:contrast-75 after:transition-opacity after:duration-500 before:absolute before:w-[calc(100%+2px)] before:h-[calc(100%+2px)] before:-top-px before:-left-px before:rounded ease-in-out after:z-20"
55
>
66
<div class="card relative flex flex-col bg-grey-500 rounded px-6 py-8 p-2 h-full">
77
<slot></slot>

0 commit comments

Comments
 (0)