obsidian-dictionary
obsidian-dictionary copied to clipboard
[Bug]: Dictionary view pane does not work on mobile
Describe the bug
The pane won't show anything except the input box, see the screenshot below,
If one emulates the mobile mode on a PC, contents and buttons are there but the page is misaligned,
Relevant errors (if available)
No response
Steps to reproduce
On a mobile:
- Open the command palette;
- Open the dictionary view;
- Type a word and hit Enter.
On a PC:
- Open the Obsidian Developer Console by pressing Ctrl + Shift + I;
- Execute
app.emulateMobile(true)
in the console; - Open the command palette;
- Open the dictionary view;
- Type a word and hit Enter.
Expected Behavior
Addition context
No response
Language
No response
API Name
No response
Operating system
Android
I figured it out on my own, see #64.
Besides, for those who want a better layout on mobile, you may use the following css snippet,
div[data-type="dictionary-view"] .results .container {
max-width: none !important;
}
div[data-type="dictionary-view"] h3 {
font-size: 1.25rem;
line-height: 1.2rem;
margin: 0.3rem;
}
I will take a look at the styling for mobile when I have the time soon.