ant-design / ant-design-mobile

Essential UI blocks for building mobile web apps.
https://mobile.ant.design
MIT License
11.54k stars 2.38k forks source link

feat: extend CSS for selector-item to support text overflow #6496

Closed YqxLzx closed 7 months ago

YqxLzx commented 7 months ago

problem

Items of selector have different height leading looks like very strange with the layout

selector的内容会换行会导致布局看起来很怪

resolution

i think selector should have an ability with boundary processing , so items of selector will not have different height

我认为selector组件应该具有边界处理的能力,这样布局能拥有一致性.

Compared

image image
zombieJ commented 7 months ago

应该尽可能避免自动 ellipsis,否则裁剪掉了用户看不到内容了。在网页上还能通过 title hover 出来,移动端就完全看不到了。

zombieJ commented 7 months ago

示例:

截屏2023-12-21 17 09 48 截屏2023-12-21 17 09 17
YqxLzx commented 7 months ago

应该尽可能避免自动 ellipsis,否则裁剪掉了用户看不到内容了。在网页上还能通过 title hover 出来,移动端就完全看不到了。

好像也是,hhh

YqxLzx commented 7 months ago

应该尽可能避免自动 ellipsis,否则裁剪掉了用户看不到内容了。在网页上还能通过 title hover 出来,移动端就完全看不到了。

那是否准备或者允许,增加开发者使用自定义的Item ?