fix(explore-cards): update scroll view props for horizontal scroll

replace outdated overflow-x-autoshow-scrollbar prop with scroll-x and show-scrollbar="false" to enable proper horizontal scrolling and hide the scrollbar
This commit is contained in:
duanshuwen
2026-07-25 11:38:10 +08:00
parent cd307da2ff
commit 04a7acc8b3
6 changed files with 6 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
<template>
<view class="explore-cards">
<scroll-view class="explore-scroll" overflow-x-autoshow-scrollbar="false">
<scroll-view class="explore-scroll" scroll-x show-scrollbar="false">
<view class="explore-track">
<view v-for="(item, index) in normalizedList" :key="getItemKey(item, index)" class="explore-card"
:class="`is-${item.tone}`" hover-class="is-pressed" hover-stay-time="80"

View File

@@ -1,5 +1,5 @@
<template>
<scroll-view class="prompt-strip" overflow-x-autoshow-scrollbar="false">
<scroll-view class="prompt-strip" scroll-x show-scrollbar="false">
<view class="prompt-track">
<view v-for="(item, index) in normalizedList" :key="getItemKey(item, index)" class="prompt-card"
hover-class="is-pressed" hover-stay-time="80" @tap="handleTap(item.raw, index)">

View File

@@ -1,6 +1,6 @@
<template>
<view class="container pl-[12px]">
<view class="container-scroll text-[0px] overflow-x-autowhitespace-nowrap">
<view class="container-scroll text-[0px] overflow-x-auto whitespace-nowrap">
<view class="card-item bg-white inline-block rounded-[20px] mr-[10px]" v-for="(item, index) in list" :key="index"
@click="sendReply(item)">