Skip to content

Commit

Permalink
refactor: improve mobile experience
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWoelki committed Jul 5, 2024
1 parent 94b8b4c commit 2697852
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Things to do before release:
- [x] Add ribbon icon which opens the recall view
- [x] Add data integration
- [ ] Add settings view for customizing Anki algorithm parameters
- [ ] Test and adapt to mobile experience
- [x] Test and adapt to mobile experience

## Development

Expand Down
9 changes: 2 additions & 7 deletions src/data/json.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import { normalizePath, type Vault } from 'obsidian';
import { join, parse } from 'path';

export class JsonFileManager {
private vault: Vault;
private pluginDir: string;

constructor(vault: Vault, pluginId: string) {
this.vault = vault;
this.pluginDir = normalizePath(join('.obsidian', 'plugins', pluginId));
this.pluginDir = normalizePath(`.obsidian/plugins/${pluginId}`);
}

private getFullPath(relativePath: string): string {
return normalizePath(join(this.pluginDir, relativePath));
return normalizePath(`${this.pluginDir}/${relativePath}`);
}

/**
Expand Down Expand Up @@ -86,8 +85,4 @@ export class JsonFileManager {
await this.vault.createFolder(fullDirPath);
}
}

private extractFileName(filePath: string): string {
return parse(filePath).name;
}
}
5 changes: 5 additions & 0 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@
display: none;
}

.better-recall-review-card__answer-buttons-bar {
flex-wrap: wrap;
justify-content: center;
}

.better-recall-review-card__answer-buttons-bar button {
display: flex;
flex-direction: column;
Expand Down

0 comments on commit 2697852

Please sign in to comment.