Skip to content

Commit

Permalink
style: fix labels vertical align (apache#11415)
Browse files Browse the repository at this point in the history
* style: fix labels vertical align

* addressed comments

* just adding the space for now

* fix timer
  • Loading branch information
mistercrunch authored and auxten committed Nov 20, 2020
1 parent 87b82e8 commit 1e8271e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions superset-frontend/src/components/DatabaseSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,7 @@ export default function DatabaseSelector({
function renderDatabaseOption(db: any) {
return (
<span title={db.database_name}>
<Label bsStyle="default">{db.backend}</Label>
{db.database_name}
<Label bsStyle="default">{db.backend}</Label> {db.database_name}
</span>
);
}
Expand Down
1 change: 1 addition & 0 deletions superset-frontend/src/components/Label/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const SupersetLabel = styled(BootstrapLabel)`
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: middle;
&:first-of-type {
margin-left: 0;
Expand Down
4 changes: 2 additions & 2 deletions superset-frontend/src/components/Timer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ interface TimerProps {
}

const TimerLabel = styled(Label)`
width: 80px;
text-align: right;
width: 96px;
text-align: center;
`;

export default function Timer({
Expand Down

0 comments on commit 1e8271e

Please sign in to comment.