mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 02:19:02 +08:00
adds width to Select
This commit is contained in:
parent
3318ec8c38
commit
24416ceabd
@ -1,5 +1,5 @@
|
|||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState } from "react";
|
||||||
import { Select, Button, Space, Form } from "antd";
|
import { Select as DefaultSelect, Button, Space, Form } from "antd";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
import { withRouter } from "react-router";
|
import { withRouter } from "react-router";
|
||||||
import { RouteComponentProps, useLocation } from "react-router-dom";
|
import { RouteComponentProps, useLocation } from "react-router-dom";
|
||||||
@ -15,13 +15,15 @@ import { DateTimeRangeType } from "../../../store/actions";
|
|||||||
import { METRICS_PAGE_QUERY_PARAM } from "Src/constants/query";
|
import { METRICS_PAGE_QUERY_PARAM } from "Src/constants/query";
|
||||||
import { LOCAL_STORAGE } from "Src/constants/localStorage";
|
import { LOCAL_STORAGE } from "Src/constants/localStorage";
|
||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
const { Option } = Select;
|
const { Option } = DefaultSelect;
|
||||||
|
|
||||||
const DateTimeWrapper = styled.div`
|
const DateTimeWrapper = styled.div`
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
justify-content: flex-end !important;
|
justify-content: flex-end !important;
|
||||||
`;
|
`;
|
||||||
|
const Select = styled(DefaultSelect)`
|
||||||
|
width: 150px;
|
||||||
|
`;
|
||||||
interface DateTimeSelectorProps extends RouteComponentProps<any> {
|
interface DateTimeSelectorProps extends RouteComponentProps<any> {
|
||||||
currentpath?: string;
|
currentpath?: string;
|
||||||
updateTimeInterval: Function;
|
updateTimeInterval: Function;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user