mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-25 07:47:18 +00:00
Fix window contents pushed below when a modal is open (#263)
UI Bootstrap adds the `.modal-open` class to the `<body>` element and sets its right padding to the width of the window, causing the window content to overflow and get pushed to the bottom. The `!important` flag is needed since UI Bootstrap inlines the styles programatically to the element. Fixes: https://github.com/resin-io/etcher/issues/257 Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
This commit is contained in:
parent
a23fa60b5c
commit
3a04b5ccaa
@ -6262,6 +6262,9 @@ button.btn:focus, button.progress-button:focus {
|
||||
.modal-body .list-group-item:first-child {
|
||||
border-top: none; }
|
||||
|
||||
.modal-open {
|
||||
padding-right: 0 !important; }
|
||||
|
||||
/*
|
||||
* Copyright 2016 Resin.io
|
||||
*
|
||||
|
@ -75,3 +75,13 @@
|
||||
.modal-body .list-group-item:first-child {
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
// UI Bootstrap adds the `.modal-open` class to the <body>
|
||||
// element and sets its right padding to the width of the
|
||||
// window, causing the window content to overflow and get
|
||||
// pushed to the bottom.
|
||||
// The `!important` flag is needed since UI Bootstrap inlines
|
||||
// the styles programatically to the element.
|
||||
.modal-open {
|
||||
padding-right: 0 !important;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user