Skip to content

Commit 89c78c0

Browse files
committed
fix(shares): fix anchor size and jump after preview loaded
Signed-off-by: Maksim Sukharev <[email protected]>
1 parent 0da27a9 commit 89c78c0

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

  • src/components/MessagesList/MessagesGroup/Message/MessagePart

src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -587,10 +587,7 @@ export default {
587587
.file-preview {
588588
position: relative;
589589
min-width: 0;
590-
width: 100%;
591-
/* The file preview can not be a block; otherwise it would fill the whole
592-
width of the container and the loading icon would not be centered on the
593-
image. */
590+
max-width: 100%;
594591
display: inline-block;
595592
596593
border-radius: 16px;
@@ -618,7 +615,7 @@ export default {
618615
619616
.loading {
620617
display: inline-block;
621-
width: 100%;
618+
min-width: 32px;
622619
background-color: var(--color-background-dark);
623620
}
624621
@@ -653,7 +650,8 @@ export default {
653650
}
654651
655652
.image-container {
656-
display: flex;
653+
position: relative;
654+
display: inline-flex;
657655
height: 100%;
658656
659657
&.playable {

0 commit comments

Comments
 (0)