diff --git a/frontend/src/index.css b/frontend/src/index.css index 71d883d..8ae1926 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -262,7 +262,7 @@ h4.sec{ display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto; } .lrow.lrow-stack-value .lrow-m{grid-column:1;grid-row:1} -.lrow.lrow-stack-value .lrow-v{grid-column:1;grid-row:2;text-align:left} +.lrow.lrow-stack-value .lrow-v{grid-column:1;grid-row:2;width:100%;max-width:none;text-align:left} .lrow.lrow-stack-value .lrow-c{grid-column:2;grid-row:1 / span 2;align-self:center} /* an (i) before a row's control: painted small and dim so the control stays the loud thing, but with a finger-sized target like everything else — the padding is the hit area and the diff --git a/frontend/src/views/Stats.test.js b/frontend/src/views/Stats.test.js index be90304..c0ce185 100644 --- a/frontend/src/views/Stats.test.js +++ b/frontend/src/views/Stats.test.js @@ -35,7 +35,8 @@ describe('Stats mixed-entry metric contract', () => { expect(uiSource).toContain('sheetTitle, stackedValue = false') expect(uiSource).toContain("className={stackedValue ? 'lrow-stack-value' : ''}") expect(cssSource).toContain('.lrow.lrow-stack-value .lrow-m{grid-column:1;grid-row:1}') - expect(cssSource).toContain('.lrow.lrow-stack-value .lrow-v{grid-column:1;grid-row:2;text-align:left}') + expect(cssSource).toContain('.lrow.lrow-stack-value .lrow-v{grid-column:1;grid-row:2;width:100%;max-width:none;text-align:left}') + expect(cssSource).toContain('flex:0 1 auto;max-width:45%;min-width:0;') expect(cssSource).toContain('overflow:hidden;text-overflow:ellipsis;white-space:nowrap') }) })