Skip to content

Commit

Permalink
fix: white space no wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Aug 5, 2020
1 parent ce239d0 commit 1b1455d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ui/blocks/src/ComponentDeps/Dependencies.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-disable react/display-name */
import React, { FC, useMemo } from 'react';
import { Flex, Box } from 'theme-ui';
/** @jsx jsx */
import { FC, useMemo } from 'react';
import { jsx, Flex, Box, Text } from 'theme-ui';
import { ImportName, defaultExport } from '@component-controls/core';
import { Table, Tag, ExternalLink } from '@component-controls/components';

Expand Down Expand Up @@ -87,6 +88,9 @@ export const Dependencies: FC<DependenciesProps> = ({ dependencies }) => {
{
Header: 'version',
accessor: 'version',
Cell: ({ value }: { value?: string }) => (
<Text sx={{ whiteSpace: 'nowrap' }}>{value}</Text>
),
},
{
Header: 'peer',
Expand Down
3 changes: 3 additions & 0 deletions ui/components/src/ThemeContext/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -576,16 +576,19 @@ export const theme: ControlsTheme = {
display: 'inline-block',
px: 1,
borderRadius: 5,
whiteSpace: 'nowrap',
},
rightmargin: {
mr: 1,
display: 'inline-block',
px: 1,
whiteSpace: 'nowrap',
},
leftmargin: {
ml: 1,
display: 'inline-block',
px: 1,
whiteSpace: 'nowrap',
},
},
titledimage: {
Expand Down

0 comments on commit 1b1455d

Please sign in to comment.