Full screen + landscape CSS is here! #990
Replies: 3 comments 8 replies
-
After spending another hour on it, I'm happy to present a full screen + landscape mode CSS. .is-phone #sr-modal {
height: 100% !important;
width: 100% !important;
max-width: 100%;
max-height: 100%;
padding-top: 0px;
}
@media only screen and (min-device-width: 480px) and (orientation: landscape) {
.is-phone .sr-flashcard {
flex-direction: row;
}
.is-phone .sr-header {
flex-direction: column;
flex: 0 1 0;
}
.is-phone .sr-content {
flex: 1 0 0;
}
.is-phone .sr-response {
flex-direction: column;
flex: 0 1 0;
}
.is-phone .sr-controls {
flex-direction: column;
}
.is-phone .sr-title {
display: none;
}
.is-phone .sr-response-button {
writing-mode: vertical-lr;
}
} Pretty neat. |
Beta Was this translation helpful? Give feedback.
-
Hi @annappropriate sounds good - I only use Obsidian on the desktop, so I haven't tried this out myself. I'm wondering if you think this should be updated in the code itself? |
Beta Was this translation helpful? Give feedback.
-
Hi @annappropriate Looks great, makes sense. Nice idea moving and rotating the "Show Answer" button in landscape mode to give additional space. I agree, good for all phone users and doesn't warrant the work of implementing a configurable option. @DDPF02 wondering if you have tried the standard plugin settings: This might give you (nearly) what you are after. Cheers |
Beta Was this translation helpful? Give feedback.
-
The gap on top of the screen drives me nuts. I don't have that much screen space to afford fancy gaps 😅
This is the CSS behind it:
obsidian-spaced-repetition/styles.css
Lines 1 to 6 in ca4c261
If you want to get rid of the gap, save and enable this snippet:
No more gap! It's free real estate!
Happy learning 🥰
Beta Was this translation helpful? Give feedback.
All reactions