diff --git a/apps.html b/apps.html index db57c1ff..f79a396b 100644 --- a/apps.html +++ b/apps.html @@ -23,7 +23,8 @@ border-radius:12px; text-decoration:none; color:inherit; transition:transform .12s ease, box-shadow .12s ease; } .app-card:hover { transform:translateY(-2px); box-shadow:0 6px 18px rgba(30,40,90,.12); } .app-card img { width:64px; height:64px; border-radius:14px; flex:none; } - .app-card h3 { font-size:1rem; margin-bottom:.15rem; } + .app-card-body { min-width:0; flex:1; } + .app-card h3 { font-size:1rem; margin-bottom:.15rem; overflow-wrap:anywhere; } .app-card p { font-size:.82rem; color:var(--sub); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; } .store-badge { display:inline-block; margin-top:.4rem; font-size:.78rem; font-weight:600; color:var(--accent); } footer { text-align:center; color:var(--sub); font-size:.85rem; padding:2rem; } diff --git a/tests/apps-mobile-grid.test.mjs b/tests/apps-mobile-grid.test.mjs index 016bf339..361f61ee 100644 --- a/tests/apps-mobile-grid.test.mjs +++ b/tests/apps-mobile-grid.test.mjs @@ -12,3 +12,8 @@ test("app catalog grid fits viewports narrower than the original 300px column", test("mobile page retains its responsive viewport setting", () => { assert.match(source, //); }); + +test("app card text can shrink and wrap instead of widening the grid", () => { + assert.match(source, /\.app-card-body\s*\{\s*min-width:0;\s*flex:1;/); + assert.match(source, /\.app-card h3\s*\{[^}]*overflow-wrap:anywhere;/); +});