From da6012fe2d0e7b301778778445a8611b38baf684 Mon Sep 17 00:00:00 2001 From: Stefan Werner Date: Sat, 11 Nov 2023 02:34:25 +0100 Subject: [PATCH] improve a bit more with design and usablility --- server/Dockerfile | 3 +++ web/src/App.css | 1 + web/src/ui/editor/Controls.jsx | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/server/Dockerfile b/server/Dockerfile index 7cc4eaf..e8230c8 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -23,8 +23,11 @@ RUN pip install --upgrade pip RUN pip install uwsgi RUN --mount=type=cache,target=/root/.cache/pip pip install --no-cache-dir -r requirements.prod RUN apt-get purge -y --auto-remove gcc +RUN apt install # Copy the current directory contents into the container at /app ADD . /app/ +RUN apt install sqlite3 + ENV PYTHONIOENCODING=utf-8 ENV LC_ALL=C.UTF-8 diff --git a/web/src/App.css b/web/src/App.css index e526a80..f392661 100644 --- a/web/src/App.css +++ b/web/src/App.css @@ -201,6 +201,7 @@ ant-btn { z-index: 99999998; } .mobile-controls { + position: absolute; top: 50%; width: 20vw; display: flex; diff --git a/web/src/ui/editor/Controls.jsx b/web/src/ui/editor/Controls.jsx index 4a04d79..2821c30 100644 --- a/web/src/ui/editor/Controls.jsx +++ b/web/src/ui/editor/Controls.jsx @@ -151,7 +151,7 @@ const UserInteractionMenu = ({ params, onDeleteAction }) => { }} > - {params.actions?.reverse().map((action, index) => ( + {params.actions?.map((action, index) => [action, index]).reverse().map(([action, index]) => ( {index}