Skip to content
Snippets Groups Projects
Commit 78dbaff9 authored by Atte Keinänen's avatar Atte Keinänen
Browse files

Add min width for widget, adjust floating label position

parent 73d5cc8c
No related branches found
No related tags found
No related merge requests found
......@@ -84,16 +84,13 @@ function getFilterTitle(filter) {
return prefix + desc;
}
type DefaultProps = {};
type Props = {
setValue: (value: ?string) => void,
onClose: () => void
};
type State = { filter: FieldFilter };
export default class DateAllOptionsWidget extends Component<DefaultProps, Props, State> {
export default class DateAllOptionsWidget extends Component<*, Props, *> {
state: State;
constructor(props: Props) {
......@@ -130,7 +127,7 @@ export default class DateAllOptionsWidget extends Component<DefaultProps, Props,
}
render() {
return (<div>
return (<div style={{minWidth: "300px"}}>
<DatePicker
filter={this.state.filter}
onFilterChange={this.setFilter}
......
......@@ -12,7 +12,8 @@
position: relative;
height: 0;
line-height: 0;
margin-left: 0.5em;
margin-left: -0.45em;
padding: 0 0.5em;
}
:local(.container.deemphasized) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment