Skip to content

Commit

Permalink
fix Metadata browser in SQL not render nicely in Safari (#18855)
Browse files Browse the repository at this point in the history
(cherry picked from commit 0db49b1)
  • Loading branch information
codemaster08240328 authored and villebro committed Apr 3, 2022
1 parent e20788c commit 4167cfa
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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>
);
};
Expand Down

0 comments on commit 4167cfa

Please sign in to comment.