Skip to content

Commit

Permalink
fix: tooltip direction (#600)
Browse files Browse the repository at this point in the history
Co-authored-by: Vinzent <vinzent03@proton.me>
  • Loading branch information
tamiroh and Vinzent03 committed Sep 11, 2023
1 parent f20e785 commit a913303
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/statusBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export class StatusBar {
private readonly plugin: ObsidianGit
) {
this.statusBarEl.setAttribute("aria-label-position", "top");
this.statusBarEl.setAttribute("data-tooltip-position", "top");

addEventListener("git-refresh", this.refreshCommitTimestamp.bind(this));
}
Expand Down
1 change: 1 addition & 0 deletions src/ui/history/components/logComponent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
class="tree-item-inner nav-folder-title-content"
aria-label={log.message}
aria-label-position={side}
data-tooltip-position={side}
>
{log.message}
</div>
Expand Down
1 change: 1 addition & 0 deletions src/ui/history/components/logFileComponent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
diff.vault_path && view.plugin.lastDiffViewState?.hash}
data-path={diff.vault_path}
aria-label-position={side}
data-tooltip-position={side}
aria-label={diff.vault_path}
>
<div class="tree-item-inner nav-file-title-content">
Expand Down
1 change: 1 addition & 0 deletions src/ui/history/components/logTreeComponent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<div
class="tree-item-self is-clickable nav-folder-title"
aria-label-position={side}
data-tooltip-position={side}
aria-label={entity.vaultPath}
on:click={() => fold(entity)}
>
Expand Down
1 change: 1 addition & 0 deletions src/ui/sourceControl/components/fileComponent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
!view.plugin.lastDiffViewState?.staged}
data-path={change.vault_path}
aria-label-position={side}
data-tooltip-position={side}
aria-label={change.vault_path}
>
<!-- <div
Expand Down
1 change: 1 addition & 0 deletions src/ui/sourceControl/components/pulledFileComponent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
class="tree-item-self is-clickable nav-file-title"
data-path={change.vault_path}
aria-label-position={side}
data-tooltip-position={side}
aria-label={change.vault_path}
>
<div class="tree-item-inner nav-file-title-content">
Expand Down
1 change: 1 addition & 0 deletions src/ui/sourceControl/components/stagedFileComponent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
view.plugin.lastDiffViewState?.staged}
data-path={change.vault_path}
aria-label-position={side}
data-tooltip-position={side}
aria-label={change.vault_path}
>
<div class="tree-item-inner nav-file-title-content">
Expand Down
1 change: 1 addition & 0 deletions src/ui/sourceControl/components/treeComponent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
<div
class="tree-item-self is-clickable nav-folder-title"
aria-label-position={side}
data-tooltip-position={side}
aria-label={entity.vaultPath}
>
<div
Expand Down

0 comments on commit a913303

Please sign in to comment.