From 0a13ffc81ec6d11f4b75de8df781c28c07061333 Mon Sep 17 00:00:00 2001 From: debbyalmadea <almadeaputri@gmail.com> Date: Sun, 8 Oct 2023 19:51:18 +0700 Subject: [PATCH] fix: fixed position on mobile in create/update watchlists --- src/public/css/watchlistCreate.css | 8 ++++++++ src/seed/seed.sql | 14 ++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/public/css/watchlistCreate.css b/src/public/css/watchlistCreate.css index 03c1271..054e8ff 100644 --- a/src/public/css/watchlistCreate.css +++ b/src/public/css/watchlistCreate.css @@ -3,6 +3,7 @@ flex-direction: column; gap: 4rem; align-items: flex-start; + margin-bottom: 8rem; } .container__form { @@ -49,12 +50,17 @@ } .actions { + position: fixed; + bottom: 0; + left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; width: 100%; + background-color: white; + padding: 2rem 3rem; } .btn__add-item { @@ -96,6 +102,8 @@ .actions { position: sticky; top: 8rem; + left: auto; + bottom: auto; max-width: 20rem; } } \ No newline at end of file diff --git a/src/seed/seed.sql b/src/seed/seed.sql index 95c0c93..4e6257e 100644 --- a/src/seed/seed.sql +++ b/src/seed/seed.sql @@ -1,21 +1,19 @@ --- Seed data for 'ANIME' category INSERT INTO catalogs (uuid, title, description, poster, trailer, category) SELECT md5(random()::text || clock_timestamp()::text)::uuid, - 'Anime Title ' || generate_series(1, 10), - 'Anime Description ' || generate_series(1, 10), + 'Anime Title ' || num, + 'Anime Description ' || num, '0f57456ef87ea61a.webp', '86fa25a6dad7fcc7.mp4', 'ANIME' -FROM generate_series(1, 10); +FROM generate_series(1, 100) AS num; --- Seed data for 'DRAMA' category INSERT INTO catalogs (uuid, title, description, poster, trailer, category) SELECT md5(random()::text || clock_timestamp()::text)::uuid, - 'Drama Title ' || generate_series(1, 10), - 'Drama Description ' || generate_series(1, 10), + 'Drama Title ' || num, + 'Drama Description ' || num, 'a9f6e15daf0eca96.webp', '86fa25a6dad7fcc7.mp4', 'DRAMA' -FROM generate_series(1, 10); +FROM generate_series(1, 100) AS num; -- GitLab