-
Notifications
You must be signed in to change notification settings - Fork 867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/improve community post list styling #3985
base: development
Are you sure you want to change the base?
Fix/improve community post list styling #3985
Conversation
…ally wrapped in ft-card components
Community posts were only ever meant to be displayed in a list view, but I'm guessing it was only ever tested with global grid, forced listed, not global list + forced list. That's why he have the display list option. |
I guess the question is, instead of letting the the ft-community-post component even accept a grid and list value, maybe just doing it's own thing always in list mode would require less workarounds? (can this be fixed in the ft-community-post component without requiring "global" overrides?) Especially requiring the community-posts list on the channel page to be almost at the root, is going to make it impossible to create a shared tab component, because it can't be in a normal nested layout anymore. |
Yeah I was of two minds about this - it technically isn't doing any good right now, but I thought I'd keep it this way in case someone does have a good way of differentiating between the two styles (+ didn't know if overriding the user's list/grid preference would be a bad idea to start doing). The only difference is that a handful of CSS properties have been added to the grid view version to equalize it. But I don't really care much either way, so I can remove that if we have any reason to at all.
Is this in reference to the putting it outside of the |
We already override the preference in a few places, e.g. the playlists page. The community posts were always meant to override the users global choice (that's why the I partially fixed it a while back, by making the community posts think that the global choice was always grid, but never got round to fully fixing it. |
Ah okay, I was thinking that to some extent when I saw it at the top level, but then I saw we were still grabbing their preference on the |
Yeah it's a bit weird, the list has to be in list layout but the post itself, has to be in grid layout for it to work well. |
I was able to get the community posts to look identical in both the list and grid global layout, with these simple changes. Edit: Discussed on Matrix, the original comment made incorrect assumptions, there is more to the pull request than just this, but we managed to discuss a potential way of avoiding so many changes 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 a7086c29..c7d1c7f7 100644
--- a/src/renderer/components/ft-community-post/ft-community-post.js
+++ b/src/renderer/components/ft-community-post/ft-community-post.js
@@ -52,10 +52,6 @@ export default defineComponent({
slideBy: 'page',
navPosition: 'bottom'
}
- },
-
- listType: function () {
- return this.$store.getters.getListType
}
},
created: function () {
diff --git a/src/renderer/components/ft-community-post/ft-community-post.vue b/src/renderer/components/ft-community-post/ft-community-post.vue
index 870a6680..d528af50 100644
--- a/src/renderer/components/ft-community-post/ft-community-post.vue
+++ b/src/renderer/components/ft-community-post/ft-community-post.vue
@@ -1,9 +1,8 @@
<template>
<div
v-if="!isLoading"
- class="ft-list-post ft-list-item outside"
+ class="ft-list-post ft-list-item outside grid"
:appearance="appearance"
- :class="{ list: listType === 'list', grid: listType === 'grid' }"
>
<div
class="author-div" |
So it's doing a bit more than that if you see the picture and description; but I will remove the complicating stuff. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
…x-community-post-list-styling
Conflicts have been resolved. A maintainer will review the pull request shortly. |
74a4345
to
633cdec
Compare
…x-community-post-list-styling
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Is there anything blocking this except for the conflicts? |
Conflicts have been resolved. A maintainer will review the pull request shortly. |
…x-community-post-list-styling
d17db07
to
ae27760
Compare
Community posts are still broken, I think, so that needs to be handled |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
This one is a nice lil visual improvement for all users, and it does fix Community Post styling for people who use List view, but honestly, I haven't heard a single soul complain about this, meaning very few people probably actually use List view (and/or read community posts on FreeTube). Too low priority for me to care about fixing compared to other items on my list. |
Pull request was converted to draft
Improve community post styling & fix list styling
Pull Request Type
Related issue
closes #3984
Description
Fixes community post styling on the list view (as in, is legible and actually pretty). Wraps each community post in its own ft-card for list and grid views, and equalizes the list and grid views (given that there does not seem to be a good way to actually display community posts in a grid).
Screenshots
Testing
1, Under General Settings, set Video View Type to "List"
2. Navigate to this channel
3. Navigate to the Community tab
4. Ensure that view appears correctly
5. Check with smaller device size (Chrome devtool)
6. Repeat for Grid view
7. Check with smaller device size (Chrome devtool)
Desktop