Skip to content

Commit

Permalink
increase width of notifications to 100% on mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Sep 13, 2024
1 parent 1bba2b2 commit 70d6b18
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ All notable changes to `homebridge-config-ui-x` will be documented in this file.
- this can be configured in the child bridge modal
- the general `Homebridge Debug Mode` now only applies to the main Homebridge bridge
- this feature requires Homebridge `v2.0.0-beta.21` or later
- increase width of notifications to `100%` on mobile devices

### Other Changes

Expand Down
28 changes: 25 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@
"tail": "2.2.6",
"tar": "6.2.1",
"tcp-port-used": "1.0.2",
"unplugin-swc": "^1.5.1",
"unzipper": "0.12.3"
},
"devDependencies": {
Expand All @@ -145,6 +144,7 @@
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.6.2",
"unplugin-swc": "^1.5.1",
"vitest": "^2.1.1"
},
"overrides": {
Expand Down
9 changes: 5 additions & 4 deletions ui/src/scss/components/toastr.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
@import 'ngx-toastr/toastr';

/* TOASTR BUGFIX */
/* https://github.com/scttcper/ngx-toastr/issues/605 */
#toast-container > div {
opacity: 1;
@media (max-width: 575px) {
#toast-container > div {
width: calc(100% - 12px);
left: 12px;
}
}

.toast {
Expand Down

0 comments on commit 70d6b18

Please sign in to comment.