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 @@ - + + + + + + {{ channelName }} + + + + {{ subscriberCount }} subscribers + + + - {{ videoCount }} videos + + + + {{ description }} + - - {{ channelName }} - - - {{ subscriberCount }} subscribers - - - - {{ videoCount }} videos - - - {{ description }} - - + diff --git a/src/renderer/components/ft-list-playlist/ft-list-playlist.vue b/src/renderer/components/ft-list-playlist/ft-list-playlist.vue index e48e58d5..091d576f 100644 --- a/src/renderer/components/ft-list-playlist/ft-list-playlist.vue +++ b/src/renderer/components/ft-list-playlist/ft-list-playlist.vue @@ -1,6 +1,6 @@ @@ -22,7 +22,7 @@ - + - +
+ {{ description }} +
- {{ channelName }} -
- {{ description }} -