diff --git a/.gitignore b/.gitignore index b21e3ad..663daf7 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,10 @@ config.yaml .env +# Data folders +booru_data +sql_data + # Client Development Artifacts */*_modules/ client/public diff --git a/client/Dockerfile b/client/Dockerfile index 3ab0016..b0f6b48 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -1,8 +1,8 @@ -FROM --platform=$BUILDPLATFORM node:lts as builder +FROM node:lts as builder WORKDIR /opt/app COPY package.json package-lock.json ./ -RUN npm install -g npm@lts +RUN npm install -g npm RUN npm install COPY . ./ @@ -12,7 +12,7 @@ ARG CLIENT_BUILD_ARGS="" RUN BASE_URL="__BASEURL__" node build.js --gzip ${CLIENT_BUILD_ARGS} -FROM --platform=$BUILDPLATFORM scratch as approot +FROM scratch as approot COPY docker-start.sh / diff --git a/client/css/post-list-view.styl b/client/css/post-list-view.styl index 0272ee1..4e0a59c 100644 --- a/client/css/post-list-view.styl +++ b/client/css/post-list-view.styl @@ -1,5 +1,33 @@ @import colors +@media (max-width: 50rem) + .post-list + ul + display: block !important + column-width: 10em !important + column-gap: 2vmin !important + + li + min-height: unset !important + height: unset !important + width: 100% !important + margin: 0 0 2vmin 0 !important + + +@media (max-width: 100vh) + .post-list + ul + display: block !important + column-width: 20vh !important + column-gap: 2vmin !important + + li + min-height: unset !important + height: unset !important + width: 100% !important + margin: 0 0 2vmin 0 !important + + .post-list ul list-style-type: none @@ -16,10 +44,8 @@ margin: 0 0.25em 0.5em 0.25em display: inline-block text-align: left - min-width: 10em - width: 12vw &:not(.flexbox-dummy) - min-height: 7.5em + min-height: 10em height: 9vw .thumbnail-wrapper diff --git a/client/html/home_footer.tpl b/client/html/home_footer.tpl index 85e71c9..2f18bea 100644 --- a/client/html/home_footer.tpl +++ b/client/html/home_footer.tpl @@ -1,7 +1,6 @@