diff --git a/src/main.ts b/src/main.ts index d67b4cb4..d8171d0c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -24,6 +24,7 @@ import { import { getCurrentUser } from '@nextcloud/auth' import '@nextcloud/dialogs/style.css' +import './styles.css' import LockSvg from '@mdi/svg/svg/lock.svg?raw' import LockOpenSvg from '@mdi/svg/svg/lock-open-variant.svg?raw' @@ -97,6 +98,7 @@ const inlineAction = new FileAction({ // FIXME: Currently enabled is not re-evaluated when emitting an updated node object through files:node:updated // Therefor we need to also have a unlocked state as the inline action is then always rendered + // We currently hide them for the grid view via css return true const node = nodes[0] diff --git a/src/styles.css b/src/styles.css new file mode 100644 index 00000000..589ea085 --- /dev/null +++ b/src/styles.css @@ -0,0 +1,10 @@ +/** + * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +/* The grid view currently does not properly handle inline actions, we hide them for now */ +.action-item__popper .action.files-list__row-action-lock_inline, +.files-list--grid .action.files-list__row-action-lock_inline { + display: none; +}