mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
panels: fixed sizes
This commit is contained in:
parent
b8ba50517b
commit
a6966fd651
4 changed files with 11 additions and 5 deletions
|
@ -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">
|
||||
|
|
|
@ -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 => (
|
||||
|
|
|
@ -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 }))
|
||||
|
|
|
@ -169,6 +169,14 @@
|
|||
bottom: auto;
|
||||
top: 52px;
|
||||
}
|
||||
|
||||
&.control-dialog-big {
|
||||
min-width: 555px;
|
||||
}
|
||||
|
||||
&.control-dialog-medium {
|
||||
min-width: 460px;
|
||||
}
|
||||
}
|
||||
|
||||
.control-dialog-provider {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue