Commit 1f98fd1
committed
Refined UI padding and widget scaling
This commit introduces several UI refinements:
- **Widget Scaling:** The measurement widget now dynamically scales its content based on its size, ensuring better readability and layout across different widget dimensions.
- **Consistent Padding:** Reduced and standardized vertical padding in the measurement type filter row and the goals section on the overview screen for a more compact and consistent appearance.
- **TopBar Title:** The TopAppBar title now truncates with an ellipsis if it's too long to fit on one line, preventing layout issues with long user names.
- **Overview Screen:** Removed an unnecessary `Spacer` and an explicit height constraint on the drag handle for a cleaner layout.1 parent c85de04 commit 1f98fd1
4 files changed
Lines changed: 37 additions & 22 deletions
File tree
- android_app/app/src/main/java/com/health/openscale/ui
- screen
- components
- overview
- widget
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| |||
486 | 487 | | |
487 | 488 | | |
488 | 489 | | |
489 | | - | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
490 | 495 | | |
491 | 496 | | |
492 | 497 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| |||
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
624 | | - | |
625 | 624 | | |
626 | 625 | | |
627 | 626 | | |
| |||
643 | 642 | | |
644 | 643 | | |
645 | 644 | | |
646 | | - | |
647 | 645 | | |
648 | 646 | | |
649 | 647 | | |
650 | 648 | | |
651 | 649 | | |
652 | 650 | | |
653 | 651 | | |
654 | | - | |
| 652 | + | |
655 | 653 | | |
656 | 654 | | |
657 | 655 | | |
| |||
661 | 659 | | |
662 | 660 | | |
663 | 661 | | |
664 | | - | |
| 662 | + | |
665 | 663 | | |
666 | 664 | | |
667 | 665 | | |
| |||
674 | 672 | | |
675 | 673 | | |
676 | 674 | | |
677 | | - | |
678 | 675 | | |
679 | 676 | | |
680 | 677 | | |
| |||
698 | 695 | | |
699 | 696 | | |
700 | 697 | | |
701 | | - | |
702 | 698 | | |
703 | 699 | | |
704 | 700 | | |
| |||
Lines changed: 28 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
| 69 | + | |
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
| 74 | + | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
| |||
192 | 196 | | |
193 | 197 | | |
194 | 198 | | |
195 | | - | |
| 199 | + | |
196 | 200 | | |
197 | 201 | | |
198 | 202 | | |
| |||
206 | 210 | | |
207 | 211 | | |
208 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
209 | 221 | | |
210 | 222 | | |
211 | 223 | | |
212 | | - | |
213 | 224 | | |
214 | 225 | | |
215 | 226 | | |
| |||
234 | 245 | | |
235 | 246 | | |
236 | 247 | | |
237 | | - | |
| 248 | + | |
| 249 | + | |
238 | 250 | | |
239 | 251 | | |
240 | 252 | | |
| |||
278 | 290 | | |
279 | 291 | | |
280 | 292 | | |
281 | | - | |
| 293 | + | |
| 294 | + | |
282 | 295 | | |
283 | | - | |
284 | | - | |
285 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
286 | 300 | | |
287 | | - | |
| 301 | + | |
288 | 302 | | |
289 | | - | |
290 | | - | |
291 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
292 | 306 | | |
293 | 307 | | |
294 | | - | |
| 308 | + | |
295 | 309 | | |
296 | 310 | | |
297 | 311 | | |
| |||
312 | 326 | | |
313 | 327 | | |
314 | 328 | | |
315 | | - | |
316 | | - | |
| 329 | + | |
| 330 | + | |
317 | 331 | | |
318 | 332 | | |
319 | 333 | | |
| |||
0 commit comments