Skip to content

Commit

Permalink
Start targetbars hidden to avoid a flash when starting
Browse files Browse the repository at this point in the history
Also, switch from display:none to visibility:hidden to avoid layout
problems in the targetbars.js:447 "alignment hack" when elements are not
taking up space in the layout.
  • Loading branch information
quisquous committed Jul 25, 2020
1 parent 232e077 commit 716bacf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion OverlayPlugin.Core/resources/targetbars/focus_target.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<script src="targetbars.js"></script>
</head>
<body class="resize-background">
<div id="container-focus" class="bar"></div>
<div id="container-focus" class="bar hidden"></div>
<div id="settings-container">
<div id="settings"></div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion OverlayPlugin.Core/resources/targetbars/hover_target.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<script src="targetbars.js"></script>
</head>
<body class="resize-background">
<div id="container-hover" class="bar"></div>
<div id="container-hover" class="bar hidden"></div>
<div id="settings-container">
<div id="settings"></div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion OverlayPlugin.Core/resources/targetbars/target.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<script src="targetbars.js"></script>
</head>
<body class="resize-background">
<div id="container-target" class="bar"></div>
<div id="container-target" class="bar hidden"></div>
<div id="settings-container">
<div id="settings"></div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<script src="targetbars.js"></script>
</head>
<body class="resize-background">
<div id="container-targetoftarget" class="bar"></div>
<div id="container-targetoftarget" class="bar hidden"></div>
<div id="settings-container">
<div id="settings"></div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion OverlayPlugin.Core/resources/targetbars/targetbars.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ html {
}

.hidden {
display: none !important;
visibility: hidden !important;
}

.rounded {
Expand Down

0 comments on commit 716bacf

Please sign in to comment.