Files
FastD e352335822 Filter bar with hover layer, icon-only project links, design reports
Filters: the panel is a bar (status segment, always visible) plus a body that lives as a layer
under it - collapsed by default, expands on hover/focus/tap and never moves the case grid; the
reset control appears only when a facet is limited; width capped at 720px (measured 45px slack
against 477px before). Facet research report is included.

Links: project links in the mini card and in the project window are icon-only buttons with a
uniform slot (16px card / 18px window) and the accessible name in aria-label; studio contacts
(mail, VK, RuStore) live outside the cards.

Team and page: real photos from the public TITANS team page go to the member window while the
card keeps the mascot; the portfolio gains the First Step Radio card and genre values, the
process block became an individual-approach section, plus a cookie bar and a removable ticker.

Design folders under design/ keep reports, measurements, scripts and the .pen; probe and
before/after screenshot dumps, editor backups and caches are removed. Background-variant and
palette previews stay until the client picks one.
2026-10-15 05:50:52 +03:00

32 lines
1.3 KiB
JavaScript

/* Does `height:<N>px; width:auto` on an inline SVG resolve width from the viewBox ratio?
* The button icon size must scale with the button (18px in the quick-view, 16px in the
* mini-card) without a per-icon width table. Print the real used width/height.
* Run: NODE_PATH=... node design/project-links-2026-10-14/probe-icon-sizing.cjs
*/
const { chromium } = require("playwright");
const path = require("path");
const EXE = process.env.CHROME_EXE ||
"C:/Users/deeen/AppData/Local/ms-playwright/chromium-1223/chrome-win64/chrome.exe";
(async () => {
const browser = await chromium.launch({ executablePath: EXE });
const page = await browser.newPage();
await page.goto("file:///" + path.join(__dirname, "probe-glyphs.html").replace(/\\/g, "/"));
const rows = await page.evaluate(() => {
const out = [];
document.querySelectorAll("svg.i").forEach((s) => {
const r = s.getBoundingClientRect();
const cs = getComputedStyle(s);
out.push({
vb: s.getAttribute("viewBox"),
cssW: cs.width, cssH: cs.height,
usedW: +r.width.toFixed(2), usedH: +r.height.toFixed(2),
});
});
return out;
});
rows.forEach((r) => console.log(`${r.vb.padEnd(28)} css ${r.cssW} x ${r.cssH} -> used ${r.usedW} x ${r.usedH}`));
await browser.close();
})();