Tighten SCUM plugin console UI
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user