Fixed site search overflowing networks page.

This commit is contained in:
ThePendulum 2020-01-31 02:01:30 +01:00
parent f8a15be565
commit 83164e44d3
2 changed files with 10 additions and 5 deletions

View File

@ -47,14 +47,19 @@ export default {
<style lang="scss" scoped>
@import 'theme';
.networks {
padding: 0 1rem;
}
.search {
width: 40rem;
max-width: 100%;
width: 100%;
max-width: 40rem;
box-sizing: border-box;
padding: 1rem;
border: none;
box-sizing: border-box;
box-shadow: 0 0 3px $shadow-weak;
margin: 1rem;
margin: 1rem 0;
font-size: 1rem;
outline: none;
@ -67,7 +72,7 @@ export default {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
grid-gap: 1rem;
padding: 1rem;
padding: 1rem 0;
}
@media(max-width: $breakpoint) {

View File

@ -17,7 +17,7 @@ async function init() {
.join('releases_posters', 'releases_posters.release_id', 'releases.id')
.join('media', 'releases_posters.media_id', 'media.id');
const files = await Promise.all(posters.map(async (poster) => {
await Promise.all(posters.map(async (poster) => {
const source = path.join(config.media.path, poster.path);
const target = path.join(config.media.path, 'posters', `${poster.title.replace('/', '_')}.${poster.name}.jpeg`);