SegmentedControl: colunas iguais truncam e colam rótulos longos no celular
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- css, typescript
- 领域
- frontend
调研方向
Start from the SegmentedControl component source in the package and the equal-width column styling it applies, then reproduce with three long labels in a ~340 px column. The issue offers three acceptable outcomes (content-sized columns with scroll snap, stacking below a breakpoint, or an overflow prop), so a maintainer must pick one before code is written; the 44 px touch target and minimum padding/gap apply whichever is chosen. Done means long labels are readable and tappable at 390 px without local CSS overrides like the Tabs workaround on the Conectar IA page.
由索引模型根据 Issue 内容生成。
描述
Problema
SegmentedControl força colunas de largura igual. Com rótulos de tamanhos diferentes num container estreito, os textos são truncados e encostam uns nos outros sem espaçamento. Exemplo: "Bot de atendimento", "Conectar um número" e "Campanha com opt-in" a 390 px. Não há quebra de linha nem rolagem.
Versão
@codeatlasdev/ui 4.6.0
Reproduzir
SegmentedControl com 3 itens de rótulos longos dentro de uma coluna de cerca de 340 px.
Esperado
Uma destas opções: colunas no tamanho do conteúdo, com rolagem horizontal e snap quando não couber; empilhar abaixo de um breakpoint; ou uma prop overflow="scroll" | "stack". Em toque, os itens precisam de padding e gap mínimos e alvo de 44 px.
Como o wi contorna hoje
Na página Conectar IA trocamos o SegmentedControl por Tabs, e abaixo de 600 px os itens empilham (CSS local).
- 主要语言
- TypeScript
- 星标
- 6
- 派生
- 3
- 平均合并
- 5 小时 21 分钟
- 30 天内合并 PR
- 378
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
codeatlasdev/ui 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
codeatlasdev/ui#1340 ·
维护者通常 1 天内回复
-
area:a11y area:components bug
难度 2/5 1-3 小时 新手友好度 76/100
codeatlasdev/ui#1336 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
codeatlasdev/ui#1329 ·
维护者通常 1 天内回复
-
good first issue
难度 2/5 1-3 小时 新手友好度 74/100
codeatlasdev/ui#1292 · 1 条评论 ·
维护者通常 1 天内回复
-
area:components enhancement good first issue
难度 2/5 1-3 小时 新手友好度 68/100
codeatlasdev/ui#1198 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 86/100
sandbox-quantum/switch#2163 ·
维护者通常 1 天内回复
-
automated issue report
难度 1/5 1 小时以内 新手友好度 78/100
维护者通常 1 天内回复
-
area/dashboard kind/bug QA/dev-automation
难度 1/5 1 小时以内 新手友好度 75/100
维护者通常 1 天内回复
-
bug pydanty:is-working
难度 2/5 1-3 小时 新手友好度 82/100
pydantic/pydantic-ai#13939 ·
维护者通常 1 天内回复
-
self-host
难度 2/5 1-3 小时 新手友好度 70/100
funmusicplace/mirlo#2625 ·
维护者通常 1 天内回复