fixes for last review
This commit is contained in:
parent
9ea1e21f5b
commit
6cee8d7664
8 changed files with 16 additions and 25 deletions
|
@ -129,19 +129,14 @@ class FileTile extends React.PureComponent {
|
||||||
<h3>
|
<h3>
|
||||||
<TruncatedText lines={1}>{title}</TruncatedText>
|
<TruncatedText lines={1}>{title}</TruncatedText>
|
||||||
</h3>
|
</h3>
|
||||||
|
<span className="file-tile__uri">{uri}</span>
|
||||||
</div>
|
</div>
|
||||||
{description &&
|
{description &&
|
||||||
<div className="card__content card__subtext">
|
<div className="card__content card__subtext">
|
||||||
<TruncatedText lines={2}>
|
<TruncatedText lines={!showActions ? 4 : 2}>
|
||||||
{description}
|
{description}
|
||||||
</TruncatedText>
|
</TruncatedText>
|
||||||
</div>}
|
</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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -47,6 +47,7 @@ export const Header = props => {
|
||||||
<Link
|
<Link
|
||||||
onClick={() => navigate("/wallet")}
|
onClick={() => navigate("/wallet")}
|
||||||
button="text"
|
button="text"
|
||||||
|
className="no-underline"
|
||||||
icon="icon-bank"
|
icon="icon-bank"
|
||||||
label={balance}
|
label={balance}
|
||||||
title={__("Wallet")}
|
title={__("Wallet")}
|
||||||
|
|
|
@ -44,8 +44,8 @@ body
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: var(--header-height);
|
top: var(--header-height);
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 5px;
|
left: 3px;
|
||||||
right: 5px;
|
right: 3px;
|
||||||
main {
|
main {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
$height-file-tile: $spacing-vertical * 6;
|
$height-file-tile: $spacing-vertical * 6;
|
||||||
.file-tile__row {
|
.file-tile__row {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
@ -16,23 +15,19 @@ $height-file-tile: $spacing-vertical * 6;
|
||||||
padding-top: $spacing-vertical * 1/3;
|
padding-top: $spacing-vertical * 1/3;
|
||||||
margin-left: $height-file-tile + $spacing-vertical / 2;
|
margin-left: $height-file-tile + $spacing-vertical / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card__title-primary {
|
.card__title-primary {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
.meta {
|
|
||||||
font-size: 0.9em;
|
.file-tile__uri {
|
||||||
color: var(--color-primary);
|
color: var(--color-primary);
|
||||||
background: var(--color-canvas);
|
font-size: 0.82em;
|
||||||
border: 1px solid rgba(0, 0, 0, 0.15);
|
|
||||||
border-radius: 3px;
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 4px 8px;
|
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
max-width: 80%;
|
max-width: 85%;
|
||||||
.meta-uri {
|
|
||||||
margin-left: 8px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
padding-right: $spacing-vertical / 4;
|
padding-right: $spacing-vertical / 4;
|
||||||
.button-alt {
|
.button-alt {
|
||||||
background: var(--header-button-bg) !important;
|
background: var(--header-button-bg) !important;
|
||||||
font-size: 17px;
|
font-size: 1em;
|
||||||
}
|
}
|
||||||
.button-alt:hover {
|
.button-alt:hover {
|
||||||
background: var(--header-button-hover-bg) !important;
|
background: var(--header-button-hover-bg) !important;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
::-webkit-scrollbar {
|
::-webkit-scrollbar {
|
||||||
width: 6px;
|
width: 7px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ nav.sub-header
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: baseline;
|
vertical-align: baseline;
|
||||||
margin: 0 8px;
|
margin: 0 16px;
|
||||||
padding: 0 8px;
|
padding: 0 8px;
|
||||||
color: var(--tab-color);
|
color: var(--tab-color);
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:not(.underline) {
|
&:not(.no-underline) {
|
||||||
text-decoration: none;
|
text-decoration: underline;
|
||||||
.icon {
|
.icon {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue