Skip to content

Commit

Permalink
chore: fixing issues found during Obsidian review
Browse files Browse the repository at this point in the history
  • Loading branch information
kulak-at committed Aug 1, 2024
1 parent 854ef00 commit 1e49c16
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
4 changes: 2 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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';
Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1e49c16

Please # to comment.