diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index afccd29d..15f0243c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -149,7 +149,6 @@ jobs: run: | ssh -i ${{ secrets.SSH_PRIVATE_KEY_PATH }}/${{ secrets.SSH_PRIVATE_KEY_NAME }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "\ cd ${{ secrets.DEVBLOG_ROOT_PATH }} && \ - docker container rm -f ${{ secrets.DEVBLOG_CLIENT_CONTAINER }} || true && \ - docker container rm -f ${{ secrets.DEVBLOG_SERVER_CONTAINER }} || true && \ - docker container rm -f ${{ secrets.DEVBLOG_PROXY_CONTAINER }} || true && \ - docker compose up -d" \ No newline at end of file + docker container restart ${{ secrets.DEVBLOG_CLIENT_CONTAINER }} || true && \ + docker container restart ${{ secrets.DEVBLOG_SERVER_CONTAINER }} || true && \ + docker container restart ${{ secrets.DEVBLOG_PROXY_CONTAINER }}" \ No newline at end of file diff --git a/client/assets/styles/media.css b/client/assets/styles/media.css index f72e425e..4d939db5 100644 --- a/client/assets/styles/media.css +++ b/client/assets/styles/media.css @@ -27,6 +27,14 @@ /* post */ @media (max-width: 800px) { + main { + width: 100%; + } + + .posts { + margin-left: 0px !important; + margin-right: 0px !important; + } .description, .post { diff --git a/client/src/components/styles/carousel.css b/client/src/components/styles/carousel.css index e62508bb..439f3470 100644 --- a/client/src/components/styles/carousel.css +++ b/client/src/components/styles/carousel.css @@ -8,16 +8,14 @@ background-color: inherit; font-size: 2em; opacity: .8; + border: 1px solid red; } -/* .img-container>button:first { - margin-left: 30; +.img-container img { + border-radius: .5em; + width: 100%; } -.img-container>button:last { - margin-right: 30; -} */ - .img-container>.inactive-btn { opacity: .3; } diff --git a/client/src/components/styles/post.css b/client/src/components/styles/post.css index d39207ec..052876dd 100644 --- a/client/src/components/styles/post.css +++ b/client/src/components/styles/post.css @@ -1,14 +1,16 @@ +:root { + width: 100%; +} + .post { border-radius: .5em; margin: auto; margin-bottom: 1.5em; - padding: 1em; - width: 70%; + padding: 25px; } .post>div { margin: auto; - width: 95%; } .hide-comment:nth-child(n + 6) { @@ -34,12 +36,6 @@ width: 100%; } -img { - border-radius: .5em; - width: 100%; - max-width: 900px; -} - .description { margin: auto; } \ No newline at end of file diff --git a/client/src/main.rs b/client/src/main.rs index a699d326..6b4ba73f 100644 --- a/client/src/main.rs +++ b/client/src/main.rs @@ -32,7 +32,9 @@ pub fn app() -> Html { - render={switch} /> +
+ render={switch} /> +