Media viewer fixes:
Button menu styles Download avatar
This commit is contained in:
parent
2c9056abe1
commit
092869e6bd
@ -1092,7 +1092,7 @@ export default class AppMediaViewer extends AppMediaViewerBase<'caption', 'delet
|
|||||||
text: 'Download',
|
text: 'Download',
|
||||||
onClick: this.onDownloadClick
|
onClick: this.onDownloadClick
|
||||||
}, {
|
}, {
|
||||||
icon: 'delete',
|
icon: 'delete danger btn-disabled',
|
||||||
text: 'Delete',
|
text: 'Delete',
|
||||||
onClick: () => {}
|
onClick: () => {}
|
||||||
}]);
|
}]);
|
||||||
@ -1297,7 +1297,7 @@ export class AppMediaViewerAvatar extends AppMediaViewerBase<'', 'delete', AppMe
|
|||||||
text: 'Download',
|
text: 'Download',
|
||||||
onClick: this.onDownloadClick
|
onClick: this.onDownloadClick
|
||||||
}, {
|
}, {
|
||||||
icon: 'delete',
|
icon: 'delete danger btn-disabled',
|
||||||
text: 'Delete',
|
text: 'Delete',
|
||||||
onClick: () => {}
|
onClick: () => {}
|
||||||
}]);
|
}]);
|
||||||
@ -1318,7 +1318,7 @@ export class AppMediaViewerAvatar extends AppMediaViewerBase<'', 'delete', AppMe
|
|||||||
};
|
};
|
||||||
|
|
||||||
onDownloadClick = (e: MouseEvent) => {
|
onDownloadClick = (e: MouseEvent) => {
|
||||||
|
appPhotosManager.savePhotoFile(appPhotosManager.getPhoto(this.currentPhotoID));
|
||||||
};
|
};
|
||||||
|
|
||||||
protected loadMoreMedia = (older = true) => {
|
protected loadMoreMedia = (older = true) => {
|
||||||
|
@ -3,7 +3,7 @@ import ButtonMenu, { ButtonMenuItemOptions } from "./buttonMenu";
|
|||||||
import { openBtnMenu } from "./misc";
|
import { openBtnMenu } from "./misc";
|
||||||
|
|
||||||
const ButtonMenuToggle = (options: Partial<{noRipple: true, onlyMobile: true}> = {}, direction: 'bottom-left', buttons: ButtonMenuItemOptions[]) => {
|
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);
|
const btnMenu = ButtonMenu(buttons);
|
||||||
btnMenu.classList.add(direction);
|
btnMenu.classList.add(direction);
|
||||||
ButtonMenuToggleHandler(button);
|
ButtonMenuToggleHandler(button);
|
||||||
|
@ -365,7 +365,7 @@ $move-duration: .35s;
|
|||||||
}
|
}
|
||||||
|
|
||||||
@include respond-to(handhelds) {
|
@include respond-to(handhelds) {
|
||||||
.menu-mobile-close {
|
.tgico-close.only-handhelds {
|
||||||
left: 20px;
|
left: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user