Skip to content

Commit 97f0dfc

Browse files
committed
tamen
1 parent 25f1dc3 commit 97f0dfc

File tree

2 files changed

+80
-50
lines changed

2 files changed

+80
-50
lines changed

app/(default)/(project)/TAMEn/globals.css

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
@apply bg-gradient-to-br from-[#FF668C] via-[#FF668C] to-[#FF668C];
124124
}
125125
.color-text-1 {
126+
max-width: 100%;
126127
width: fit-content;
127128
background-image: linear-gradient(
128129
120deg,
@@ -173,8 +174,9 @@ svg {
173174
height: 1rem;
174175
}
175176

177+
/* Avoid global video scale — it shrinks visuals without fixing layout box and breaks mobile alignment. */
176178
video {
177-
transform: scale(0.8);
179+
max-width: 100%;
178180
}
179181

180182
button[data-slot="carousel-previous"] {
@@ -320,3 +322,30 @@ button[data-slot="carousel-next"] {
320322
font-size: 12px;
321323
}
322324
}
325+
326+
/* Mobile: carousel zoom + off-screen arrows caused horizontal overflow */
327+
@media (max-width: 767px) {
328+
.user-study-carousel [data-slot="carousel-item"] .card {
329+
transform: scale(0.96);
330+
filter: saturate(0.75) blur(0px);
331+
}
332+
333+
.user-study-carousel [data-slot="carousel-item"][data-active="true"] .card {
334+
transform: scale(1);
335+
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18),
336+
0 12px 28px rgba(0, 0, 0, 0.45);
337+
}
338+
339+
.user-study-carousel [data-slot="carousel-item"][data-active="true"] video {
340+
transform: none;
341+
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
342+
}
343+
344+
button[data-slot="carousel-previous"] {
345+
left: 2px;
346+
}
347+
348+
button[data-slot="carousel-next"] {
349+
right: 2px;
350+
}
351+
}

0 commit comments

Comments
 (0)