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:
@@ -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"
|
||||
|
||||
@@ -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)">
|
||||
|
||||
@@ -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)">
|
||||
|
||||
Reference in New Issue
Block a user