Skip to content

Commit

Permalink
Moderation/content action overhaul (#2258)
Browse files Browse the repository at this point in the history
* Fix remove post dialog

* Consolidate mod action logic

* Make mod action form less janky

* Move content action dropdown to its own component

* Make reusable component for content action buttons

* Finish up mod dropdown

* Introduce new content dropdown component to post listing

* Fix cancel moderation button bug

* Add icons, tweak UI

* Handle delete/undelete icons

* The thing

* Fix some of the banning related bugs

* Fix mod form ban bugs

* Fix some more bugs

* Make comments use dropdown menu

* Use mod action form with comments

* Make confirmation modal

* Make all the mod action dialogs modals

* Tweak modal

* Fix bug with mod form submit

* Tweak modal more

* More modal tweaking and some feedback toasts

* Use icon pairs for on/off

* Make modals auto focus input

* Implement PR suggestions

* Make UI use async functions where needed

* Make loading state for context action modals

* Hide context actions that users should not be able to do

* Add loading state to confirmation modals

* Use updated translations

* PR feedback

* Add forgotten trnslations

* Fix scrolling bug

---------

Co-authored-by: SleeplessOne <insomnia-void@protonmail.com>
  • Loading branch information
SleeplessOne1917 and SleeplessOne authored Dec 6, 2023
1 parent 39f86d4 commit 8594a30
Show file tree
Hide file tree
Showing 34 changed files with 2,377 additions and 2,320 deletions.
2 changes: 1 addition & 1 deletion lemmy-translations
1 change: 0 additions & 1 deletion src/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
}

.icon {
display: inline-grid;
display: inline-flex;
width: 1em;
height: 1em;
Expand Down
288 changes: 151 additions & 137 deletions src/assets/symbols.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 8594a30

Please sign in to comment.