diff --git a/packages/grafana-ui/src/components/DataLinks/DataLinksInlineEditor/DataLinksInlineEditor.tsx b/packages/grafana-ui/src/components/DataLinks/DataLinksInlineEditor/DataLinksInlineEditor.tsx index c800ccea7c6..7cc2448f01b 100644 --- a/packages/grafana-ui/src/components/DataLinks/DataLinksInlineEditor/DataLinksInlineEditor.tsx +++ b/packages/grafana-ui/src/components/DataLinks/DataLinksInlineEditor/DataLinksInlineEditor.tsx @@ -112,18 +112,16 @@ export const DataLinksInlineEditor = ({ const key = `${link.title}/${idx}`; const linkJSX = ( -
- setEditIndex(idx)} - onRemove={() => onDataLinkRemove(idx)} - data={data} - itemKey={key} - /> -
+ setEditIndex(idx)} + onRemove={() => onDataLinkRemove(idx)} + data={data} + itemKey={key} + /> ); if (idx === 0) { @@ -184,9 +182,6 @@ const getDataLinksInlineEditorStyles = (theme: GrafanaTheme2) => ({ marginBottom: -10, display: 'inline-block', }), - itemWrapper: css({ - padding: '4px 8px 8px 8px', - }), button: css({ marginLeft: theme.spacing(1), }), diff --git a/packages/grafana-ui/src/components/DataLinks/DataLinksInlineEditor/DataLinksListItem.tsx b/packages/grafana-ui/src/components/DataLinks/DataLinksInlineEditor/DataLinksListItem.tsx index 6b172810c22..bde3008b7eb 100644 --- a/packages/grafana-ui/src/components/DataLinks/DataLinksInlineEditor/DataLinksListItem.tsx +++ b/packages/grafana-ui/src/components/DataLinks/DataLinksInlineEditor/DataLinksListItem.tsx @@ -32,38 +32,36 @@ export const DataLinksListItem = ({ link, onEdit, onRemove, index, itemKey }: Da return ( {(provided) => ( - <> -
-
-
- {hasTitle ? title : 'Data link title not provided'} -
-
- {hasUrl ? url : 'Data link url not provided'} -
- {isCompactExploreUrl && ( - - Explore data link may not work in the future. Please edit. - - )} +
+
+
+ {hasTitle ? title : 'Data link title not provided'}
-
- - -
- -
+
+ {hasUrl ? url : 'Data link url not provided'}
+ {isCompactExploreUrl && ( + + Explore data link may not work in the future. Please edit. + + )}
- +
+ + +
+ +
+
+
)} ); @@ -109,6 +107,7 @@ const getDataLinkListItemStyles = (theme: GrafanaTheme2) => { }), dragRow: css({ position: 'relative', + margin: '4px 8px 8px 8px', }), icons: css({ display: 'flex',