fix(control-ui): contain access settings fields (#77171)

* fix(control-ui): contain access settings fields

* docs: update changelog for access overflow fix

* fix(control-ui): preserve archived session defaults
This commit is contained in:
Val Alexander
2026-05-04 02:40:52 -05:00
committed by GitHub
parent e524878998
commit cf03fe6b6a
5 changed files with 30 additions and 4 deletions

View File

@@ -5552,7 +5552,18 @@ td.data-table-key-col {
.ov-access-grid {
display: grid;
gap: 12px;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
}
.ov-access-grid .field {
min-width: 0;
}
.ov-access-grid .field input,
.ov-access-grid .field select {
box-sizing: border-box;
min-width: 0;
width: 100%;
}
.ov-access-grid__full {

View File

@@ -34,3 +34,17 @@ describe("sessions filter styles", () => {
expect(css).toContain(".sessions-filter-bar {\n flex-direction: column;");
});
});
describe("overview access grid styles", () => {
it("keeps access fields and native controls within the card", () => {
const css = readComponentsCss();
expect(css).toContain(
"grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));",
);
expect(css).toContain(".ov-access-grid .field {\n min-width: 0;");
expect(css).toContain(".ov-access-grid .field input,\n.ov-access-grid .field select {");
expect(css).toContain("box-sizing: border-box;");
expect(css).toContain("width: 100%;");
});
});

View File

@@ -661,7 +661,7 @@ export async function createChatSession(state: AppViewState) {
limit: 0,
includeGlobal: true,
includeUnknown: true,
showArchived: state.sessionsShowArchived,
showArchived: state.sessionsShowArchived ?? false,
},
);
if (
@@ -692,7 +692,7 @@ async function refreshSessionOptions(state: AppViewState) {
limit: 0,
includeGlobal: true,
includeUnknown: true,
showArchived: state.sessionsShowArchived,
showArchived: state.sessionsShowArchived ?? false,
});
}

View File

@@ -77,7 +77,7 @@ async function refreshSessionOptions(state: AppViewState) {
limit: 0,
includeGlobal: true,
includeUnknown: true,
showArchived: state.sessionsShowArchived,
showArchived: state.sessionsShowArchived ?? false,
});
}