refactor: remove margin utils, use inline pixel spacing
Delete the src/static/scss/margin.scss utility file, update all component templates to replace pre-defined margin classes with inline arbitrary pixel values (e.g. mb-[4px] instead of mb-4), and clean up long template lines for better readability.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<view class="container w-full border-ff overflow-hidden rounded-[24px] flex flex-col">
|
||||
<!-- 占位撑开 -->
|
||||
<view class="w-vw"></view>
|
||||
<view class="content flex flex-col m-4 rounded-[24px]">
|
||||
<view class="content flex flex-col m-[4px] rounded-[24px]">
|
||||
<view class="flex flex-col p-[6px] flex-items-center justify-center">
|
||||
<image class="w-full rounded-[20px]" :src="componentDataMap.background" mode="widthFix" />
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
<text class="tag-text">{{ componentDataMap.superscript }}</text>
|
||||
</view>
|
||||
|
||||
<image class="g_title mt-20" :src="componentDataMap.title" />
|
||||
<image class="g_title mt-[20px]" :src="componentDataMap.title" />
|
||||
|
||||
<text class="font-size-14 font-400 text-white my-12 text-center">
|
||||
<text class="font-size-14 font-400 text-white my-[12px] text-center">
|
||||
{{ componentDataMap.description }}
|
||||
</text>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user