From 90e5193a97e7cedd2e5ba513446eb65c806b49fe Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 16 Oct 2025 08:54:09 +0300 Subject: [PATCH] fix(collection/presentation): use floating bar styling for floating buttons --- .../collections/presentation/index.tsx | 54 ++++++++++--------- 1 file changed, 30 insertions(+), 24 deletions(-) diff --git a/apps/client/src/widgets/collections/presentation/index.tsx b/apps/client/src/widgets/collections/presentation/index.tsx index 3cf3a7b8b..656940c68 100644 --- a/apps/client/src/widgets/collections/presentation/index.tsx +++ b/apps/client/src/widgets/collections/presentation/index.tsx @@ -68,33 +68,39 @@ function ButtonOverlay({ containerRef, api }: { containerRef: RefObject - { - const currentSlide = api?.getCurrentSlide(); - const noteId = getNoteIdFromSlide(currentSlide); +
+ { + const currentSlide = api?.getCurrentSlide(); + const noteId = getNoteIdFromSlide(currentSlide); - if (noteId) { - openInCurrentNoteContext(e, noteId); - } - }} - /> + if (noteId) { + openInCurrentNoteContext(e, noteId); + } + }} + /> - { - api?.toggleOverview(); - }} - /> + api?.toggleOverview()} + /> - containerRef.current?.requestFullscreen()} - /> + containerRef.current?.requestFullscreen()} + /> +
) }