mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	fix(collection/presentation): use floating bar styling for floating buttons
This commit is contained in:
		| @@ -68,9 +68,12 @@ function ButtonOverlay({ containerRef, api }: { containerRef: RefObject<HTMLDivE | ||||
|  | ||||
|     return ( | ||||
|         <div className="presentation-button-bar"> | ||||
|             <div className="floating-buttons-children"> | ||||
|                 <ActionButton | ||||
|                     className="floating-button" | ||||
|                     icon="bx bx-edit" | ||||
|                     text={t("presentation_view.edit-slide")} | ||||
|                     noIconActionClass | ||||
|                     onClick={e => { | ||||
|                         const currentSlide = api?.getCurrentSlide(); | ||||
|                         const noteId = getNoteIdFromSlide(currentSlide); | ||||
| @@ -82,20 +85,23 @@ function ButtonOverlay({ containerRef, api }: { containerRef: RefObject<HTMLDivE | ||||
|                 /> | ||||
|  | ||||
|                 <ActionButton | ||||
|                     className="floating-button" | ||||
|                     icon="bx bx-grid-horizontal" | ||||
|                     text={t("presentation_view.slide-overview")} | ||||
|                     active={isOverviewActive} | ||||
|                 onClick={() => { | ||||
|                     api?.toggleOverview(); | ||||
|                 }} | ||||
|                     noIconActionClass | ||||
|                     onClick={() => api?.toggleOverview()} | ||||
|                 /> | ||||
|  | ||||
|                 <ActionButton | ||||
|                     className="floating-button" | ||||
|                     icon="bx bx-fullscreen" | ||||
|                     text={t("presentation_view.start-presentation")} | ||||
|                     noIconActionClass | ||||
|                     onClick={() => containerRef.current?.requestFullscreen()} | ||||
|                 /> | ||||
|             </div> | ||||
|         </div> | ||||
|     ) | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user