@celestia-island/hikari 0.55.393 → 0.55.395
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Source contract: the theme panel rows use a PERSISTENT action lane.
|
|
3
|
+
* The default "overlay" mode parks the edit/delete actions out of flow
|
|
4
|
+
* and covers the row's right content on hover — which swallowed the
|
|
5
|
+
* plugin badge on plugin-sourced themes (2026-11-14 user screenshot:
|
|
6
|
+
* the SquarePen edit button covering the badge on Arcaea). Persistent
|
|
7
|
+
* keeps the lane in the flow: badge and actions coexist, nothing gets
|
|
8
|
+
* covered.
|
|
9
|
+
*/
|
|
10
|
+
import { readFileSync } from "node:fs";
|
|
11
|
+
import { dirname, join } from "node:path";
|
|
12
|
+
import { fileURLToPath } from "node:url";
|
|
13
|
+
|
|
14
|
+
import { describe, expect, it } from "vitest";
|
|
15
|
+
|
|
16
|
+
const here = dirname(fileURLToPath(import.meta.url));
|
|
17
|
+
const src = readFileSync(join(here, "HkThemePanelContent.tsx"), "utf-8")
|
|
18
|
+
.replace(/\/\*[\s\S]*?\*\//g, "")
|
|
19
|
+
.replace(/^[ \t]*\/\/.*$/gm, "");
|
|
20
|
+
|
|
21
|
+
describe("HkThemePanelContent action lane contract", () => {
|
|
22
|
+
it("pins persistent action lane on the theme rows", () => {
|
|
23
|
+
expect(src).toContain('actionsMode="persistent"');
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -331,6 +331,7 @@ export const HkThemePanelContent = defineComponent({
|
|
|
331
331
|
data-active={isActive || undefined}
|
|
332
332
|
aria-current={isActive ? "true" : undefined}
|
|
333
333
|
actions={actions}
|
|
334
|
+
actionsMode="persistent"
|
|
334
335
|
actionsLabel={t("hikari::theme.rowActionsLabel")}
|
|
335
336
|
onClick={() => onSelectTheme(th.id)}
|
|
336
337
|
>
|