Merge branch 'main' into task/tptip-3
This commit is contained in:
commit
64deeddfae
@ -81,7 +81,7 @@ input:focus,select:focus,textarea:focus,button:focus-visible{outline:2px solid v
|
||||
/* списки */
|
||||
.item{display:flex;align-items:center;gap:8px;padding:10px 0;border-top:1px solid var(--line)}
|
||||
.item:first-child{border-top:0}
|
||||
.item .main{flex:1;min-width:0;cursor:pointer}
|
||||
.item .main{flex:1;min-width:0;cursor:pointer;overflow-wrap:anywhere}
|
||||
.item .main b{display:block;overflow-wrap:anywhere}
|
||||
.badge{display:inline-block;border-radius:999px;padding:1px 8px;font-size:.75rem;background:var(--bg);border:1px solid var(--line);color:var(--muted)}
|
||||
.ok{color:var(--ok)}.bad{color:var(--bad)}
|
||||
|
||||
@ -75,3 +75,10 @@ test('Сценарий: после «Выбрать» видны вес и КБ
|
||||
assert.match(row.textContent, new RegExp('\\(' + n[1] + ' г\\)'));
|
||||
assert.match(row.textContent, new RegExp(n[2] + ' ккал · Б ' + n[3] + ' · Ж ' + n[4] + ' · У ' + n[5]));
|
||||
});
|
||||
|
||||
test('Сценарий: рецепт читается на телефоне — текст переносится, а не обрезается', () => {
|
||||
const css = source.match(/\.item \.main\{[^}]*\}/)[0];
|
||||
assert.match(css, /min-width:0/);
|
||||
assert.match(css, /overflow-wrap:anywhere/);
|
||||
assert.doesNotMatch(source, /text-overflow:\s*ellipsis/);
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user