From 5144c64b19cf0313204e270848206fab5411802f Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sat, 20 Aug 2022 07:11:51 +0000 Subject: [PATCH] Separate Photo component --- src/components/Photo.vue | 95 +++++++++++++++++++++++++++++++++++++ src/components/Timeline.vue | 90 +++++------------------------------ 2 files changed, 108 insertions(+), 77 deletions(-) create mode 100644 src/components/Photo.vue diff --git a/src/components/Photo.vue b/src/components/Photo.vue new file mode 100644 index 00000000..cf3758d9 --- /dev/null +++ b/src/components/Photo.vue @@ -0,0 +1,95 @@ + + + + + \ No newline at end of file diff --git a/src/components/Timeline.vue b/src/components/Timeline.vue index 35c8621f..4c17503c 100644 --- a/src/components/Timeline.vue +++ b/src/components/Timeline.vue @@ -19,21 +19,11 @@ class="photo-row" v-bind:style="{ height: rowHeight + 'px' }"> -
- -
-
- -
+
+ +
@@ -66,9 +56,9 @@ @@ -614,15 +564,6 @@ export default { cursor: pointer; } -.photo-row img { - background-clip: content-box; - background-color: var(--color-loading-light); - padding: 2px; - object-fit: cover; - border-radius: 3%; - cursor: pointer; -} - .photo-row .photo::before { content: ""; position: absolute; @@ -641,11 +582,6 @@ export default { opacity: 1; } -.photo-row .photo .icon-video-white { - position: absolute; - top: 8px; right: 8px; -} - .head-row { height: 40px; padding-top: 10px;