Commit Graph
1613 Commits
Author SHA1 Message Date
Xyphyn 8b752393e0 misc: change thumbnail size 2023-07-29 20:01:44 -07:00
Xyphyn e1ac96def3 a11y: improve accessibility 2023-07-29 19:59:55 -07:00
Xyphyn 5847a507fd a11y: remove invalid aria-label 2023-07-29 19:54:29 -07:00
Xyphyn a36b9c7c15 a11y: remove invalid roles 2023-07-29 19:53:58 -07:00
Xyphyn 981c18e65f misc: fix relative date component 2023-07-29 19:53:31 -07:00
Xyphyn 125b453c96 misc:bump version 2023-07-29 18:54:28 -07:00
Thomas Faughnan 12249b3c9f fix: force navbar avatar to be square (#44)
Though the width and height attributes are set to 32 in this component,
the height is overridden by the more general styling for `<img>` tags,
which sets image heights to `auto`. For users with non-square avatars,
their avatar may overflow beyond its ring border. Specify the
`aspect-square` class to force a 1:1 aspect ratio. The Avatar component
used for posts, comments, etc. already does this.
2023-07-29 18:53:00 -07:00
Peter Bui 85ce6cd053 misc: allow replies to use max width (instead of small) (#43) 2023-07-29 17:59:40 -07:00
Xyphyn 2f64f37d3a misc: add version number to service worker as its needed for updates 2023-07-29 15:31:06 -07:00
Xyphyn 8488bb1e17 fix: change <p> to <div>, as it wasn't necessary for semantics 2023-07-29 15:24:36 -07:00
Xylight 908b45c4aa feat: add pwa support (#42)
* feat: add basic pwa

* misc: bump version to test caches
2023-07-29 15:13:47 -07:00
Xyphyn ba3434c0b8 misc: bump version 2023-07-29 13:10:28 -07:00
Xyphyn 1c9661546c feat: add unread filters to inbox and reports 2023-07-29 13:09:40 -07:00
Xyphyn d65c62d2d9 misc: increase post body length before cutoff 2023-07-29 12:47:23 -07:00
Xyphyn ba6fc8cbeb misc: add markdown to body preview 2023-07-29 12:40:06 -07:00
Xyphyn 17316b8cdf misc: change menu color 2023-07-29 12:40:06 -07:00
Xyphyn 3047a56106 misc: rename isMod to amMod 2023-07-29 12:40:06 -07:00
Xyphyn e2c08d1806 feat: tweak color 2023-07-29 12:40:06 -07:00
Thomas Faughnan a72ce72f7f feat: hover on relative datetimes (#39)
Relative datetimes (e.g. "42m ago") are displayed for posts, comments,
user pages, community cards, and site cards. This patch wraps these
relative datetimes in a `<time>` tag which has a `title` attribute and
an ISO 8601 `datetime` attribute. The `title` allows users to see a
full, non-relative timestamp when hovering with the mouse.
2023-07-29 10:32:56 -07:00
Xyphyn baf5063279 misc: bump version (how many times will i forget this) 2023-07-29 10:32:23 -07:00
Xyphyn 32f65add46 misc: tweak comments look 2023-07-29 10:22:03 -07:00
Xyphyn 9711ffe4d9 feat: add feed filtering to inbox 2023-07-29 10:21:48 -07:00
Xyphyn 9f3fef95be misc: bump version 2023-07-29 07:04:09 -07:00
Xyphyn 5622ff0dd1 misc: change default instance url 2023-07-29 06:57:29 -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
Xyphyn 590eedc0fb misc: minor tweaks 2023-07-28 18:52:37 -07:00
Xylight 05fcbf09fe Merge pull request #38 from tfaughnan/main
fix: parse date strings as UTC
2023-07-28 17:29:39 -07:00
Thomas J Faughnan Jr 34c712c01c fix: parse date strings as UTC
For posts, comments, and other objects, the `published` attribute is a
string containing an ISO 8601 timestamp. This timestamp is UTC, though
it is not explicit in the string's contents. When the `Date` constructor
is used on such strings, they are parsed as though they are local
timestamps. According to [1]:

> When the time zone offset is absent, date-only forms are
> interpreted as a UTC time and date-time forms are interpreted as local
> time. This is due to a historical spec error that was not consistent
> with ISO 8601 but could not be changed due to web
> compatibility.

This patch explicitly appends a 'Z' to the `published` string when it is
used as the argument to the `Date` constructor.

[1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date
2023-07-28 20:02:01 -04:00
Xyphyn 035cdc23ed misc: bump version 2023-07-28 16:29:42 -07:00
Xyphyn 65a1740322 misc: fix Comment.svelte 2023-07-28 16:27:06 -07:00
Xyphyn 55a3b5cfb8 Revert "misc: possibly fix comments not working"
This reverts commit fa20d7a6a8.

	modified:   src/lib/components/lemmy/comment/Comments.svelte
	modified:   src/lib/components/lemmy/comment/comments.ts
2023-07-28 16:25:43 -07:00
Xyphyn 3d19318355 misc: Increase post body padding 2023-07-28 16:22:50 -07:00
Xyphyn fa20d7a6a8 misc: possibly fix comments not working 2023-07-28 14:48:40 -07:00
Xyphyn 6b38edf9c8 misc: tweak comment menu colors 2023-07-28 14:19:46 -07:00
Xyphyn a362241a72 misc: tweak line height 2023-07-28 14:17:28 -07:00
Xyphyn fcb21a0e35 fix: disable actions for comment form in edit modal 2023-07-28 14:06:21 -07:00
Xyphyn 998217a244 design: tweak colors for post actions 2023-07-28 14:05:28 -07:00
Xyphyn 4cbb7381cb misc: switch to commentform for edit modal 2023-07-28 14:03:33 -07:00
Xyphyn f90ecb703c misc: add login message to post create 2023-07-28 14:00:42 -07:00
Xylight 128167bfe9 fix 0.18.3 comment loading being different (#37) 2023-07-28 13:49:41 -07:00
Xyphyn 583befcb6b shit 2023-07-28 13:44:16 -07:00
Xyphyn bec538d386 feat: add spoilers to markdown renderer 2023-07-28 13:25:13 -07:00
Xyphyn 74fd7714ce fix #34 2023-07-28 10:35:23 -07:00
Cole Gerdemann 0d98986871 Use unprivileged "node" user in Dockerfile (#35)
* use unprivileged "node" user

* don't chown to node user, better to have no mutate perms
2023-07-28 06:01:34 -07:00
Xyphyn 802846ffdb misc: fix color 2023-07-27 16:56:45 -07:00
Xylight d3aae647a8 feat: add moderation tools (#33)
* feat: Add post submission removal

* feat: add comment submission removal

* feat: add report viewing and resolving

* misc: add notification dot

* misc: add locked thread badge

* feat: add thread locking

* feat: add initiating message conversations

* feat: add post pinning/unpinning

* misc: bump version

* fix: tweak lock colors

* fix: update post data on pin

* fix: return if reason is empty
2023-07-27 15:53:31 -07:00
Xyphyn 53ef843cde feat: add profile page filtering 2023-07-27 12:48:43 -07:00
Xyphyn 575662ae2c misc: bump version 2023-07-27 12:40:50 -07:00
Xyphyn a39cb60652 feat: Add user blocking 2023-07-27 12:39:01 -07:00
Xyphyn 81270b72d3 feat: Add pagination to inbox page 2023-07-27 12:30:09 -07:00