fixes for last review

This commit is contained in:
btzr-io 2017-10-04 21:07:04 -06:00
parent 9ea1e21f5b
commit 6cee8d7664
8 changed files with 16 additions and 25 deletions

View file

@ -129,19 +129,14 @@ class FileTile extends React.PureComponent {
<h3>
<TruncatedText lines={1}>{title}</TruncatedText>
</h3>
<span className="file-tile__uri">{uri}</span>
</div>
{description &&
<div className="card__content card__subtext">
<TruncatedText lines={2}>
<TruncatedText lines={!showActions ? 4 : 2}>
{description}
</TruncatedText>
</div>}
<div className="card__content card__subtext">
<span className="meta">
<Icon icon={icons.FILE} />
<span className="meta-uri">{uri}</span>
</span>
</div>
</div>
</div>
</div>

View file

@ -47,6 +47,7 @@ export const Header = props => {
<Link
onClick={() => navigate("/wallet")}
button="text"
className="no-underline"
icon="icon-bank"
label={balance}
title={__("Wallet")}

View file

@ -44,8 +44,8 @@ body
position: absolute;
top: var(--header-height);
bottom: 0;
left: 5px;
right: 5px;
left: 3px;
right: 3px;
main {
margin-left: auto;
margin-right: auto;

View file

@ -1,4 +1,3 @@
$height-file-tile: $spacing-vertical * 6;
.file-tile__row {
overflow: hidden;
@ -16,23 +15,19 @@ $height-file-tile: $spacing-vertical * 6;
padding-top: $spacing-vertical * 1/3;
margin-left: $height-file-tile + $spacing-vertical / 2;
}
.card__title-primary {
margin-top: 0;
}
.meta {
font-size: 0.9em;
.file-tile__uri {
color: var(--color-primary);
background: var(--color-canvas);
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 3px;
font-size: 0.82em;
display: inline-block;
padding: 4px 8px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 80%;
.meta-uri {
margin-left: 8px;
}
max-width: 85%;
}
}

View file

@ -20,7 +20,7 @@
padding-right: $spacing-vertical / 4;
.button-alt {
background: var(--header-button-bg) !important;
font-size: 17px;
font-size: 1em;
}
.button-alt:hover {
background: var(--header-button-hover-bg) !important;

View file

@ -1,5 +1,5 @@
::-webkit-scrollbar {
width: 6px;
width: 7px;
overflow: auto;
}

View file

@ -15,7 +15,7 @@ nav.sub-header
text-transform: uppercase;
display: inline-block;
vertical-align: baseline;
margin: 0 8px;
margin: 0 16px;
padding: 0 8px;
color: var(--tab-color);
position: relative;

View file

@ -9,8 +9,8 @@
}
}
&:not(.underline) {
text-decoration: none;
&:not(.no-underline) {
text-decoration: underline;
.icon {
text-decoration: none;
}