1.0.1: theme performance, full Windows 98/Classic bars, the app menu on each pane's wB, restored windows fit their monitor

This commit is contained in:
CRTkafa 2026-10-01 12:06:34 +07:00
parent fccb974d05
commit 785c8cc72c
14 changed files with 104 additions and 32 deletions

View file

@ -31,8 +31,11 @@ export const X_ICONS: IconTable = {
views: { ctx: `${ACT} a[href$="/analytics"] svg`, group: 'actions' },
bookmark: { ctx: `${ACT} [data-testid="bookmark"] svg`, group: 'actions' },
'bookmark.on': { ctx: `${ACT} [data-testid="removeBookmark"] svg`, group: 'actions' },
share: { ctx: `${ACT} > div:last-child [role="button"] svg`, group: 'actions' },
media: { ctx: `${TOOLS} [role="button"]:has(+ input[data-testid="fileInput"]) svg,${TOOLS} [data-testid="fileInput"] ~ [role="button"] svg`, group: 'composer' },
// X's share button: the action bar's menu button without a test id (repost has one). Not `> div:last-child`:
// a structural pseudo-class there made every node appended to a timeline restyle the last post.
share: { ctx: `${ACT} [role="button"][aria-haspopup="menu"]:not([data-testid]) svg`, group: 'actions' },
// No `[role="button"]:has(+ input)`: that :has() restyled the whole page on every insertion (1.0.0).
media: { ctx: `${TOOLS} [data-testid="fileInput"] ~ [role="button"] svg`, group: 'composer' },
gif: { ctx: `${TOOLS} [data-testid="gifSearchButton"] svg`, group: 'composer' },
poll: { ctx: `${TOOLS} [data-testid="createPollButton"] svg`, group: 'composer' },
emoji: { ctx: `${TOOLS} [aria-label="Add emoji"] svg`, group: 'composer' },