panels: fixed sizes

This commit is contained in:
muerwre 2018-12-07 14:37:44 +07:00
parent b8ba50517b
commit a6966fd651
4 changed files with 11 additions and 5 deletions

View file

@ -64,7 +64,7 @@ export class SaveDialog extends React.Component<Props, State> {
const { host } = getUrlData();
return (
<div className="control-dialog" style={{ width }}>
<div className="control-dialog control-dialog-medium" style={{ width }}>
<div className="helper save-helper">
<div className="save-title">
<div className="save-title-input">

View file

@ -9,7 +9,7 @@ type Props = {
};
export const StickersDialog = ({ setActiveSticker, width }: Props) => (
<div className="control-dialog" style={{ width }}>
<div className="control-dialog control-dialog-big" style={{ width }}>
<div className="helper stickers-helper">
{
Object.keys(STICKERS).map(set => (

View file

@ -45,9 +45,7 @@ const DIALOG_CONTENTS = {
};
export const Component = (props: Props) => {
const {
mode
} = props;
const { mode } = props;
return (
(mode && DIALOG_CONTENTS[mode] && React.createElement(DIALOG_CONTENTS[mode], { ...props }))

View file

@ -169,6 +169,14 @@
bottom: auto;
top: 52px;
}
&.control-dialog-big {
min-width: 555px;
}
&.control-dialog-medium {
min-width: 460px;
}
}
.control-dialog-provider {