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

Text align/justify mismatch between online and notion-app-enhanced #127

Open
Xirious opened this issue Mar 27, 2024 · 2 comments
Open

Text align/justify mismatch between online and notion-app-enhanced #127

Xirious opened this issue Mar 27, 2024 · 2 comments
Labels
bug Something isn't working right

Comments

@Xirious
Copy link

Xirious commented Mar 27, 2024

Hello all,

I do not know if this intended behaviour or a bug. If it is intended behaviour please point me to where it needs to be fixed/change in the settings to get the same behaviour as the notion website.

A few things I've tried:

  • Install, reinstalled and used the details in Displays a white screen Loading and reports an error [Cannot read properties of undefined (reading 'getHighEntropyValues')] #116 to get the app to run.
  • I've installed via a) sudo apt install, b) using the portable .zip and using the .deb. All produce the same behaviour over multiple reinstalls.
  • Tried replacing all possible "justify" and/or "center align" items with "left" and/or "left align" text pieces in the code and rebuilding but that does not work.
  • Tried adding a CSS snippet to left align items, that did not work (I could be doing this wrong as I'm unfamiliar with it but I followed this [feature] mod block text align: justify notion-enhancer#75.
  • Tried multiple themes, all have the same behaviour (so my conclusion its notion-app-enhanced default behaviour).
  • What helped "somewhat" was logging out completely and then logging back in to notion in notion-app-enhanced. The app would display the notes the same way as online immediately after a log in. However, this only persists until I restart the notion-app-enhanced and then the text is center justified again. See the last few pictures in the screenshots section.

Any help would be appreciated.

What is happening?
Text in the center or side peek mode is center justifying text. This looks particularly bad when the app is snapped to the sides.

What should be happening?
I expect notion-enhancer to reproduce the same output I am seeing on the notion website. That is the text should not be center aligned / justified and should be left aligned and not justified.

Screenshots (if applicable):
Center peek (left is https://notion.so and right is notion-app-enhanced):
image

Side peek (notion-app-enhanced):
image

From notes:

  • Immediately after logging in again to notion (notion-app-enhanced):
    image

  • After restarting the app after logging in again (notion-app-enhanced):
    image

Operating system/browser name & version:

  • Ubuntu 23.10
  • Firefox 124.0 (64-bit)

notion-enhancer and/or notion-repackaged version:

  • notion-enhancer v0.11.0-dev
  • notion-app-enhanced-2.0.18-1
  • Notion 2.38.23.13.0.151

notion-enhancer configuration (enabled/disabled mods and their settings):

  • All mods disabled.
@Xirious Xirious added the bug Something isn't working right label Mar 27, 2024
@dragonwocky
Copy link
Member

Thanks for the detailed report, you can use this CSS snippet to fix this until I can finish the next release (paste it into text file ending in .css and upload it via the tweaks mod):

.notion-page-content {
    --theme--page_preview-padding: 0;
}

@Xirious
Copy link
Author

Xirious commented Mar 27, 2024

Thank you @dragonwocky - that worked perfectly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working right
Projects
None yet
Development

No branches or pull requests

2 participants