I’m trying to justify text using a custom css snippet in Obsidian Desktop (Windows) and Mobile (iOS). The following snippet seems to work fine on Windows, but text-align: justify isn’t recognized on iOS at all. text-align: left and text-align: right are working fine on Windows and iOS, it’s just justify that’s causing the issue. It also looks fine on Windows using the console command this.app.emulateMobile(true).
The issue only happens in edit mode, in reading mode both iOS and Windows are looking identical. Does anyone have an idea on how to debug this?
Unfortunately not, both selectors result in the same left-aligned text. To illustrate that the element is actually correctly selected I added a red color to the text.
Can confirm text-align: justify is not working for me in editing views either (iOS, new mobile vault). right and center work fine (as well as red), so the selector is fine.
Something must have changed because it used to work (see screenshots in linked post). Hmm
Thanks for digging into this! Are you able to install the older versions as a supporter (since I see you have TestFlight access)? If so, that might be a temp workaround for me.
You can get early access (desktop and mobile) and support the team with the Catalyst license - Obsidian Help, but as you can see from the screenshots TestFlight builds expire. v1.1.4 (99), where the mobile justify is working, expires in ~10 days, so it would be a very temporary workaround.
Guys, I’ve got JB access and could go back to any version but I do not remember getting any CSS with justified to work on my 15.7.6 iPadOS installs since I first started trying…? I saw others having probs on the forum too.
Thanks for your input! So what I’ll try to do is install the android app since I’ve heard it’s easier to debug the WebView there and see if obsidian adds some weird wrappers around these parts that wreak havoc on the CSS that works otherwise.
A kind user on Discord checked for me using their Android phone, and the text justify is working for them using the above CSS. So, for some reason, it seems an iOS/iPadOS issue at the moment.
There may be nothing to see, but I’m interested to hear if you find anything.
Yeah i confirm, text-align: justify seems not to work on iOs.
I tried to resolve the same bug many times for one of my users in my theme Dune, but didn’t succeed at the end.
Must be a bug in Obsidian and since alignment seems not that important nobody noticed it till now