Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spaced repetition does not work on Android #1171

Open
aaronstarky opened this issue Nov 20, 2024 · 1 comment
Open

Spaced repetition does not work on Android #1171

aaronstarky opened this issue Nov 20, 2024 · 1 comment

Comments

@aaronstarky
Copy link

I really love this plugin and would like to be able to do my flashcards on my phone. unfortunately, the UI is too small to be able to be used on phones. Please help!

@MostlyArmless
Copy link
Contributor

MostlyArmless commented Nov 25, 2024

Fortunately we can fix this ourselves with some CSS. Create a file in your vault's .obsidian/snippets/ folder called fix-flashcard-modal.css and paste this in:

.modal#sr-modal {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  margin: 0 !important;
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
}

Then restart Obsidian, go to Obsidian's settings --> Appearance tab, scroll all the way down and turn on the toggle for the CSS file you just added. All the flashcard popup dialogs should now entirely fill the screen.

Edit: I opened a PR to include this CSS in the official plugin, hopefully @st3v3nmw will merge it and re-release soon. In the meantime, use the above workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants