From 1e49c167dedd670c86ebefa8e1cd3405e5729666 Mon Sep 17 00:00:00 2001 From: Kacper Kula Date: Thu, 1 Aug 2024 18:27:28 +0100 Subject: [PATCH] chore: fixing issues found during Obsidian review --- README.md | 2 +- main.ts | 4 ++-- manifest.json | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8fa343c..e243e58 100644 --- a/README.md +++ b/README.md @@ -7,5 +7,5 @@ Obsidian Community Plugin to elevate Canvas Node above the rest of the content a To get started simply: 1. Install the plugin 2. Open Canvas and select an element you intend to float -3. Run command: `Canvas Picture in Picture: Float Selected Element` using your command palette `cmd-P` +3. Run command: `Canvas Picture in Picture: Float selected element` using your command palette `cmd-P` 4. The element should start floating in your bottom left corner. You can resize it by hovering on the top or right corner. diff --git a/main.ts b/main.ts index 70d3365..4bbd10a 100644 --- a/main.ts +++ b/main.ts @@ -12,7 +12,7 @@ export default class CanvasFloatPlugin extends Plugin { this.addCommand({ id: 'float-selected-element', - name: 'Float Selected Element', + name: 'Float selected element', checkCallback: (checking: boolean) => { const canvas = this.getActiveCanvas(); if (canvas) { @@ -56,7 +56,7 @@ export default class CanvasFloatPlugin extends Plugin { const newElement = document.createElement('div'); newElement.classList.add('canvas-pip-restore-message'); const message = document.createElement('p'); - message.textContent = 'Element is in Picture-in-Picture mode.'; + message.textContent = 'Element is in picture-in-picture mode.'; const button = document.createElement('button'); button.classList.add('restore-btn'); button.textContent = 'Restore'; diff --git a/manifest.json b/manifest.json index c96d83f..afc9b40 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "id": "canvas-picture-in-picture", "name": "Canvas Picture in Picture", "version": "0.1.0", - "minAppVersion": "0.15.0", - "description": "A plugin to allow putting Canvas nodes in picture-in-picture mode", + "minAppVersion": "1.4.0", + "description": "Enables ability to pin Canvas nodes and float them above the board (Picture-in-Picture mode)", "author": "hypersphere", "authorUrl": "https://hypersphere.blog/", "fundingUrl": "ko-fi.com/hypersphere",