fix(ui-layout): correct flex text truncation issues
Add min-w-0, w-full, and block classes to flex child elements and text nodes across various UI components to ensure text truncation works correctly. Remove outdated hardcoded card item width styles from global SCSS and replace them with inline responsive width classes where appropriate.
This commit is contained in:
@@ -9,10 +9,10 @@
|
||||
|
||||
<view class="explore-card-gradient" />
|
||||
|
||||
<view class="explore-card-content">
|
||||
<text class="explore-card-tag truncate">{{ item.tag }}</text>
|
||||
<text class="explore-card-title truncate">{{ item.title }}</text>
|
||||
<text v-if="item.subTitle" class="explore-card-desc truncate">
|
||||
<view class="explore-card-content box-border w-full min-w-0">
|
||||
<text class="explore-card-tag block w-full truncate">{{ item.tag }}</text>
|
||||
<text class="explore-card-title block w-full truncate">{{ item.title }}</text>
|
||||
<text v-if="item.subTitle" class="explore-card-desc block w-full truncate">
|
||||
{{ item.subTitle }}
|
||||
</text>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user