fix Metadata browser in SQL not render nicely in Safari (#18855)

This commit is contained in:
Smart-Codi 2022-02-25 06:16:31 +00:00 committed by GitHub
parent 8d38675cbc
commit 0db49b1a7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,6 +75,10 @@ interface ColumnElementProps {
};
}
const NowrapDiv = styled.div`
white-space: nowrap;
`;
const ColumnElement = ({ column }: ColumnElementProps) => {
let columnName: React.ReactNode = column.name;
let icons;
@ -105,9 +109,9 @@ const ColumnElement = ({ column }: ColumnElementProps) => {
{columnName}
{icons}
</div>
<div className="pull-right text-muted">
<NowrapDiv className="pull-right text-muted">
<small> {column.type}</small>
</div>
</NowrapDiv>
</div>
);
};