Skip to content

Commit 80c7e18

Browse files
author
Mukul Tayal
committed
css for dropdown indicator;
1 parent e0648f6 commit 80c7e18

File tree

1 file changed

+10
-7
lines changed
  • src/components/v2/appDetails/k8Resource/nodeDetail/NodeDetailTabs/CustomLogsModal

1 file changed

+10
-7
lines changed

src/components/v2/appDetails/k8Resource/nodeDetail/NodeDetailTabs/CustomLogsModal/CustomLogsModal.tsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
CustomInput,
77
InfoColourBar,
88
} from '@devtron-labs/devtron-fe-common-lib'
9-
import Select, { components } from 'react-select'
9+
import Select from 'react-select'
1010
import { SingleDatePicker } from 'react-dates'
1111
import 'react-dates/initialize'
1212
import 'react-dates/lib/css/_datepicker.css'
@@ -31,12 +31,8 @@ import { multiSelectStyles } from '../../../../../common/ReactSelectCustomizatio
3131
import { customDayStyles } from '../../../../../../common'
3232
import { CustomLogFilterOptionsType, SelectedCustomLogFilterType } from '../node.type'
3333

34-
const DropdownIndicator = (props) => {
35-
return (
36-
<components.DropdownIndicator {...props}>
37-
<ClockIcon className="icon-dim-16" />
38-
</components.DropdownIndicator>
39-
)
34+
const DropdownIndicator = () => {
35+
return <ClockIcon className="icon-dim-16 ml-8" />
4036
}
4137

4238
const getNearestTimeOptionBeforeNow = () => {
@@ -235,10 +231,17 @@ export const InputForSelectedOption = ({
235231
styles={{
236232
control: (base) => ({
237233
...base,
234+
display: 'flex',
235+
flexDirection: 'row-reverse',
238236
border: '1px solid var(--N200)',
239237
borderRadius: '4px',
240238
boxShadow: 'none',
241239
cursor: 'pointer',
240+
backgroundColor: 'var(--N50)',
241+
}),
242+
valueContainer: (base) => ({
243+
...base,
244+
padding: '0px 4px',
242245
}),
243246
}}
244247
isOptionDisabled={(option) => option.isdisabled}

0 commit comments

Comments
 (0)