appearance: much more fixes

This commit is contained in:
muerwre 2018-11-27 13:07:50 +07:00
parent 291280c52e
commit b586663827
11 changed files with 64 additions and 23 deletions

View file

@ -46,9 +46,19 @@ export const Component = (props: Props) => {
|| mode === MODES.CONFIRM_CANCEL
);
const dialogIsSmall = (
mode === MODES.LOGO
);
return (
showDialog &&
<div id="control-dialog" style={{ width }}>
<div
id="control-dialog"
style={{
width: dialogIsSmall ? 201 : width,
right: dialogIsSmall ? 217 : 10,
}}
>
{ mode === MODES.ROUTER && <RouterDialog {...props} /> }
{ mode === MODES.STICKERS && <StickersDialog {...props} /> }
{ mode === MODES.TRASH && <TrashDialog {...props} /> }