Skip to content

Commit 9e5dca3

Browse files
committed
fix(ui): stop rubber-band bounce of the Control UI shell
The Control UI is an app shell: inner panes scroll, the root never should. macOS WKWebView (Mac app dashboard window) and desktop Safari still rubber-band the root scroller, so the whole UI bounced up and down whenever content fit the viewport. Apply overscroll-behavior: none to html/body globally instead of only in standalone PWA mode, and drop the now-redundant standalone-mode declaration.
1 parent a3aa917 commit 9e5dca3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎ui/src/styles/base.css‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,10 @@
499499
html,
500500
body {
501501
height: 100%;
502+
/* App shell: inner panes scroll, the root never should. Without this the
503+
macOS WKWebView (Mac app) and Safari rubber-band the whole window, even
504+
when nothing overflows. */
505+
overscroll-behavior: none;
502506
}
503507

504508
body {
@@ -563,7 +567,6 @@ openclaw-app {
563567
width: 100%;
564568
height: 100%;
565569
overflow: hidden;
566-
overscroll-behavior: none;
567570
}
568571

569572
@supports (height: 100dvh) {

0 commit comments

Comments
 (0)