Tighten SCUM plugin console UI

This commit is contained in:
npc0-hue
2026-08-27 09:41:46 +08:00
parent feec02dc14
commit 1c52703b3e
5 changed files with 39 additions and 22 deletions
@@ -175,6 +175,7 @@ describe("ServerDetailPage config write approval", () => {
expect(serverDetailPageSource).toContain("plugin:${page.key}");
expect(serverDetailPageSource).toContain("ServerDetailSectionNav");
expect(serverDetailPageSource).toContain('aria-label="游戏运营功能"');
expect(serverDetailPageSource).toContain("server-plugin-section-picker-active");
expect(serverDetailPageSource).toContain('section === "files"');
expect(serverDetailPageSource).toContain("PluginPageSection");
expect(serverDetailPageSource).toContain("PluginPageHostPage");
+1 -1
View File
@@ -272,7 +272,7 @@ function ServerDetailSectionNav({ entries, section, onChange }: { entries: Array
return (
<nav className="section-tabs" aria-label="server sections">
{pluginEntries.length > 0 && (
<label className="server-plugin-section-picker">
<label className={cx("server-plugin-section-picker", activePluginSection && "server-plugin-section-picker-active")}>
<span></span>
<select aria-label="游戏运营功能" value={activePluginSection} onChange={(event) => event.target.value && onChange(event.target.value as ServerDetailSection)}>
<option value="" disabled></option>