diff --git a/client/web/src/components/widgets/ShelfItem.vue b/client/web/src/components/widgets/ShelfItem.vue index 670adb27..29595633 100644 --- a/client/web/src/components/widgets/ShelfItem.vue +++ b/client/web/src/components/widgets/ShelfItem.vue @@ -17,6 +17,10 @@ background: var(--color-accent); } + .icon-button { + background: unset; + } + svg { width: 24px; height: 24px; diff --git a/client/web/src/components/workspace/Panel.vue b/client/web/src/components/workspace/Panel.vue index 5b59705a..237b46bb 100644 --- a/client/web/src/components/workspace/Panel.vue +++ b/client/web/src/components/workspace/Panel.vue @@ -158,10 +158,14 @@ export default defineComponent({ }, methods: { async handleTabClick(tabIndex: number) { + if (this.panelType !== "Document") return; + const { select_document } = await wasm; select_document(tabIndex); }, async closeTab(tabIndex: number) { + if (this.panelType !== "Document") return; + const { close_document } = await wasm; // eslint-disable-next-line no-alert const result = window.confirm("Closing this document will permanently discard all work. Continue?");