diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/StyledButton.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/StyledButton.tsx index dfcdf846fb82e..e705dc584507c 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/StyledButton.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/StyledButton.tsx @@ -109,4 +109,6 @@ export const StyledButtonText = styled.span` white-space: nowrap; overflow: hidden; text-overflow: ellipsis; + text-align: left; + flex: 1; `; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/TextInput.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/TextInput.tsx index 39e5d95cd53f9..3d243b6bb0539 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/TextInput.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/TextInput.tsx @@ -6,6 +6,7 @@ import {Icon, IconName, IconWrapper} from './Icon'; import {FontFamily} from './styles'; interface Props extends Omit, 'onChange'> { + fill?: boolean; icon?: IconName; onChange?: (e: React.ChangeEvent) => void; strokeColor?: string; @@ -15,6 +16,7 @@ interface Props extends Omit, 'onChange'> { export const TextInput = React.forwardRef( (props: Props, ref: React.ForwardedRef) => { const { + fill, icon, disabled, strokeColor = Colors.borderDefault(), @@ -24,7 +26,7 @@ export const TextInput = React.forwardRef( } = props; return ( - + {icon ? ( ) : null} diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/sidebar/SearchFilter.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/sidebar/SearchFilter.tsx index 2297cc587008d..a09032e8d0738 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/sidebar/SearchFilter.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/sidebar/SearchFilter.tsx @@ -1,4 +1,4 @@ -import {Colors, MenuItem, Suggest, useViewport} from '@dagster-io/ui-components'; +import {MenuItem, Suggest, useViewport} from '@dagster-io/ui-components'; import * as React from 'react'; import styled from 'styled-components'; @@ -64,9 +64,5 @@ export const SearchFilter = ({ const SuggestWrapper = styled.div` .bp5-input-group.dagster-suggest-input { width: 100%; - - ::placeholder { - color: ${Colors.textLighter()}; - } } `; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPartitions.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPartitions.tsx index 2136f1ca4801f..eaa05536efbaa 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPartitions.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPartitions.tsx @@ -8,13 +8,11 @@ import { Spinner, Subheading, TextInput, - TextInputContainer, Tooltip, } from '@dagster-io/ui-components'; import isEqual from 'lodash/isEqual'; import uniq from 'lodash/uniq'; import {useMemo, useState} from 'react'; -import styled from 'styled-components'; import {AssetPartitionDetailEmpty, AssetPartitionDetailLoader} from './AssetPartitionDetail'; import {AssetPartitionList} from './AssetPartitionList'; @@ -268,14 +266,13 @@ export const AssetPartitions = ({ padding={{horizontal: 24, vertical: 8}} > - - setSearchValue(e.target.value)} - placeholder="Filter by name…" - /> - + setSearchValue(e.target.value)} + placeholder="Filter by name…" + />
{selection.dimension.name !== 'default' && ( @@ -421,15 +418,3 @@ function getSort(sortTypes: Array, idx: number, definitionType: Partit : SortType.CREATION : sortTypes[idx]!; } - -const StyledTextInputWrapper = styled.div` - width: 100%; - - ${TextInputContainer} { - width: 100%; - } - - input { - width: 100%; - } -`; diff --git a/js_modules/dagster-ui/packages/ui-core/src/ticks/EvaluateScheduleDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/ticks/EvaluateScheduleDialog.tsx index 9a18223d72d55..5509208e5d6f4 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ticks/EvaluateScheduleDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ticks/EvaluateScheduleDialog.tsx @@ -118,7 +118,7 @@ const EvaluateSchedule = ({repoAddress, name, onClose, jobName}: Props) => { })); selectedTimestampRef.current = _selectedTimestamp || timestamps[0] || null; return ( - +
Select a mock evaluation time { >
- +
); }, [ _selectedTimestamp, @@ -383,14 +383,6 @@ export const SCHEDULE_DRY_RUN_MUTATION = gql` ${RUN_REQUEST_FRAGMENT} `; -const SelectWrapper = styled.div` - button { - width: 100%; - display: flex; - justify-content: space-between; - } -`; - const Grid = styled.div` display: grid; grid-template-columns: repeat(2, 1fr);