style: replace legacy padding classes with inline pixel values
Remove the unused padding.scss stylesheet and its import from the main SCSS entrypoint. Update all legacy padding utility class names across every Vue component to use inline pixel-based utility classes (such as replacing `pl-12` with `pl-[12px]`). Also clean up extraneous whitespace and line breaks in component templates for improved readability.
This commit is contained in:
@@ -1,35 +1,23 @@
|
||||
<template>
|
||||
<view class="recommendation-list-card w-full">
|
||||
<scroll-view
|
||||
class="recommendation-list-card__scroll scroll-x whitespace-nowrap w-full"
|
||||
scroll-x
|
||||
:show-scrollbar="false"
|
||||
enhanced
|
||||
>
|
||||
<view
|
||||
v-for="item in items"
|
||||
:key="item.id || item.title"
|
||||
<scroll-view class="recommendation-list-card__scroll scroll-x whitespace-nowrap w-full" scroll-x
|
||||
:show-scrollbar="false" enhanced>
|
||||
<view v-for="item in items" :key="item.id || item.title"
|
||||
class="recommendation-list-card__item inline-block bg-white rounded-20 overflow-hidden"
|
||||
:class="{ 'is-disabled': disabled }"
|
||||
@click="handleSelect(item)"
|
||||
>
|
||||
<image
|
||||
class="recommendation-list-card__image block w-full"
|
||||
:src="item.image"
|
||||
mode="aspectFill"
|
||||
/>
|
||||
<view class="recommendation-list-card__body p-16">
|
||||
:class="{ 'is-disabled': disabled }" @click="handleSelect(item)">
|
||||
<image class="recommendation-list-card__image block w-full" :src="item.image" mode="aspectFill" />
|
||||
<view class="recommendation-list-card__body p-[16px]">
|
||||
<view class="recommendation-list-card__name color-1E293B font-size-18 font-900 ellipsis-1">
|
||||
{{ item.title }}
|
||||
</view>
|
||||
<view class="recommendation-list-card__distance flex flex-items-center gap-4 mt-4 color-94A3B8 font-size-12 font-800">
|
||||
<view
|
||||
class="recommendation-list-card__distance flex flex-items-center gap-4 mt-4 color-94A3B8 font-size-12 font-800">
|
||||
<text class="recommendation-list-card__pin">⌖</text>
|
||||
<text>{{ item.distance }}</text>
|
||||
</view>
|
||||
<view
|
||||
class="recommendation-list-card__button flex flex-items-center flex-justify-center mt-12 color-334155 font-size-12 font-900"
|
||||
@click.stop="handleSelect(item)"
|
||||
>
|
||||
@click.stop="handleSelect(item)">
|
||||
{{ getActionText(item) }}
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user