fixed row heights

This commit is contained in:
Collin M. Barrett 2019-08-06 12:33:16 -05:00
parent c17c4e7c0f
commit 7199e80b76
2 changed files with 7 additions and 4 deletions

View file

@ -6,7 +6,8 @@ td > div {
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
line-height: 1.5;
max-height: 3em;
-webkit-line-clamp: 2; /* number of lines to show */
line-height: 1.5; /* fallback */
max-height: 3em; /* fallback */
min-height: 3em; /* fixed row height */
}

View file

@ -17,7 +17,9 @@ export const SubscribeButton = (props: Props): JSX.Element | null =>
(props.viewUrlMirrors && props.viewUrlMirrors.length > 0)
? <SubscribeButtonDropdown {...props} />
: props.viewUrl
? <Button size="small" {...buildButtonProps(props.name, props.viewUrl)}>Subscribe</Button>
? <div>
<Button size="small" {...buildButtonProps(props.name, props.viewUrl)}>Subscribe</Button>
</div>
: null;
const SubscribeButtonDropdown = (props: Props): JSX.Element => {