diff --git a/src/renderer/components/ft-community-post/ft-community-post.js b/src/renderer/components/ft-community-post/ft-community-post.js index fcde36f1a2b4b..1620ce4535d5c 100644 --- a/src/renderer/components/ft-community-post/ft-community-post.js +++ b/src/renderer/components/ft-community-post/ft-community-post.js @@ -116,7 +116,12 @@ export default Vue.extend({ }, getBestQualityImage(imageArray) { - return imageArray.at(-1)?.url ?? '' + const imageArrayCopy = Array.from(imageArray) + imageArrayCopy.sort((a, b) => { + return Number.parseInt(b.width) - Number.parseInt(a.width) + }) + + return imageArrayCopy.at(0)?.url ?? '' } } }) diff --git a/src/renderer/views/Channel/Channel.css b/src/renderer/views/Channel/Channel.css index b14501cd67f8f..4b805f85fd744 100644 --- a/src/renderer/views/Channel/Channel.css +++ b/src/renderer/views/Channel/Channel.css @@ -121,8 +121,7 @@ border-bottom: 3px solid var(--tertiary-text-color); } -.selectedTab:focus, -.selectedTab:hover { +.selectedTab { color: var(--primary-text-color); border-bottom: 3px solid var(--primary-color); font-weight: bold;