Skip to content

Commit

Permalink
Fix text alignment in data source list (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxschmeling authored Dec 14, 2024
1 parent 88864b5 commit 14e1427
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/data-sources/DataSourceList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,13 @@ const DataSourceList = () => {
return (
<tr key={ uuid } className="table-row">
<td>
<Icon
icon={ getServiceIcon( service ) }
style={ { marginRight: '16px', verticalAlign: 'text-bottom' } }
/>
<Text className="data-source-display_name">{ displayName }</Text>
<div className="rdb-data-source-name-and-icon">
<Icon
icon={ getServiceIcon( service ) }
style={ { marginRight: '16px', verticalAlign: 'text-bottom' } }
/>
<Text className="data-source-display_name">{ displayName }</Text>
</div>
</td>
<td>
<Text>{ getServiceLabel( service ) }</Text>
Expand Down
4 changes: 4 additions & 0 deletions src/settings/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,7 @@ body {

}

.rdb-data-source-name-and-icon {
display: flex;
align-items: center;
}

0 comments on commit 14e1427

Please sign in to comment.