Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 0ab2b09

Browse files
committed
Merge pull request #5775 from Simek/master
eliminate images "jumping" effect after loading the properties in image viewer
2 parents 059fd46 + 5c76765 commit 0ab2b09

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

src/htmlContent/image-holder.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<div id="image-holder">
22
<div id="img-centering">
3-
<div id="img-data"></div>
4-
<div id="img-path"></div>
3+
<div id="img-header">
4+
<div id="img-data"></div>
5+
<div id="img-path"></div>
6+
</div>
57
<div id="img">
68
<div id="img-scale"></div>
79
<img id="img-preview" src="file:///{{fullPath}}">

src/styles/brackets.less

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,13 @@ a, img {
270270
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.36);
271271
max-height: 90%;
272272
}
273+
274+
#img-header {
275+
display: inline-block;
276+
width: 100%;
277+
height: 38px;
278+
margin-bottom: 15px;
279+
}
273280

274281
#img-data,
275282
#img-path {
@@ -281,10 +288,7 @@ a, img {
281288
#img-path::selection {
282289
background: @selection-color-focused;
283290
}
284-
285-
#img-path {
286-
margin: 0 0 15px;
287-
}
291+
288292
#img {
289293
position: relative;
290294
}

0 commit comments

Comments
 (0)