minor fix for fileTile component
This commit is contained in:
parent
dda98e81fa
commit
5dcf15a5b9
2 changed files with 6 additions and 5 deletions
|
@ -132,7 +132,7 @@ class FileTile extends React.PureComponent {
|
|||
</div>
|
||||
{description &&
|
||||
<div className="card__content card__subtext">
|
||||
<TruncatedText lines={!showActions ? 4 : 2}>
|
||||
<TruncatedText lines={2}>
|
||||
{description}
|
||||
</TruncatedText>
|
||||
</div>}
|
||||
|
@ -142,7 +142,6 @@ class FileTile extends React.PureComponent {
|
|||
<span className="meta-uri">{uri}</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -20,17 +20,19 @@ $height-file-tile: $spacing-vertical * 6;
|
|||
margin-top: 0;
|
||||
}
|
||||
.meta {
|
||||
font-size: 0.9em;
|
||||
color: var(--color-primary);
|
||||
background: var(--color-canvas);
|
||||
border: 1px solid rgba(0, 0, 0, 0.15);
|
||||
border-radius: 3px;
|
||||
display: inline-block;
|
||||
padding: 8px;
|
||||
max-width: 80%;
|
||||
padding: 4px 8px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 80%;
|
||||
.meta-uri {
|
||||
margin: 0 8px;
|
||||
margin-left: 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue