style: fix labels vertical align (#11415)

* style: fix labels vertical align

* addressed comments

* just adding the space for now

* fix timer
This commit is contained in:
Maxime Beauchemin 2020-10-25 17:55:22 -07:00 committed by GitHub
parent 70ea7ae776
commit 0ab15373fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -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>
);
}

View File

@ -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;

View File

@ -30,8 +30,8 @@ interface TimerProps {
}
const TimerLabel = styled(Label)`
width: 80px;
text-align: right;
width: 96px;
text-align: center;
`;
export default function Timer({