Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
refactor(client): remove the floating run button
Elian Dorana99feb5464ed
diff --git a/apps/client/src/stylesheets/theme-next/shell.css b/apps/client/src/stylesheets/theme-next/shell.cssindex a300666c07..e572be8475 100644--- a/apps/client/src/stylesheets/theme-next/shell.css+++ b/apps/client/src/stylesheets/theme-next/shell.css@@ -1657,13 +1657,6 @@ div.floating-buttons-children .close-floating-buttons:has(.close-floating-buttonpadding-inline-start: 8px;}-/* Code, relation map buttons */--.floating-buttons .code-buttons-widget,-.floating-buttons .relation-map-buttons {- gap: 0;-}-/* Button groups */:root .floating-buttons .btn-group {--button-group-active-button-background-color: var(--low-profile-button-active-background-color);diff --git a/apps/client/src/widgets/FloatingButtonsDefinitions.tsx b/apps/client/src/widgets/FloatingButtonsDefinitions.tsxindex 2b21ba9fe0..84305bf0ec 100644--- a/apps/client/src/widgets/FloatingButtonsDefinitions.tsx+++ b/apps/client/src/widgets/FloatingButtonsDefinitions.tsx@@ -43,7 +43,6 @@ function FloatingButton({ className, ...props }: ActionButtonProps) {export type FloatingButtonsList = ((context: FloatingButtonContext) => false | VNode)[];export const DESKTOP_FLOATING_BUTTONS: FloatingButtonsList = [- RunActiveNoteButton,OpenTriliumApiDocsButton,OpenElectronApiDocsButton,SaveToNoteButton,@@ -61,15 +60,6 @@ export const POPUP_HIDDEN_FLOATING_BUTTONS: FloatingButtonsList = [InAppHelpButton];-function RunActiveNoteButton({ note }: FloatingButtonContext) {- const isEnabled = (note.mime.startsWith("application/javascript") || note.mime === "text/x-sqlite;schema=trilium");- return isEnabled && <FloatingButton- icon="bx bx-play"- text={t("code_buttons.execute_button_title")}- triggerCommand="runActiveNote"- />;-}-function OpenTriliumApiDocsButton({ note }: FloatingButtonContext) {const isEnabled = note.mime.startsWith("application/javascript;env=");return isEnabled && <FloatingButton