diff --git a/src/components/appMediaViewer.ts b/src/components/appMediaViewer.ts index 2da43871..e0e3b72f 100644 --- a/src/components/appMediaViewer.ts +++ b/src/components/appMediaViewer.ts @@ -1092,7 +1092,7 @@ export default class AppMediaViewer extends AppMediaViewerBase<'caption', 'delet text: 'Download', onClick: this.onDownloadClick }, { - icon: 'delete', + icon: 'delete danger btn-disabled', text: 'Delete', onClick: () => {} }]); @@ -1297,7 +1297,7 @@ export class AppMediaViewerAvatar extends AppMediaViewerBase<'', 'delete', AppMe text: 'Download', onClick: this.onDownloadClick }, { - icon: 'delete', + icon: 'delete danger btn-disabled', text: 'Delete', onClick: () => {} }]); @@ -1318,7 +1318,7 @@ export class AppMediaViewerAvatar extends AppMediaViewerBase<'', 'delete', AppMe }; onDownloadClick = (e: MouseEvent) => { - + appPhotosManager.savePhotoFile(appPhotosManager.getPhoto(this.currentPhotoID)); }; protected loadMoreMedia = (older = true) => { diff --git a/src/components/buttonMenuToggle.ts b/src/components/buttonMenuToggle.ts index 3e18fece..510c2d07 100644 --- a/src/components/buttonMenuToggle.ts +++ b/src/components/buttonMenuToggle.ts @@ -3,7 +3,7 @@ import ButtonMenu, { ButtonMenuItemOptions } from "./buttonMenu"; import { openBtnMenu } from "./misc"; const ButtonMenuToggle = (options: Partial<{noRipple: true, onlyMobile: true}> = {}, direction: 'bottom-left', buttons: ButtonMenuItemOptions[]) => { - const button = ButtonIcon('more', options); + const button = ButtonIcon('more btn-menu-toggle', options); const btnMenu = ButtonMenu(buttons); btnMenu.classList.add(direction); ButtonMenuToggleHandler(button); diff --git a/src/scss/partials/_mediaViewer.scss b/src/scss/partials/_mediaViewer.scss index b5118c80..d379d88f 100644 --- a/src/scss/partials/_mediaViewer.scss +++ b/src/scss/partials/_mediaViewer.scss @@ -365,7 +365,7 @@ $move-duration: .35s; } @include respond-to(handhelds) { - .menu-mobile-close { + .tgico-close.only-handhelds { left: 20px; }