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

Great theme, but it breaks all clickable links and message editing in Discord #225

Open
Arcitec opened this issue Nov 21, 2024 · 2 comments

Comments

@Arcitec
Copy link

Arcitec commented Nov 21, 2024

I absolutely love the look of this theme. Thank you!

However, it breaks Discord. Disabling the theme makes Discord work again.

Here's what breaks:

  • Editing messages. Clicking Edit will randomly throw the scrollbar away to a totally random location on screen, faaaar away from the message you clicked Edit on.
  • Links to messages. If you click a chat message link in a search result or a message containing a link to another message, especially if the message is in another chat channel, then you will almost never end up at the target message. You will end up somewhere else instead.

My Environment:

  • Wayland and X11
  • Vesktop desktop app

I use the following scale in Discord:

image

I have also pressed Ctrl + + 3 times (relative to Ctrl + 0 reset zoom), to zoom in 3 times. That zoom amount is not reflected on the sliders above.

I don't know if the scaling is related to these bugs. But these bugs don't happen when I disable Material Discord while still using the same text scale and UI zoom.

@CapnKitten
Copy link
Owner

The link issue you're experiencing isn't a theme issue, as it's also present on Discord mobile. It's hit or miss when it'll happen.

@Arcitec
Copy link
Author

Arcitec commented Nov 23, 2024

@CapnKitten Unfortunately not. It's the Material Theme that causes it.

Here's a method to 100% reproduce it:

  • Do a search (sidebar).
  • Click the search result to jump to the message.
  • Close the search sidebar.
  • The GUI now scrolls away (loses its position of viewing the message) 100% of the time when using Material Theme, and 0% of the time when using Discord's default theme.

It's something caused by Material Theme. And it affects every message jump action: Jump to search results, jump to other channel, jump to same channel but another message, edit a message, etc.

The normal skin can sometimes glitch too, but it seems like something about the CSS/style changes by Material Theme is really throwing off its calculations and making it 100x worse. Perhaps Material-Theme is setting display: none on some anchor element that they use for scrolling anchors?

Edit: I have disabled Material Theme for me and family member for a week now. No more scrolling issues in Discord since then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants