Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -141,16 +141,13 @@ export class SearchableListContainerComponentInner extends Component<Props, Stat
</EuiButton>
</EuiFormRow>
</EuiFlexItem>
<EuiFlexItem>
<EuiFormRow label="Filter">
<EuiFieldText
data-test-subj="filterTodos"
value={this.props.input.search || ''}
onChange={(ev) => this.updateSearch(ev.target.value)}
/>
</EuiFormRow>
</EuiFlexItem>
<EuiFlexItem />
<EuiFormRow label="Filter">
<EuiFieldText
data-test-subj="filterTodos"
value={this.props.input.search || ''}
onChange={(ev) => this.updateSearch(ev.target.value)}
/>
</EuiFormRow>
</EuiFlexGroup>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import React, { useMemo } from 'react';
import useMount from 'react-use/lib/useMount';
import classNames from 'classnames';
import { EuiFormControlLayout, EuiFormLabel, EuiFormRow } from '@elastic/eui';
import { EuiFormControlLayout, EuiFormLabel, EuiFormRow, EuiIcon } from '@elastic/eui';

import { InputControlEmbeddable } from '../../embeddable/types';

Expand All @@ -31,7 +31,10 @@ export const ControlFrame = ({ twoLine, embeddable }: ControlFrameProps) => {
fullWidth
prepend={
twoLine ? undefined : (
<EuiFormLabel htmlFor={embeddable.id}>{embeddable.getInput().title}</EuiFormLabel>
<EuiFormLabel className="controlFrame__prepend" htmlFor={embeddable.id}>
<EuiIcon className="controlFrame__prependIcon" type="pencil" />
{embeddable.getInput().title}
</EuiFormLabel>
)
}
>
Expand All @@ -46,8 +49,15 @@ export const ControlFrame = ({ twoLine, embeddable }: ControlFrameProps) => {
</EuiFormControlLayout>
);

const twoLineLabel = (
<>
{embeddable.getInput().title}
<EuiIcon className="controlFrame__labelIcon" size="m" type="pencil" />
</>
);

return (
<EuiFormRow fullWidth label={twoLine ? embeddable.getInput().title : undefined}>
<EuiFormRow fullWidth label={twoLine ? twoLineLabel : undefined}>
{form}
</EuiFormRow>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@
.controlFrame--formControlLayout {
width: 100%;
min-width: $euiSize * 14;
.controlFrame__prepend {
padding-left: $euiSizeXS;
}
.controlFrame__prependIcon {
margin-top: - $euiSizeXS;
}
}

.controlFrame__labelIcon {
margin-left: $euiSizeXS;
margin-top: - $euiSizeXS;
}

.controlFrame--control {
Expand All @@ -39,9 +50,13 @@
min-width: $euiSize * 12;
}

.controlGroup--sortItem {
&-isDragging {
@include euiBottomShadow;
background: $euiColorEmptyShade;
}
// .controlGroup--sortItem {
// &-isDragging {
// @include euiBottomShadow;
// background: $euiColorEmptyShade;
// }
// }

.controlGroup--sortItemDraggable {
padding: $euiSizeXS 0;
}
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const ControlGroupComponent = ({
setControlMeta={setControlMeta}
setControlStyle={setControlStyle}
/>
<EuiSpacer size="l" />
<EuiSpacer size="s" />
<EuiFlexGroup alignItems="center" wrap={true} gutterSize={'s'}>
{controlMeta.map(({ embeddableId, width }) => (
<EuiFlexItem
Expand Down
Loading