Skip to content

Commit 276046d

Browse files
committed
fix: make TextWheel work in safari
1 parent 6159628 commit 276046d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/app/components/base/text-wheel/TextWheel.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ onMounted(() => (mounted.value = true));
2424

2525
<style lang="scss" module>
2626
.container {
27+
display: inline-block;
2728
position: relative;
2829
overflow: hidden;
2930
clip-path: inset(0 0 0 0);

src/app/components/feature/YearToggle.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TextWheelSelect :values="allYears" :value="state.activeYear" @change="changeYear" />
55
<Button :icon="RiArrowRightSLine" rounded @click="rotateYear(1)" />
66
</span>
7-
<i18n-t tag="span" :keypath="keyPath" scope="global">
7+
<i18n-t :class="$style.activeYear" tag="span" :keypath="keyPath" scope="global">
88
<template #year>
99
<TextWheel :values="allYears" :value="state.activeYear" />
1010
</template>
@@ -63,4 +63,10 @@ const rotateYear = (dir: -1 | 1) => {
6363
cursor: pointer;
6464
}
6565
}
66+
67+
.activeYear {
68+
display: flex;
69+
align-items: flex-end;
70+
gap: 0.5ch;
71+
}
6672
</style>

0 commit comments

Comments
 (0)