aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlambda <pleromagit@rogerbraun.net>2017-11-13 09:34:16 +0000
committerlambda <pleromagit@rogerbraun.net>2017-11-13 09:34:16 +0000
commitc3b401167dcee32f57a271fc966a811cfe4b1fc5 (patch)
tree64d952e7c531aa72a52fe26911509fe7cf43b8a9 /src
parentd7e4279c590a002411abb31f2f164301fdb34493 (diff)
parentbac092d953eb661bcbcc06b734c509e68f939818 (diff)
Merge branch 'fix/css-fixes-attachments-timeline-bottom' into 'develop'
CSS fixes Closes #39 See merge request pleroma/pleroma-fe!154
Diffstat (limited to 'src')
-rw-r--r--src/App.scss3
-rw-r--r--src/components/attachment/attachment.js8
-rw-r--r--src/components/attachment/attachment.vue5
3 files changed, 7 insertions, 9 deletions
diff --git a/src/App.scss b/src/App.scss
index 6679b2c2..c3c9013e 100644
--- a/src/App.scss
+++ b/src/App.scss
@@ -128,12 +128,13 @@ main-router {
border-radius: 10px;
box-shadow: 1px 1px 3px rgba(0,0,0,.5);
+ overflow: hidden;
}
.panel-body:empty::before {
content: "¯\\_(ツ)_/¯"; // Could use words but it'd require translations
display: block;
- margin: 20px;
+ margin: 1em;
text-align: center;
}
diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js
index ccf26b79..de551611 100644
--- a/src/components/attachment/attachment.js
+++ b/src/components/attachment/attachment.js
@@ -23,12 +23,8 @@ const Attachment = {
hidden () {
return this.nsfw && this.hideNsfwLocal && !this.showHidden
},
- autoHeight () {
- if (this.type === 'image' && this.nsfw) {
- return {
- 'min-height': '109px'
- }
- }
+ isEmpty () {
+ return this.type === 'html' && !this.attachment.oembed
}
},
methods: {
diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue
index d4985732..954c46b4 100644
--- a/src/components/attachment/attachment.vue
+++ b/src/components/attachment/attachment.vue
@@ -1,5 +1,5 @@
<template>
- <div class="attachment base03-border" :class="{[type]: true, loading}" :style="autoHeight">
+ <div class="attachment base03-border" :class="{[type]: true, loading}" v-show="!isEmpty">
<a class="image-attachment" v-if="hidden" @click.prevent="toggleHidden()">
<img :key="nsfwImage" :src="nsfwImage"/>
</a>
@@ -50,7 +50,8 @@
}
&.html {
- flex-basis: 100%;
+ flex-basis: 90%;
+ width: 100%;
display: flex;
}