mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 19:10:58 +00:00
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:
@@ -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 {
|
||||
|
||||
@@ -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%;");
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ async function refreshSessionOptions(state: AppViewState) {
|
||||
limit: 0,
|
||||
includeGlobal: true,
|
||||
includeUnknown: true,
|
||||
showArchived: state.sessionsShowArchived,
|
||||
showArchived: state.sessionsShowArchived ?? false,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user