From a0531922520d4afc9cc18a4d8f34b6ddd752113d Mon Sep 17 00:00:00 2001 From: buyolitsez Date: Wed, 24 Jun 2026 11:34:05 +0300 Subject: [PATCH 1/2] Fix note delete modal for image notes. #344 --- assets/tailwindcss/objects/_objects.notes.css | 9 +- templates/note/notes.html.twig | 15 ++-- templates/profile/profile.html.twig | 2 + tests/Controller/NoteControllerTest.php | 82 +++++++++++++++++++ 4 files changed, 101 insertions(+), 7 deletions(-) create mode 100644 tests/Controller/NoteControllerTest.php diff --git a/assets/tailwindcss/objects/_objects.notes.css b/assets/tailwindcss/objects/_objects.notes.css index 2fdc87c8d..d11af206a 100644 --- a/assets/tailwindcss/objects/_objects.notes.css +++ b/assets/tailwindcss/objects/_objects.notes.css @@ -17,6 +17,12 @@ height: auto; } +.notes-card figure { + max-width: 100%; + margin-left: 0; + margin-right: 0; +} + .note-avatar { grid-area: avatar; display: flex; @@ -32,6 +38,7 @@ .note-note { grid-area: note; + min-width: 0; @apply u:break-words u:mb-8; } @@ -45,7 +52,7 @@ @apply u:flex u:flex-row u:gap-8 u:justify-end; } -@media screen(sm) { +@media (min-width: 600px) { .notes-card { display: grid; grid-template-areas: diff --git a/templates/note/notes.html.twig b/templates/note/notes.html.twig index b3f145a2c..0f7eaf049 100644 --- a/templates/note/notes.html.twig +++ b/templates/note/notes.html.twig @@ -45,14 +45,17 @@ {% block modals %} {% for note in notes %} -
-