diff --git a/resources/assets/js/components/PostComponent.vue b/resources/assets/js/components/PostComponent.vue index 2c23b9bf0..83418090b 100644 --- a/resources/assets/js/components/PostComponent.vue +++ b/resources/assets/js/components/PostComponent.vue @@ -53,7 +53,7 @@
+
{{status.account.username}} diff --git a/resources/assets/js/components/presenter/PhotoPresenter.vue b/resources/assets/js/components/presenter/PhotoPresenter.vue index d96973600..0ac4ef2e2 100644 --- a/resources/assets/js/components/presenter/PhotoPresenter.vue +++ b/resources/assets/js/components/presenter/PhotoPresenter.vue @@ -1,5 +1,5 @@ -
+
@@ -37,10 +36,18 @@
.content-label {
margin: 0;
position: absolute;
- top:45%;
+ top:50%;
left:50%;
- z-index: 999;
+ z-index: 2;
transform: translate(-50%, -50%);
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ width: 100%;
+ height: 100%;
+ z-index: 2;
+ background: rgba(0, 0, 0, 0.2)
}
@@ -56,6 +63,10 @@
}
return 'Photo was not tagged with any alt text.';
+ },
+
+ toggleContentWarning(status) {
+ this.$emit('togglecw');
}
}
}
@@ -8,17 +8,16 @@ Sensitive Content
- This photo contains sensitive content which
- some people may find offsensive or disturbing. + {{ status.spoiler_text ? status.spoiler_text : 'This post may contain sensitive content.'}}
- +