better photo overview

This commit is contained in:
2020-10-20 13:25:29 +00:00
committed by Stepan Usatiuk
parent 4a534f17cd
commit 180a1e5492
2 changed files with 16 additions and 6 deletions

View File

@@ -140,6 +140,10 @@
align-items: flex-end;
justify-content: center;
width: 100%;
button {
margin: 0.25rem;
}
}
.list {
@@ -154,14 +158,14 @@
}
.photoCard {
display: flex;
justify-content: center;
align-items: center;
flex-grow: 1;
transition: all 0.3s;
transition: 0.3s;
user-select: none;
height: 15rem;
width: 20rem;
margin: 1rem;
min-width: 10rem;
margin: 0.25rem;
padding: 0rem;
overflow: hidden;
@@ -175,6 +179,10 @@
object-fit: cover;
}
}
.photoStub {
flex-grow: 100;
}
}
}

View File

@@ -93,7 +93,9 @@ export const OverviewComponent: React.FunctionComponent<IOverviewComponentProps>
<div id="actionbar">
<UploadButton />
</div>
<div className="list">{photos}</div>
<div className="list">
{photos} <div className="photoStub" />
</div>
<div className="photosLoader">
{props.overviewFetching && <Spinner />}
</div>