mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-15 02:54:07 +00:00
fix dialogs on android
Dialogs were off of the screen due to the overlays being bigger than the view port. This is fixed by adding some style to limit the size. Also multi-step dialogs are hard-coded to have min-width of 800px in blueprints.js, so we need to override this on smaller screens. Fixes: https://github.com/pybricks/support/issues/1271
This commit is contained in:
committed by
David Lechner
parent
2b63eeffff
commit
7924810b23
@@ -4,6 +4,11 @@
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Fixed
|
||||
- Fixed dialogs not displaying correctly on Android ([support#1271]).
|
||||
|
||||
[support#1271]: https://github.com/pybricks/support/issues/1271
|
||||
|
||||
## [2.2.0-beta.9] - 2023-10-26
|
||||
|
||||
### Changed
|
||||
|
||||
@@ -178,6 +178,12 @@ a.#{bp.$ns}-button {
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-height: 800px) {
|
||||
.#{bp.$ns}-dialog {
|
||||
min-width: unset !important;
|
||||
}
|
||||
}
|
||||
|
||||
.#{bp.$ns}-control-group {
|
||||
gap: bp.$pt-grid-size * 0.5;
|
||||
}
|
||||
@@ -202,6 +208,11 @@ a.#{bp.$ns}-button {
|
||||
}
|
||||
}
|
||||
|
||||
.#{bp.$ns}-overlay {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
// don't take up so much space when there is no caret
|
||||
.#{bp.$ns}-tree-node-caret-none {
|
||||
// $pt-grid-size / 2 matches padding on .#{bp.$ns}-tree-node-conent
|
||||
|
||||
Reference in New Issue
Block a user