fix: contain long subtask text in detail
ci / gitleaks (push) Successful in 6s
ci / docker (push) Successful in 3m28s

This commit is contained in:
2026-09-09 10:46:47 +08:00
parent c4e0683b6b
commit ab157c2ecf
2 changed files with 8 additions and 2 deletions
File diff suppressed because one or more lines are too long
+7 -1
View File
@@ -410,7 +410,13 @@ describe('settings data tools', () => {
})
})
describe('task detail due field', () => {
describe('task detail layout', () => {
it('keeps long subtask text inside the detail panel', () => {
expect(css).toContain('.detail-form{min-width:0;grid-template-columns:minmax(0,1fr);')
expect(css).toContain('.detail-form>*{min-width:0}')
expect(css).toContain('.subtask-detail{width:100%;min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-word;white-space:normal;display:flex;')
})
it('keeps the list, due datetime and repeat controls equally compact', () => {
expect(app).toContain('<label class="task-detail-due-row">截止时间')
expect(app).toContain('class="task-detail-due-input task-detail-field-input"')