-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
positioning of built in slide editor wrong #1573
Comments
Thanks for your report. I've noticed this strange behavior before, but I can't reproduce this now. Could you share the data in the local storage (con be found in the "application" panel in Chrome DevTools) when the bug happens? |
Thanks for your information! According to this, I can remember something now. IIRC, this issue is because some UnoCSS classes are missing.😢 |
Actually just replicated it. First, I opened the editor in Safari and it displays wrong. Next, I opened chrome pointing it at the same localhost URL (http://localhost:3030/). Suddenly the Safari editor snapped into place in the background. Perhaps the CodeMirror editor rewrites something on the server side when it connects to chrome? ![]() |
If the UnoCSS class controls the grid layout is not loaded, the editor will be in the wrong place. And after the page is opened in another browser, somehow the UnoCSS class is loaded in the server, and the old page can also receive the class. |
interestingly doesn't appear to be a problem on Arc browser (1.41.0). UPDATE: I was wrong it affects ARC too, oddly intermittently. However I found a reliable fix:
There doesn't appear to be any cookies set by the program so I believe this is resetting local storage. |
I saw this strange behavior happening multiple times later. I can confirm that this is caused by UnoCSS classes slidev/packages/client/pages/play.vue Line 47 in 1142d83
However, I can't reproduce this in a stable way. @antfu, what do you think may cause the class name not to be processed by UnoCSS? |
I was able to fix this in my theme by adding that class to unocss's safelist: https://github.com/gureckis/slidev-theme-neversink/blob/41738acad5cbd4274fbc4cf90c8e498132cf554b/uno.config.ts#L199. perhaps not pretty but works. |
Describe the bug
When opening the slide editor in Safari 17.4.1 (Sonoma 14.41) and also Chrome (124.0.6367.119) the slide editor spacing and alignment is off. When it is in "sidebar mode" it actually appears below the slide.
When it is in "dock to bottom" mode, it doesn't actually go down to the bottom but sort of hang with a lot of white space below.
In the first case it should just go to the right side of the window. In the second case it should probably align to margin-bottom: 0; and either fill all the space or give more room to the slide letter boxing.
To Reproduce
Steps to reproduce the behavior:
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: