Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
GUI-2875: Fix policy preview area only when viewport height is tall e…
Browse files Browse the repository at this point in the history
…nough to display Create Policy button
  • Loading branch information
kamalgill committed Feb 7, 2017
1 parent 9994ddf commit 2226980
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion eucaconsole/static/css/pages/iam_policy_wizard.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#policy-preview { background-color: white; padding: 1rem; margin-top: 40px; }
#policy-preview input[type=text], #policy-preview textarea { background-color: white; }

@media only screen and (min-width: 64.063em) { #policy-preview { position: fixed; min-width: 26rem; } }
@media only screen and (min-width: 64.063em) and (min-height: 52rem) { #policy-preview { position: fixed; min-width: 26rem; } }
#policy-generator { border-color: #cccccc; border-left: none; border-right: none; width: 100%; }
#policy-generator tr.namespace { border-top: 1px solid #cccccc; background-color: white; }
#policy-generator tr.namespace td { font-size: 1rem; }
Expand Down
5 changes: 3 additions & 2 deletions eucaconsole/static/sass/pages/iam_policy_wizard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@
}
}

@media only screen and (min-width: 64.063em) { // 64.063em = large screen width
// Fix position of policy editor textarea to keep it visible when page scrolls
@media only screen and (min-width: 64.063em) and (min-height: 52rem) { // 64.063em = large screen width
// Fix position of policy editor textarea to keep it visible when page scrolls,
// and only fix position if the viewport height is tall enough to display the Create Policy button
#policy-preview {
position: fixed;
min-width: 26rem;
Expand Down

0 comments on commit 2226980

Please sign in to comment.