From 8bdc3640ba2dd248caf563375e3664f8ad2239ef Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Wed, 24 Jun 2020 04:08:24 +1200 Subject: [PATCH] Also rewrite ft-list-channel --- .../ft-element-list/ft-element-list.vue | 1 + .../ft-list-channel/ft-list-channel.css | 93 ------------------- .../ft-list-channel/ft-list-channel.js | 8 +- .../ft-list-channel/ft-list-channel.sass | 1 + .../ft-list-channel/ft-list-channel.vue | 70 ++++++++------ .../ft-list-playlist/ft-list-playlist.vue | 4 +- .../ft-list-video/ft-list-video.vue | 4 +- src/renderer/sass-partials/_ft-list-item.sass | 23 +++-- 8 files changed, 67 insertions(+), 137 deletions(-) delete mode 100644 src/renderer/components/ft-list-channel/ft-list-channel.css create mode 100644 src/renderer/components/ft-list-channel/ft-list-channel.sass diff --git a/src/renderer/components/ft-element-list/ft-element-list.vue b/src/renderer/components/ft-element-list/ft-element-list.vue index 465fa0fd..13f485f5 100644 --- a/src/renderer/components/ft-element-list/ft-element-list.vue +++ b/src/renderer/components/ft-element-list/ft-element-list.vue @@ -7,6 +7,7 @@ > diff --git a/src/renderer/components/ft-list-channel/ft-list-channel.css b/src/renderer/components/ft-list-channel/ft-list-channel.css deleted file mode 100644 index 2783cb49..00000000 --- a/src/renderer/components/ft-list-channel/ft-list-channel.css +++ /dev/null @@ -1,93 +0,0 @@ -.channelThumbnail { - position: relative; - cursor: pointer; -} - -.channelThumbnail img { - width: 140px; - height: 140px; - border-radius: 200px 200px 200px 200px; - -webkit-border-radius: 200px 200px 200px 200px; -} - -.channelName { - font-weight: bold; - color: var(--title-color); - cursor: pointer; - margin-bottom: 0px; -} - -.subscriberCount { - cursor: pointer; - font-size: 13px; - color: var(--secondary-text-color); -} - -.videoCount { - cursor: pointer; - font-size: 13px; - color: var(--secondary-text-color); -} - -.grid { - width: 240px; - height: 250px; - padding: 2px; - overflow: hidden; -} - -.grid .channelThumbnail { - width: 100%; - height: 140px; - margin-bottom: 5px; -} - -.grid .channelThumbnail img { - position: relative; - left: 50px; -} - -.grid .channelName { - width: 240px; -} - -.list { - height: 140px; - width: 100%; - margin-left: 5px; - margin-top: 15px; - border-bottom: 1px solid var(--secondary-text-color); -} - -.list .channelThumbnail { - float: left; - width: 240px; -} - -.list .channelThumbnail img { - position: relative; - width: 120px; - height: 120px; - left: 60px; -} - -.list .channelName { - margin-left: 250px; - width: 275px; -} - -.list .subscriberCount { - margin-left: 10px; -} - -.list .videoCount { - margin-left: 1px; -} - -.list .description { - margin-left: 250px; - font-size: 13px; - color: var(--secondary-text-color); - height: 35px; - overflow: hidden; -} diff --git a/src/renderer/components/ft-list-channel/ft-list-channel.js b/src/renderer/components/ft-list-channel/ft-list-channel.js index 3057fdb4..c2e78f36 100644 --- a/src/renderer/components/ft-list-channel/ft-list-channel.js +++ b/src/renderer/components/ft-list-channel/ft-list-channel.js @@ -6,6 +6,10 @@ export default Vue.extend({ data: { type: Object, required: true + }, + appearance: { + type: String, + required: true } }, data: function () { @@ -32,10 +36,6 @@ export default Vue.extend({ } }, methods: { - goToChannel: function () { - this.$router.push({ path: `/channel/${this.id}` }) - }, - parseLocalData: function () { this.thumbnail = this.data.avatar this.channelName = this.data.name diff --git a/src/renderer/components/ft-list-channel/ft-list-channel.sass b/src/renderer/components/ft-list-channel/ft-list-channel.sass new file mode 100644 index 00000000..cdebfe2e --- /dev/null +++ b/src/renderer/components/ft-list-channel/ft-list-channel.sass @@ -0,0 +1 @@ +@use "../../sass-partials/_ft-list-item" diff --git a/src/renderer/components/ft-list-channel/ft-list-channel.vue b/src/renderer/components/ft-list-channel/ft-list-channel.vue index cdcef37a..e3dcadbf 100644 --- a/src/renderer/components/ft-list-channel/ft-list-channel.vue +++ b/src/renderer/components/ft-list-channel/ft-list-channel.vue @@ -1,40 +1,50 @@