diff --git a/src/components/app/FriendsList.vue b/src/components/app/FriendsList.vue index aff9054..a160154 100644 --- a/src/components/app/FriendsList.vue +++ b/src/components/app/FriendsList.vue @@ -135,6 +135,7 @@ export default { margin-right: 1px; border-radius: 5px; transition: 0.3s; + cursor: pointer; } .tab:hover{ background: rgba(255, 255, 255, 0.096); diff --git a/src/components/app/MessagePanel.vue b/src/components/app/MessagePanel.vue index 79431e7..7ced781 100644 --- a/src/components/app/MessagePanel.vue +++ b/src/components/app/MessagePanel.vue @@ -497,6 +497,7 @@ export default { 2500 ); }; + this.scrollDown(true); bus.$on("newMessage", this.hideTypingStatus); bus.$on("emojiSuggestions:Selected", this.enterEmojiSuggestion); diff --git a/src/components/app/MessageTemplate.vue b/src/components/app/MessageTemplate.vue index af71538..1644f51 100644 --- a/src/components/app/MessageTemplate.vue +++ b/src/components/app/MessageTemplate.vue @@ -163,16 +163,22 @@ export default { return { width: srcWidth*ratio, height: srcHeight*ratio }; }, imageSize() { - const messageLog = document.querySelector('.scroll'); - const w = messageLog.offsetWidth; - const h = messageLog.offsetHeight; - - const minWidth = w / 2; - const minHeight = h / 2; - const files = this.$props.files; if (!files || files.length === 0 || !files[0].dimensions) return undefined; + + const messageLog = document.querySelector('.scroll'); + const w = messageLog.offsetWidth; + const h = messageLog.offsetHeight; + + let minWidth = w / 4; + let minHeight = h / 4; + if (w <= 800) { + minWidth = w / 1.7; + minHeight = h / 1.7; + } + + const dimensions = this.$props.files[0].dimensions const srcWidth = dimensions.width; const srcHeight = dimensions.height; diff --git a/src/components/app/Popouts/Popouts/imageLargePreview.vue b/src/components/app/Popouts/Popouts/imageLargePreview.vue index 341ced0..1c985d2 100644 --- a/src/components/app/Popouts/Popouts/imageLargePreview.vue +++ b/src/components/app/Popouts/Popouts/imageLargePreview.vue @@ -54,7 +54,6 @@ export default { } img { margin: auto; - border: solid 1px white; max-height: 100%; max-width: 100%; width: auto; diff --git a/src/components/app/Popouts/Popouts/userInformationPopout.vue b/src/components/app/Popouts/Popouts/userInformationPopout.vue index e9234cb..96cc1bd 100644 --- a/src/components/app/Popouts/Popouts/userInformationPopout.vue +++ b/src/components/app/Popouts/Popouts/userInformationPopout.vue @@ -171,9 +171,10 @@ export default { bottom: 0; z-index: 999; display: flex; + justify-content: center; + align-items: center; } .box { - margin: auto; max-height: 500px; width: 350px; color: white; diff --git a/src/components/app/messageEmbedTemplate.vue b/src/components/app/messageEmbedTemplate.vue index 14f175a..a939791 100644 --- a/src/components/app/messageEmbedTemplate.vue +++ b/src/components/app/messageEmbedTemplate.vue @@ -1,7 +1,7 @@ @@ -29,13 +92,13 @@ export default { padding: 5px; display: flex; max-width: 500px; - min-width: 200px; align-self: flex-start; margin-top: 5px; text-overflow: ellipsis; + overflow: hidden; } .embed.article { - flex-direction: column; + } .embed.website { height: 100px; @@ -50,17 +113,17 @@ export default { .embed.article .image { margin-right: 0; } - .article .left { - order: 1; + margin-left: 5px; } .article .right { - order: 2; + flex-direction: column; } .article .image img { width: 100%; - height: auto; + height: 100%; margin-top: 5px; + align-self: center; } .right { @@ -69,6 +132,10 @@ export default { .title { font-size: 15px; + word-wrap: break-word; + word-break: break-word; + white-space: pre-wrap; + overflow-wrap: anywhere; } .description { font-size: 14px; @@ -77,6 +144,11 @@ export default { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; + + word-wrap: break-word; + word-break: break-word; + white-space: pre-wrap; + overflow-wrap: anywhere; } .image img { width: auto; @@ -88,6 +160,22 @@ export default { display: flex; margin-right: 10px; align-self: center; + border-radius: 5px; + cursor: pointer; + position: relative; +} +.image:after { + content: ''; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + background: rgba(0, 0, 0, 0); + transition: 0.3s; +} +.image:hover:after { + background: rgba(0, 0, 0, 0.384); } a { color: rgb(86, 159, 253); @@ -96,5 +184,11 @@ a { a:hover { text-decoration: underline; } + +@media (max-width: 955px) { + .article { + flex-direction: column; + } +} diff --git a/src/components/app/relationships/FriendsTemplate.vue b/src/components/app/relationships/FriendsTemplate.vue index a339f2f..da6c8c5 100644 --- a/src/components/app/relationships/FriendsTemplate.vue +++ b/src/components/app/relationships/FriendsTemplate.vue @@ -124,6 +124,7 @@ export default { border-radius: 5px; position: relative; overflow: hidden; + cursor: pointer; } .notifyAnimation{ diff --git a/src/utils/changelog.js b/src/utils/changelog.js index 4860527..22c8a57 100644 --- a/src/utils/changelog.js +++ b/src/utils/changelog.js @@ -23,6 +23,7 @@ const config = [ fix: [ "Fixed a bug where messages would appear blurry sometimes.", "Fixed a bug where scrolling would be inverted in some devices.", + "Responsive images and embeds." ] }, { diff --git a/src/views/App.vue b/src/views/App.vue index 257aa04..d312a0c 100644 --- a/src/views/App.vue +++ b/src/views/App.vue @@ -216,6 +216,12 @@ export default { animation-iteration-count: infinite; animation-fill-mode: forwards; } +.box { + display: flex; + flex-direction: column; + height: 100%; + width: 100%; +} @keyframes notifyAnime { 0%{ background: rgba(121, 3, 3, 0.541); @@ -301,6 +307,7 @@ export default { transition: 0.3s; -webkit-app-region: no-drag; margin-top: 5px; + cursor: pointer; } .tab.selected { background: rgba(71, 71, 71, 0.637); @@ -348,12 +355,7 @@ export default { textarea { font-family: "Roboto", sans-serif; } -.box { - display: flex; - flex-direction: column; - height: 100%; - width: 100%; -} + .background-image { background: url(./../assets/background.jpg); position: fixed;