mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-21 16:55:25 +03:00
Clear media when switching view modes
This commit is contained in:
parent
51fc60cf5d
commit
61699b322d
1 changed files with 2 additions and 0 deletions
|
@ -695,6 +695,8 @@ function StatusThread({ id, closeLink = '/', instance: propInstance }) {
|
|||
className="menu-switch-view"
|
||||
onClick={() => {
|
||||
setViewMode(viewMode === 'full' ? null : 'full');
|
||||
searchParams.delete('media');
|
||||
searchParams.delete('media-only');
|
||||
if (viewMode === 'full') {
|
||||
searchParams.delete('view');
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue