Commit Graph
12 Commits
Author SHA1 Message Date
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