Skip to content

Commit

Permalink
Repair popup presentation positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
turner committed Jan 21, 2025
1 parent b016b0e commit b3c9079
Show file tree
Hide file tree
Showing 9 changed files with 269 additions and 35 deletions.
6 changes: 3 additions & 3 deletions css/_igv-generic-container.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

.igv-generic-container {

position: absolute;
position: fixed;

top: 50%;
top: 20%;
left: 50%;
transform: translate(-50%, -50%);
transform: translateX(-50%);

z-index: 2048;

Expand Down
6 changes: 3 additions & 3 deletions css/_igv-generic-dialog-container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ $igv-button-width: 75px;
// generic dialog
.igv-generic-dialog-container {

position: absolute;
position: fixed;

top: 50%;
top: 20%;
left: 50%;
transform: translate(-50%, -50%);
transform: translateX(-50%);

width:300px;
height:200px;
Expand Down
6 changes: 4 additions & 2 deletions css/_igv-ui-colorpicker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ $igv-color-swatch-border-width: 2px;

.igv-ui-generic-container {

position: fixed;

top: 20%;
left: 50%;
top: 75%;
transform: translate(-50%, -25%);
transform: translateX(-50%);

flex-direction: column;
flex-wrap: nowrap;
Expand Down
9 changes: 7 additions & 2 deletions css/_igv-ui-generic-container.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@

.igv-ui-generic-container {

box-sizing: content-box;
position: fixed;

top: 20%;
left: 50%;
transform: translateX(-50%);

position: absolute;
z-index: 2048;

background-color: white;

cursor: pointer;

box-sizing: content-box;

display: flex;
flex-direction: row;
flex-wrap: wrap;
Expand Down
16 changes: 9 additions & 7 deletions css/_igv-ui-generic-dialog-container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@

box-sizing: content-box;

position: absolute;
position: fixed;

top: 50%;
top: 20%;
left: 50%;
transform: translate(-50%, -50%);
transform: translateX(-50%);

z-index: 2048;

background-color: white;

cursor: pointer;

width:300px;
height:fit-content;
Expand All @@ -23,10 +29,6 @@
font-size: medium;
font-weight: 400;

z-index: 2048;

background-color: white;

display: flex;
flex-flow: column;
flex-wrap: nowrap;
Expand Down
35 changes: 20 additions & 15 deletions css/igv.css

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

Loading

0 comments on commit b3c9079

Please sign in to comment.