Skip to content

Commit 92d5084

Browse files
authored
Merge pull request GCWing#515 from limityan/yanzhn/fix
fix(ui): remove dense dividers in todo list and fix window state sync
2 parents 661d9bb + e992712 commit 92d5084

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

‎src/web-ui/src/app/hooks/useWindowControls.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,10 @@ export const useWindowControls = (options?: { isToolbarMode?: boolean }) => {
141141
const setupListener = async () => {
142142
try {
143143
const appWindow = getCurrentWindow();
144-
145-
// Get initial state (only when visible)
146-
await updateWindowState(appWindow);
144+
145+
// Get initial state (skip visibility check so we still sync
146+
// when the window is maximized before it becomes visible)
147+
await updateWindowState(appWindow, true);
147148
await restoreMacOSOverlayTitlebar(appWindow);
148149

149150
// Listen for resize (with debounce and visibility checks)

‎src/web-ui/src/flow_chat/tool-cards/TodoWriteDisplay.scss‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,16 +239,11 @@
239239
.todo-item {
240240
display: flex;
241241
align-items: center;
242-
padding: 5px 10px;
242+
padding: 6px 10px;
243243
font-size: 11px;
244244
transition: background 0.12s ease;
245-
border-bottom: 1px solid var(--border-subtle);
246245
position: relative;
247246

248-
&:last-child {
249-
border-bottom: none;
250-
}
251-
252247
&:hover {
253248
background: var(--element-bg-subtle, rgba(255, 255, 255, 0.04));
254249
}

0 commit comments

Comments
 (0)