summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-10-08 15:25:25 +0200
committerRobin Appelman <robin@icewind.nl>2020-10-16 14:06:04 +0200
commit6e7cb67c934acc5092263196fe77b5a8c447e385 (patch)
tree3237a615f7bceb7de5e033933e42601fcf2629f3 /src
parent4f127bd298c5392ca5bb22c9fa4a442d05b0da5a (diff)
fix alignment for posts without boosts
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'src')
-rw-r--r--src/components/TimelineAvatar.vue3
-rw-r--r--src/components/TimelineEntry.vue10
-rw-r--r--src/components/TimelinePost.vue6
3 files changed, 8 insertions, 11 deletions
diff --git a/src/components/TimelineAvatar.vue b/src/components/TimelineAvatar.vue
index ae395b64..25104274 100644
--- a/src/components/TimelineAvatar.vue
+++ b/src/components/TimelineAvatar.vue
@@ -38,9 +38,6 @@ export default {
width: 32px;
height: 32px;
min-width: 32px;
- flex-shrink: 0;
- grid-column: 1;
- grid-row: 2;
align-self: start;
}
diff --git a/src/components/TimelineEntry.vue b/src/components/TimelineEntry.vue
index cb46bd29..3576b2ef 100644
--- a/src/components/TimelineEntry.vue
+++ b/src/components/TimelineEntry.vue
@@ -1,5 +1,5 @@
<template>
- <div class="timeline-entry">
+ <div :class="['timeline-entry', hasHeader ? 'with-header' : '']" @click="getSinglePostTimeline">
<template v-if="item.type === 'SocialAppNotification'">
<div class="notification-icon" :class="notificationIcon" />
<span class="notification-action">
@@ -69,6 +69,9 @@ export default {
}
return {}
},
+ hasHeader() {
+ return this.item.type === 'Announce' || this.item.type === 'SocialAppNotification'
+ },
boosted() {
return t('social', 'boosted')
},
@@ -112,10 +115,13 @@ export default {
}
</script>
<style scoped lang="scss">
+ .timeline-entry.with-header {
+ grid-template-rows: 30px 1fr;
+ }
.timeline-entry {
display: grid;
grid-template-columns: 44px 1fr;
- grid-template-rows: 30px 1fr;
+ grid-template-rows: 1fr;
padding: 10px;
margin-bottom: 10px;
&:hover {
diff --git a/src/components/TimelinePost.vue b/src/components/TimelinePost.vue
index 1a124451..2cfe98c4 100644
--- a/src/components/TimelinePost.vue
+++ b/src/components/TimelinePost.vue
@@ -239,12 +239,6 @@ export default {
display: flex;
}
- .post-content {
- flex-grow: 1;
- grid-column: 2;
- grid-row: 2;
- }
-
.post-header {
display: flex;
flex-direction: row;