Commit becddaa
committed
fix(ui): stop the status banner doubling screens' own status-bar padding
Several screens apply their own statusBarsPadding()/Scaffold inset
(ThreadsOverviewActivity, DiagnosisActivity, LogsActivity,
ConversationCreationActivity, ContactsScreen, LocationPickerScreen)
assuming they sit at the true top of the window. Once
StatusBannerRow is visible it already claims that inset for itself,
so those screens' own padding added a second, redundant gap on top
of it (e.g. an oversized app bar in "new conversation").
setContentWithStatusBanner now marks the status-bar inset consumed
for content() whenever the banner is showing, so screens' existing
statusBarsPadding() calls add nothing extra in that case. Fixed once
centrally since some of the affected composables (ContactsScreen,
LocationPickerScreen) have no access to the banner state to guard
against it themselves.
Assisted-by: Claude Code:claude-sonnet-5
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>1 parent 340e63d commit becddaa
1 file changed
Lines changed: 25 additions & 2 deletions
Lines changed: 25 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
31 | 36 | | |
32 | 37 | | |
| 38 | + | |
33 | 39 | | |
34 | 40 | | |
35 | 41 | | |
| |||
128 | 134 | | |
129 | 135 | | |
130 | 136 | | |
131 | | - | |
| 137 | + | |
| 138 | + | |
132 | 139 | | |
133 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
134 | 157 | | |
135 | 158 | | |
136 | 159 | | |
| |||
0 commit comments