Skip to content

Commit 96aea0a

Browse files
bbddbb1altaywtf
andauthored
fix(ui): prevent overview access grid layout overlap on resize (openclaw#56924)
Merged via squash. Prepared head SHA: ab32709 Co-authored-by: bbddbb1 <75060417+bbddbb1@users.noreply.github.com> Co-authored-by: altaywtf <9790196+altaywtf@users.noreply.github.com> Reviewed-by: @altaywtf
1 parent 8b06ca2 commit 96aea0a

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ Docs: https://docs.openclaw.ai
111111
- Agents/compaction: keep assistant tool calls and displaced tool results in the same compaction chunk so strict summarization providers stop rejecting orphaned tool pairs. (#58849) Thanks @openperf.
112112
- Outbound/sanitizer: strip leaked `<tool_call>`, `<function_calls>`, and model special tokens from shared user-visible assistant text, including truncated tool-call streams, so internal scaffolding no longer bleeds into replies across surfaces. (#60619) Thanks @oliviareid-svg.
113113
- Control UI/avatar: honor `ui.assistant.avatar` when serving `/avatar/:agentId` so Appearance UI avatar paths stop falling back to initials placeholders. (#60778) Thanks @hannasdev.
114+
- Control UI/Overview: prevent gateway access token/password visibility toggle buttons from overlapping their inputs at narrow widths. (#56924) Thanks @bbddbb1.
114115

115116
## 2026.4.2
116117

ui/src/ui/views/overview.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,11 @@ export function renderOverview(props: OverviewProps) {
221221
: html`
222222
<label class="field">
223223
<span>${t("overview.access.token")}</span>
224-
<div style="display: flex; align-items: center; gap: 8px;">
224+
<div style="display: flex; align-items: center; gap: 8px; min-width: 0;">
225225
<input
226226
type=${props.showGatewayToken ? "text" : "password"}
227227
autocomplete="off"
228-
style="flex: 1;"
228+
style="flex: 1 1 0%; min-width: 0; box-sizing: border-box;"
229229
.value=${props.settings.token}
230230
@input=${(e: Event) => {
231231
const v = (e.target as HTMLInputElement).value;
@@ -236,7 +236,7 @@ export function renderOverview(props: OverviewProps) {
236236
<button
237237
type="button"
238238
class="btn btn--icon ${props.showGatewayToken ? "active" : ""}"
239-
style="width: 36px; height: 36px;"
239+
style="flex-shrink: 0; width: 36px; height: 36px; box-sizing: border-box;"
240240
title=${props.showGatewayToken ? "Hide token" : "Show token"}
241241
aria-label="Toggle token visibility"
242242
aria-pressed=${props.showGatewayToken}
@@ -248,11 +248,11 @@ export function renderOverview(props: OverviewProps) {
248248
</label>
249249
<label class="field">
250250
<span>${t("overview.access.password")}</span>
251-
<div style="display: flex; align-items: center; gap: 8px;">
251+
<div style="display: flex; align-items: center; gap: 8px; min-width: 0;">
252252
<input
253253
type=${props.showGatewayPassword ? "text" : "password"}
254254
autocomplete="off"
255-
style="flex: 1;"
255+
style="flex: 1 1 0%; min-width: 0; width: 100%; box-sizing: border-box;"
256256
.value=${props.password}
257257
@input=${(e: Event) => {
258258
const v = (e.target as HTMLInputElement).value;
@@ -263,7 +263,7 @@ export function renderOverview(props: OverviewProps) {
263263
<button
264264
type="button"
265265
class="btn btn--icon ${props.showGatewayPassword ? "active" : ""}"
266-
style="width: 36px; height: 36px;"
266+
style="flex-shrink: 0; width: 36px; height: 36px; box-sizing: border-box;"
267267
title=${props.showGatewayPassword ? "Hide password" : "Show password"}
268268
aria-label="Toggle password visibility"
269269
aria-pressed=${props.showGatewayPassword}

0 commit comments

Comments
 (0)