mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +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 ( |     return ( | ||||||
|         <div className="presentation-button-bar"> |         <div className="presentation-button-bar"> | ||||||
|  |             <div className="floating-buttons-children"> | ||||||
|                 <ActionButton |                 <ActionButton | ||||||
|  |                     className="floating-button" | ||||||
|                     icon="bx bx-edit" |                     icon="bx bx-edit" | ||||||
|                     text={t("presentation_view.edit-slide")} |                     text={t("presentation_view.edit-slide")} | ||||||
|  |                     noIconActionClass | ||||||
|                     onClick={e => { |                     onClick={e => { | ||||||
|                         const currentSlide = api?.getCurrentSlide(); |                         const currentSlide = api?.getCurrentSlide(); | ||||||
|                         const noteId = getNoteIdFromSlide(currentSlide); |                         const noteId = getNoteIdFromSlide(currentSlide); | ||||||
| @@ -82,20 +85,23 @@ function ButtonOverlay({ containerRef, api }: { containerRef: RefObject<HTMLDivE | |||||||
|                 /> |                 /> | ||||||
|  |  | ||||||
|                 <ActionButton |                 <ActionButton | ||||||
|  |                     className="floating-button" | ||||||
|                     icon="bx bx-grid-horizontal" |                     icon="bx bx-grid-horizontal" | ||||||
|                     text={t("presentation_view.slide-overview")} |                     text={t("presentation_view.slide-overview")} | ||||||
|                     active={isOverviewActive} |                     active={isOverviewActive} | ||||||
|                 onClick={() => { |                     noIconActionClass | ||||||
|                     api?.toggleOverview(); |                     onClick={() => api?.toggleOverview()} | ||||||
|                 }} |  | ||||||
|                 /> |                 /> | ||||||
|  |  | ||||||
|                 <ActionButton |                 <ActionButton | ||||||
|  |                     className="floating-button" | ||||||
|                     icon="bx bx-fullscreen" |                     icon="bx bx-fullscreen" | ||||||
|                     text={t("presentation_view.start-presentation")} |                     text={t("presentation_view.start-presentation")} | ||||||
|  |                     noIconActionClass | ||||||
|                     onClick={() => containerRef.current?.requestFullscreen()} |                     onClick={() => containerRef.current?.requestFullscreen()} | ||||||
|                 /> |                 /> | ||||||
|             </div> |             </div> | ||||||
|  |         </div> | ||||||
|     ) |     ) | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user