From e54e8727d6283430170802892cfa006cf0bcd20e Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 15 Dec 2018 22:25:00 -0700 Subject: [PATCH] Update PostComponent.vue --- .../assets/js/components/PostComponent.vue | 231 +++--------------- 1 file changed, 30 insertions(+), 201 deletions(-) diff --git a/resources/assets/js/components/PostComponent.vue b/resources/assets/js/components/PostComponent.vue index 97bc943d..c3b9f625 100644 --- a/resources/assets/js/components/PostComponent.vue +++ b/resources/assets/js/components/PostComponent.vue @@ -10,10 +10,11 @@ .col-md-4 { background: #fff; } - +.postPresenterContainer { + background: #fff; +} @media(min-width: 720px) { .postPresenterContainer { - background: #000; min-height: 600px; } } @@ -57,8 +58,30 @@
-
+
+
+ +
+
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+

Error: Problem rendering preview.

+
@@ -210,153 +233,6 @@ pixelfed.postComponent = {}; -pixelfed.presenter = { - show: { - image: function(container, media, status) { - $('.status-container') - .removeClass('orientation-unknown') - .addClass('orientation-' + media[0]['orientation']); - let wrapper = $('
'); - container.addClass('d-flex align-items-center'); - if(media[0]['filter_class']) { - wrapper.addClass(media[0]['filter_class']); - } - let el = $(''); - el.attr('src', media[0]['url']); - el.attr('title', media[0]['description']); - el.addClass('img-fluid'); - wrapper.append(el); - if(status.sensitive == true) { - let spoilerText = status.spoiler_text ? status.spoiler_text : 'CW / NSFW / Hidden Media'; - let cw = $('
').addClass('details-animated w-100'); - let summary = $(''); - let text = $('

').addClass('mb-0 lead font-weight-bold').text(spoilerText); - let direction = $('

').addClass('font-weight-light').text('(click to show)'); - summary.append(text, direction); - cw.append(summary, wrapper); - container.append(cw); - } else { - container.append(wrapper); - } - }, - - video: function(container, media, status) { - let wrapper = $('

'); - container.addClass('d-flex align-items-center'); - let el = $('