Commit graph

245 commits

Author SHA1 Message Date
David Palmer
924e670699
remove embed prefix until a translation can be added 2023-06-22 12:23:36 +12:00
Jay Sitter
bf0f80e798 fix: Add post body preview to desktop post listing view 2023-06-21 19:40:24 -04:00
David Palmer
5109118525
Merge branch 'main' into expand-video-embeds-to-fullwidth 2023-06-22 10:52:56 +12:00
Alec Armbruster
043b522ff1
utils.ts organization, round two (#1427)
* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Update src/shared/utils/app/convert-comment-sort-type.ts

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>

* prettier pass

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-06-21 18:28:24 -04:00
David Palmer
3fca825f1f
Merge branch 'main' into expand-video-embeds-to-fullwidth 2023-06-22 09:25:50 +12:00
3e6236ada3 Cleaning up new comment badge. Fixes #1443 2023-06-21 15:02:23 -04:00
d2f2d7442a Fixing handlePostNsfwChange. 2023-06-21 08:16:11 -04:00
Dessalines
c1e2168a43
Merge branch 'main' into fix/create-post-form-adjustments 2023-06-21 08:07:12 -04:00
SleeplessOne1917
638ab2c462
Com create post (#1431)
* Fix create post for community not having community selected by default

* Fix issue where fields would reset when creating post

* Run prettier and lint
2023-06-21 07:52:32 -04:00
David Palmer
121ed585dc
Merge branch 'main' into expand-video-embeds-to-fullwidth 2023-06-21 16:31:13 +12:00
David Palmer
c16c00db0d
add a prefix to hint to screenreaders what this iframe is 2023-06-21 16:28:27 +12:00
Jay Sitter
deed524a7f fix: Small adjustments to create post form 2023-06-21 00:20:05 -04:00
David Palmer
9858514bb4
wrap video embeds in the ratio container
This should correctly size the embedded video iframe to the full
available width, which looks better and is compatible with mobile
devices.

Also add the "allowfullscreen" modifier to the iframe so that the video
can be expanded to the browser's fullscreen mode.

Also add the post.embed_title as the iframe "title" attribute.
2023-06-21 16:15:02 +12:00
Jay Sitter
3574212c76 feat: Hide 'comments' in post listing comments button; icon and title text is clear 2023-06-20 19:53:55 -04:00
SleeplessOne1917
4da34c1370
Merge branch 'main' into breakout-role-utils 2023-06-20 21:12:18 +00:00
djvs
5033b024f6 component classes v2 2023-06-20 14:46:16 -04:00
Alec Armbruster
697df71b2d
Merge branch 'breakout-role-utils' of https://github.com/alectrocute/lemmy-ui into breakout-role-utils 2023-06-20 10:21:41 -04:00
Alec Armbruster
2d4c9dd1c2
make suggested changes 2023-06-20 10:21:31 -04:00
Alec Armbruster
b8fd516f02
Merge branch 'main' into breakout-role-utils 2023-06-20 10:17:52 -04:00
Alec Armbruster
e4f9c31cfa
make suggested changes 2023-06-20 10:17:16 -04:00
Jay Sitter
c77086a9d5
feat: Bootstrap 5 (#1378)
* feat: Use Bootstrap 5; remove Bootstrap 4

* feat: Add link decoration override global var

* fix: Change sr-only to visually-hidden

* fix: Fix missing toggle button classes

* fix: Use darker green to pass 3:1 contrast and allow foreground color generation

* fix: Replace all mr- and ml- classes with me- (end) and ms- (start) classes

* fix: Replace all pr- and pl- classes with pe- (end) and ps- (start) classes

* fix: Replace custom-select with form-select d-inline-block

* fix: Change max-width to Bootstrap 4's max-width

* fix: Fix badge colors

* fix: Replace deprecated btn-block class with d-block

* fix: Temporary fix for missing btn-block styles

* fix: Fix margin-left auto and margin-right auto

* fix: Fix default border color

* fix: Fix some button widths

* fix: Fix form row margins

* fix: Remove theme color maps; no longer necessary in Bootstrap 5

* fix: Remove unused gray

* test commit

* fix: Fix deprecated input-group-append usage

* fix: Add missing col-form-label classes

* fix: Fix some column widths

* fix: Fix language dropdown style regression

* fix: Fix toast background color

* fix: Fix missing colors in red themes

* fix: Fix default radio button appearance for toggles

* fix: Fix missing margin in search form

* fix: Fix search form widths

* fix: Fix rate limit form columns

* fix: Fix search filters layout

* fix: Fix weird table background issue; re-compile from main updates

* fix: Fix modlog filter layout

* fix: Fix some horizontal margins

* fix: Fix incorrect usage of input-group

* chore: Empty commit to re-trigger Woodpecker job

* fix: Fix incorrect Bootstrap 5 padding class

* fix: Tighten up the home filter bars for the hell of it

* fix: Fix home filter bar gap

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-20 08:01:29 -04:00
Jay Sitter
5e30e7b1a8 fix: Shrink and normalize some post action button colors and sizes 2023-06-20 00:35:50 -04:00
Alec Armbruster
69a123b6d8
update imports 2023-06-19 21:48:38 -04:00
SleeplessOne1917
41cc3d35ea
Merge branch 'main' into breakout-role-utils 2023-06-20 00:14:00 +00:00
SleeplessOne1917
13df4b9c56
Merge branch 'main' into fix/add-aria-label-to-featured-pins 2023-06-19 23:32:00 +00:00
Dessalines
0c95172993
Merge branch 'main' into breakout-role-utils 2023-06-19 18:48:59 -04:00
Jay Sitter
e8dfaa458a fix: Always show advanced post buttons dropdown 2023-06-19 15:56:55 -04:00
Jay Sitter
94274a1e7f
feat(post): Move post domain beneath post title (#1363)
* feat(post): Move post domain and preview button beneath post title

* fix: Move the 'show body' button back to actions line; only show if there is something to show; add 'active' color

* fix: Fix some margins
2023-06-19 11:26:29 -04:00
Dessalines
02ffa85b58
Merge branch 'main' into breakout-role-utils 2023-06-19 10:04:19 -04:00
ayan4m1
5ccd8922da feat(css): make vertical rhythm more consistent for post listings 2023-06-18 23:55:04 -04:00
Jay Sitter
2348bbbf5b
Merge branch 'main' into fix/fix-post-creator-alignment 2023-06-18 23:45:06 -04:00
SleeplessOne1917
edf13f39e6
Merge branch 'main' into fix/fix-post-creator-alignment 2023-06-19 03:36:32 +00:00
Jay Sitter
6e4b2004dd
Merge branch 'main' into fix/add-labels-to-block-report 2023-06-18 23:23:44 -04:00
SleeplessOne1917
61586459ea
Merge branch 'main' into fix/fix-intense-hr-color 2023-06-19 03:20:59 +00:00
Jay Sitter
b55cf01e72 Merge remote-tracking branch 'origin/main' into fix/fix-post-creator-alignment
* origin/main:
  fix: Prettier ignore generated themes, as they aren't written by humans
  feat: Badge-ify NSFW and removed by mod title info
2023-06-18 23:18:03 -04:00
Jay Sitter
7f818921d2 fix(post): Fix missing labels on block/report buttons in new dropdown 2023-06-18 16:02:55 -04:00
Jay Sitter
473406d1da fix: Fix too-intense hr color between posts 2023-06-18 15:38:16 -04:00
Jay Sitter
90cd24b8ca fix: Fix post creator text alignment 2023-06-18 12:46:31 -04:00
Jay Sitter
28fd28f6d3 feat: Badge-ify NSFW and removed by mod title info 2023-06-18 10:47:29 -04:00
Jay Sitter
3e0ad0d56d fix: Fix display inline of post title 2023-06-18 10:19:42 -04:00
Jay Sitter
fbd2b727cb fix: Only post title should be inside h5, not the additional metadata icons 2023-06-18 10:19:40 -04:00
Jay Sitter
dcf576ff41 fix: Use btn-sm for advanced menu dropdown buttons 2023-06-18 10:18:17 -04:00
Jay Sitter
2e98e28e71 fix: Remove some extra classes on flag/report buttons 2023-06-18 10:18:17 -04:00
Jay Sitter
b4c83b214b fix: Fix vertical alignment and border radius of advanced dropdown menu items 2023-06-18 10:18:17 -04:00
Jay Sitter
fb2c9f7491 fix(a11y): Add aria-controls for advanced button dropdown 2023-06-18 10:18:17 -04:00
Jay Sitter
fc1c4f3279 fix: Fix some button labels and tippy text 2023-06-18 10:18:17 -04:00
Jay Sitter
96a4df220a fix: Remove unused var 2023-06-18 10:18:17 -04:00
Jay Sitter
7c264916a3 feat: Move advanced post menu into dropdown 2023-06-18 10:18:17 -04:00
SleeplessOne1917
0668a52daa
Merge branch 'main' into feat/move-advanced-post-menu-into-dropdown 2023-06-18 13:58:51 +00:00
Jay Sitter
cd0a5a60c6 fix: Fix display inline of post title 2023-06-18 00:41:47 -04:00
Jay Sitter
4da9fcdce9 fix: Use btn-sm for advanced menu dropdown buttons 2023-06-17 21:09:43 -04:00
Jay Sitter
bc69e0116c fix: Remove some extra classes on flag/report buttons 2023-06-17 21:04:40 -04:00
Jay Sitter
d0ae0f7543 fix: Fix vertical alignment and border radius of advanced dropdown menu items 2023-06-17 21:02:58 -04:00
Jay Sitter
a7b0e2002d fix(a11y): Add aria-controls for advanced button dropdown 2023-06-17 19:10:53 -04:00
Jay Sitter
c48ee703c0 fix: Fix some button labels and tippy text 2023-06-17 18:28:35 -04:00
Jay Sitter
57ef993b82 fix: Remove unused var 2023-06-17 18:17:22 -04:00
Jay Sitter
086b0c0cc9 feat: Move advanced post menu into dropdown 2023-06-17 18:03:12 -04:00
Jay Sitter
ec1d3726ed fix(a11y): Add aria-label to fetaured pins 2023-06-17 13:08:56 -04:00
Jay Sitter
84887b6feb fix: Only post title should be inside h5, not the additional metadata icons 2023-06-17 12:32:12 -04:00
Alec Armbruster
7f48a38b72
Merge branch 'main' into breakout-role-utils 2023-06-17 08:44:47 -04:00
SleeplessOne1917
61cbbfe57f
Merge branch 'main' into route-data-refactor 2023-06-17 02:22:36 +00:00
Jay Sitter
ba3a565d2b fix: Vertically align icons in post listing 2023-06-16 21:50:31 -04:00
Alec Armbruster
3ee47d38b8
Merge branch 'LemmyNet:main' into breakout-role-utils 2023-06-16 18:57:20 -04:00
Alec Armbruster
6c6ddd5b51
reset, merge issues 2023-06-16 18:56:23 -04:00
abias
9fb1a28763 Merge branch 'main' into route-data-refactor 2023-06-16 18:23:06 -04:00
abias
4d716e039b Merge branch 'main' into route-data-refactor 2023-06-16 18:17:17 -04:00
abias
71336002e7 Fix first loads not working 2023-06-16 18:12:14 -04:00
Zetaphor
e13d6145cb Remove extra div in post sidebar 2023-06-16 18:56:06 -03:00
Alec Armbruster
9c37cea106
Merge branch 'main' into breakout-role-utils 2023-06-16 17:33:46 -04:00
Alec Armbruster
976ed12d07
break out browser and helper methods 2023-06-16 17:25:53 -04:00
SleeplessOne1917
e456121137
Merge branch 'main' into feature/add-ids-and-classes 2023-06-16 21:17:48 +00:00
Alec Armbruster
0854af3794
break out all role utils 2023-06-16 17:07:55 -04:00
Dessalines
e0cc7ba3c3
Adding a few more 0.18.0 API changes. (#1324)
- Removes number_online
2023-06-16 17:06:14 -04:00
Zetaphor
5d7e5cac33 Use article semantic HTML tag for posts/comments 2023-06-16 17:27:41 -03:00
Zetaphor
6a9b936d08 Merge branch 'main' into feature/add-ids-and-classes 2023-06-16 14:14:10 -03:00
Zetaphor
2d79ad32b5 Add clases and ID's to post form/listing 2023-06-16 14:12:07 -03:00
Zetaphor
3ca2bce9f0 Add classes to post and comment repy textareas 2023-06-16 14:10:56 -03:00
Jordan Enterkin
afcffce572
fix block community functionality in sidebar (#1316)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-16 13:01:09 -04:00
Alec Armbruster
64191f2d21
set loading state attribute to false if createPost fails (#1311)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-16 11:02:28 -04:00
abias
2a16c85ed0 Cleanup 2023-06-15 22:39:04 -04:00
abias
88842a52c0 Merge branch 'main' into route-data-refactor 2023-06-15 22:11:19 -04:00
abias
9265fc5894 Merge branch 'main' into route-data-refactor 2023-06-15 22:08:14 -04:00
Marcin Mróz
e470db3fde feat(post-listing): Add link to post for mobile preview 2023-06-15 19:21:42 +02:00
ayan4m1
1dd8cb0994 remove explicit types 2023-06-15 08:31:36 -04:00
ayan4m1
1ed148d3d2 fix: <hr> is almost invisible in darkly theme 2023-06-15 08:23:55 -04:00
SleeplessOne1917
f86b9ede07
Merge branch 'main' into AA/remove-pictrsdeletetoast-from-postform 2023-06-15 00:05:27 +00:00
Alec Armbruster
44e45bb84d
make button a tad smaller 2023-06-14 16:45:56 -04:00
Alec Armbruster
d75e4365c4
remove pictrsDeleteToast usage from PostForm, add delete image button, fix infinite loading bug if upload error occured 2023-06-14 16:29:04 -04:00
Alec Armbruster
99f81f8d63
adds missing tooltip 2023-06-14 10:03:00 -04:00
SleeplessOne1917
2b1af707c3
Use http client (#1081)
* Beginning work on websocket -> http client conversion.

* About 30% done.

* half done.

* more done.

* Almost passing lint.

* Passing lint, but untested.

* Add back in event listeners.

* Fixing some community forms.

* Remove webpack cache.

* fixing some more.

* Fixed ISOwrappers.

* A few more fixes.

* Refactor utils

* Fix instance add/remove buttons

* Not catching errors in isoWrapper.

* Wrap Http client

* Fixing up tagline and ratelimit forms.

* Make all http client wrapping be in one place

* Reworking some more forms.

* Upgrading lemmy-js-client.

* Fixing verify email.

* Fix linting errors

* Upgrading woodpecker node.

* Fix comment scrolling rerender bug.

* Fixing a few things, commenting out props for now.

* v0.18.0-beta.1

* Trying to fix woodpecker, 1.

* Trying to fix woodpecker, 2.

* Handroll prompt

* Add navigation prompt to other pages

* Fix prompt navigation bug

* Fix prompt bug introduced from last bug fix

* Fix PWA bug

* Fix isoData not working

* Fix search page update url

* Fix sharp issue.

* v0.18.0-beta.2

* Make create post pre-fetch communities

* Fix bug from last commit

* Fix issue of posts/comments not being switched when changing select options

* Fix unnecessary fetches on home screen

* Make circular icon buttons not look stupid

* Prevent unnecessary fetches

* Make login experience smoother

* Add PWA shortcuts

* Add related application to PWA

* Update translations

* Forgot to add post editing.

* Fixing site setup.

* Deploy script setup.

* v0.18.0-beta.4

* Sanitize again.

* Adding sanitize json function.

* Upping version.

* Another sanitize fix.

* Upping version.

* Prevent search nav item from disappearing when on search page

* Allow admin and mod actions on non-local comments.

* Fix mobile menu collapse bug

* Completely fix prompt component

* Fix undefined value checks in use_http_client_2 (#1230)

* fix: filter out undefined from posts

* fix: emoji initialisation passing undefined

* fix: || => ?? to be more explicit

* linting

---------

Co-authored-by: Alex Maras <alexmaras@gmail.com>

* Re-add accidentally removed state

* Fix dropdown bug

* Use linkEvent where appropriate

* Fix navigation warnings.

---------

Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Alex Maras <dev@alexmaras.com>
Co-authored-by: Alex Maras <alexmaras@gmail.com>
2023-06-14 08:20:40 -04:00
SleeplessOne1917
5f5ef404d2
Fix prompt component (#1223)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-13 06:33:27 -04:00
SleeplessOne1917
3438dac98b
Merge branch 'main' into fix-button-click-area 2023-06-12 14:33:28 +00:00
Ikko Eltociear Ashimine
b0b3d526cf
Fix typo in post-listing.tsx (#1181)
recieve -> receive
2023-06-12 10:05:36 -04:00
Florian Heft
170949f34f Fixed unclickable button paddings
* Remove the wrapping <button> element that
  visually seems clickable but has no click
  handling (only its child link can be
  clicked)
* fixes #1193
2023-06-12 11:40:44 +02:00
Marcin Mróz
7366846849 styles(#1067): Run prettier 2023-06-08 21:08:28 +02:00
Marcin Mróz
7dfda39db0 fix(#1067): Fix language not updating when editing post 2023-06-08 20:48:32 +02:00
James Whitmarsh
0754b9ba19 Refactor lets to consts 2023-06-05 22:31:12 +01:00
SleeplessOne1917
400e62b21c
Add aria attribute to track toggle status of up/down votes. (#1074) 2023-06-05 11:49:03 -04:00
abias
72b4d14b47 Merge branch 'main' into route-data-refactor 2023-05-29 20:41:54 -04:00
abias
feb4c434d1 Refactor route data 2023-05-29 20:40:00 -04:00