fix: restore numeric habit progress bars
This commit is contained in:
@@ -135,7 +135,7 @@ describe('approved five-detail polish', () => {
|
||||
expect(css).toContain('.plain-list{display:grid;gap:0;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}')
|
||||
expect(css).toContain('.plain-list-row,.plain-list>.task-row,.plain-list>.habit-row{height:58px;min-height:58px;max-height:58px;background:transparent;border:0;border-bottom:1px solid #e8e0d5;border-radius:0;box-shadow:none}')
|
||||
expect(css).toContain('.task-row{grid-template-columns:44px minmax(0,1fr) auto}')
|
||||
expect(css).toContain('.habit-row{grid-template-columns:44px minmax(0,1fr) auto}')
|
||||
expect(css).toContain('.habit-row{grid-template-columns:44px minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr) 4px;row-gap:5px}')
|
||||
expect(css).toContain('.task-main strong,.habit-name{display:block;min-width:0;font-size:15px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}')
|
||||
expect(css).toContain('.task-tail,.habit-row-meta{min-width:0;max-width:132px;padding-left:12px;font-size:12px;font-weight:400;white-space:nowrap;text-align:right;overflow:hidden;text-overflow:ellipsis}')
|
||||
expect(css).toContain('.task-check{width:44px;')
|
||||
@@ -148,7 +148,7 @@ describe('approved five-detail polish', () => {
|
||||
const fullRows = habits.slice(habits.indexOf('class="habit-list plain-list">'), habits.indexOf('class="habit-archive-section"'))
|
||||
for (const rows of [todayRows, fullRows]) {
|
||||
expect(rows).not.toContain('habit-week')
|
||||
expect(rows).not.toContain('habit-progress-bar')
|
||||
expect(rows).toContain('<progress v-if="h.kind === \'numeric\'" class="habit-progress-bar"')
|
||||
expect(rows).not.toContain('habit-state-note')
|
||||
expect(rows).toContain('class="habit-row-meta"')
|
||||
expect(rows).toContain(':aria-label="habitRowStatus(h)"')
|
||||
|
||||
Reference in New Issue
Block a user