Skip to content

Commit 2d5698b

Browse files
authored
Fix(ang-767): Toggle project publicity dialog (#466)
* fix(ang-767): fixed toggle project publicity dialog * fix(ang-767): changed breakpoint * fix(ang-767): changed breakpoint
1 parent f07ce36 commit 2d5698b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/features/project/overview/components/overview-toolbar/overview-toolbar.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import {
2929
MyResourcesSelectors,
3030
RemoveResourceFromBookmarks,
3131
} from '@osf/shared/stores';
32-
import { hasViewOnlyParam, IS_SMALL } from '@shared/helpers';
32+
import { hasViewOnlyParam, IS_MEDIUM } from '@shared/helpers';
3333

3434
import { SocialsShareActionItem } from '../../models';
3535
import { DuplicateDialogComponent } from '../duplicate-dialog/duplicate-dialog.component';
@@ -66,7 +66,7 @@ export class OverviewToolbarComponent {
6666
destroyRef = inject(DestroyRef);
6767
isPublic = signal(false);
6868
isBookmarked = signal(false);
69-
isMobile = toSignal(inject(IS_SMALL));
69+
isTablet = toSignal(inject(IS_MEDIUM));
7070

7171
isCollectionsRoute = input<boolean>(false);
7272
canEdit = input.required<boolean>();
@@ -145,7 +145,7 @@ export class OverviewToolbarComponent {
145145
handleToggleProjectPublicity(): void {
146146
const resource = this.currentResource();
147147
if (!resource) return;
148-
const dialogWidth = this.isMobile() ? '95vw' : '600px';
148+
const dialogWidth = this.isTablet() ? '600px' : '95vw';
149149

150150
const isCurrentlyPublic = resource.isPublic;
151151
const newPublicStatus = !isCurrentlyPublic;

0 commit comments

Comments
 (0)