Commit Graph
18 Commits
Author SHA1 Message Date
Peter Bui 4f898915b2 misc: allow community card to be full width and remove left border (#72)
Right now, the community card model displays the information in a very
narrow column with a lot of extra whitespace on the side and a weird
left border.  Likewise, user pages also include a left border if the
StickyCard is placed at the top.

This removes the left border completely, and allows the StickyCard to be
wider in order to allow for more information to be displayed.
2023-08-05 18:51:05 -07:00
Peter BuiandXyphyn 85468a5059 feat: add ability to hide deleted or removed posts (#71)
* feat: add ability to hide deleted or removed posts

Add hidePosts.{deleted,removed} settings to control whether or not to
display posts that have been marked as deleted or removed.  By default,
these are enabled (ie. hidden) to correspond to Lemmy-UI behavior.

Currently, we only hide these posts for the front page and community
pages.

* feat: show removed posts by default

---------

Co-authored-by: Xyphyn <james@xylight.dev>
2023-08-05 11:46:13 -07:00
Peter Bui 6ea697e3bc misc: don't let community avatars on sidebar shrink (#70)
If a community name is long and uses multiple lines, the avatar will
shrink, leading to awkward alignment.

This adds a non-flexible container around the avatar to prevent this.
2023-08-05 08:37:16 -07:00
Peter Bui 644003bfef feat: store sidebar expanded state in settings (#69)
Add an expandSidebar setting to remember if the sidebar is expanded or
collapsed.  This allows the user to refresh or open a post in a new tab
and keep the same sidebar state (rather than it always being expanded).

One possible quirk is that if a user has it collapsed in one tab, but
expanded in another, it will remember which ever state was set last
(most recently).  However, changing the state in one tab will not impact
another (until a refresh occurs).

Fix #68
2023-08-04 19:14:30 -07:00
Peter Bui 8d6135a8fb feat: copy link action for comments (#56)
This adds a comment link action to each comment action menu so that
users can link directly to a comment.  It uses the existing single
thread view mechanism to display the single command (and its children).
2023-08-01 18:42:10 -07:00
Peter BuiandXyphyn 2aed207b54 misc: set different disabled backgrounds for light and dark mode (#51)
* misc: set different disabled backgrounds for light and dark mode

* misc: use dark theme instead of weird override

---------

Co-authored-by: Xyphyn <james@xylight.dev>
2023-07-31 17:08:00 -07:00
Peter Bui 9e4fcae599 misc: add title attribute to Avatar (#50)
This will allow users to hover over the avatars in a collapsed sidebar
and see the name of the community.
2023-07-31 17:03:08 -07:00
Peter Bui 85ce6cd053 misc: allow replies to use max width (instead of small) (#43) 2023-07-29 17:59:40 -07:00
Peter Bui 9eb3665fa7 fix: improve building comment tree (#40)
As we build the map of nodes, keep track of the minimum depth level.
Afterwards, nodes at the minimum depth level go into the tree as the
roots.

We no longer need to check if the tree belongs to a parent comment or
not.

Fixes #36 more.
2023-07-28 20:37:44 -07:00
Peter Bui 87fcf27a82 fix: allow long usernames to wrap (#32)
Fixes #31 by adding flex-wrap to the UserLink span for usernames.
2023-07-27 09:19:19 -07:00
Peter Bui 54c03b96dc fix: properly load comments when sorting (#30)
Need to set type_ to 'All' when calling getComments().  Otherwise,
trying sort the comments on a post by "Top" or "New" will refresh
without any comments.
2023-07-26 21:14:44 -07:00
Peter Bui fb6b886c3b fix: include post url if it is not an image upload (#25)
Currently posts creation omits the URL if it is not an image upload.
2023-07-26 14:27:24 -07:00
Peter Bui 03fa81bec8 fix: only list/search subscribed communities (#26)
Right now, listing and searching 'All' communities makes it difficult to
find the appropriate community to post to, particularly if it has a
common name such as technology, news, or linux.

Downside of this is that you can only post to communities you subscribe
to... but this was what we did before 9c9a3dc.
2023-07-26 14:26:50 -07:00
Peter Bui e778450963 fix: show post.url if the post does not have a thumbnail (#23)
Right now, if a post does not have a post.thumbnail_url and is just a
link to another website, the link is not displayed... so the user cannot
go to the actual article.

This copies the link code from the Post object and provides a link if
there is a post.url but not a post.thumbnail_url.
2023-07-26 10:33:05 -07:00
Peter Bui e028113ab0 feat: show compact posts (#22)
Add a new UI setting for showing compact posts:

- Show a small thumbnail to the right of the metadata and title if a
  thumbnail is available or if the post is an image
- Do not show normal thumbnail or text bodies.
2023-07-26 10:32:04 -07:00
Peter Bui d696e2ee00 fix: allow UI settings to persist (#21)
UI settings were being overwritten on refresh. Changing this check
appears to resolve this issue and allows for the UI settings to persist.
2023-07-26 09:27:02 -07:00
Peter Bui fda05d200e fix: add onchange for Communities TextInput
This allows the user to simply enter in their filter and press enter,
rather than having to press the "Search" button.
2023-07-25 17:09:05 -04:00
Peter Bui be880d17f5 fix: include type_=All to expand comments
Further fix #11 by specifying the type_ parameter to 'All'.  Without
this, the server returns an empty comments array.
2023-07-25 16:18:50 -04:00