File tree Expand file tree Collapse file tree
crates/tauri-app/frontend/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,17 +32,20 @@ export function BrowserPanel(props: BrowserPanelProps) {
3232 ) . catch ( ( ) => { } ) ;
3333 }
3434
35- // Observe viewport resizes
35+ // Keep bounds in sync — ResizeObserver + polling fallback
3636 onMount ( ( ) => {
3737 const ro = new ResizeObserver ( ( ) => updateBounds ( ) ) ;
3838 if ( viewportRef ) ro . observe ( viewportRef ) ;
3939
40- // Also update on scroll/resize of the window
4140 window . addEventListener ( "resize" , updateBounds ) ;
4241
42+ // Poll every 200ms as fallback for layout changes (sidebar resize, pane drag, etc.)
43+ const interval = setInterval ( updateBounds , 200 ) ;
44+
4345 onCleanup ( ( ) => {
4446 ro . disconnect ( ) ;
4547 window . removeEventListener ( "resize" , updateBounds ) ;
48+ clearInterval ( interval ) ;
4649 // Hide webview when panel unmounts (thread switch)
4750 ipc . browserHide ( props . threadId ) . catch ( ( ) => { } ) ;
4851 } ) ;
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ if (!document.getElementById("thread-item-styles")) {
134134 padding: 5px 12px; margin: 1px 0;
135135 border-radius: var(--radius-sm); cursor: pointer;
136136 transition: background 0.15s, color 0.15s;
137- font-size: 13px; color: var(--text-secondary );
137+ font-size: 13px; color: var(--text);
138138 touch-action: none;
139139 position: relative;
140140 }
Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ if (!document.getElementById("tab-bar-styles")) {
204204 padding: 6px 12px;
205205 font-size: 12px;
206206 font-weight: 500;
207- color: var(--text-tertiary );
207+ color: var(--text-secondary );
208208 border-radius: var(--radius-sm) var(--radius-sm) 0 0;
209209 cursor: grab;
210210 transition: background 0.12s, color 0.12s, opacity 0.15s;
You can’t perform that action at this time.
0 commit comments