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

Cut titles in WebCord #14

Open
ejiektpobehuk opened this issue Sep 7, 2024 · 3 comments
Open

Cut titles in WebCord #14

ejiektpobehuk opened this issue Sep 7, 2024 · 3 comments

Comments

@ejiektpobehuk
Copy link

Thanks a lot for this gorgeous theme 😍
It rocks!

Unfortunately I can't experience is full glory because it has some problems rendering in WebCord.
From the looks of things it's not a supported client, but I hope someone might have a better idea of fixing it than I do.

Some titles look just fine while others are cut.

Section Image
Activity image
Friends image
Channel image
DMs image
Servers image
Section Image
user image
server image
messages image
input image
members image

I suspected broken @input support but WebCord claims to have it fixed. Files with inputs populated by hand behave the same, so it's unlikely to be the reason.
Custom theme support in WebCord is still experimental though.

I've got it working by running webcord --add-css-theme in terminal and selecting a *.theme.css. file. Disabled a theme by deleting it from {userData}]/WebCord/Themes which is in ~/.config for my linux system.

Testes with gruvbox and spotify-text.


ps. #11 mentions doubled left border of activities. This issue is also present here.

@ejiektpobehuk
Copy link
Author

Found one other interesting thing. Input field.

For ReadOnly channels it looks almost OK except for the right margin:
image

Writable one does something funky:
image

@refact0r
Copy link
Owner

refact0r commented Sep 7, 2024

the cut off titles look like issues with overflow: hidden set on parent element. this might be because webcord has extra layers of html elements or something, idk.

it seems like making the theme work for webcord would require significant additional modification, so i don't intend to support it.

@ejiektpobehuk
Copy link
Author

Thanks for a quick responce!

I suggest leaving an issue open for some time while I tinker with WebCord for a bit. There are two statemetns in Custom Style documentation that give me hope that compatability is not lost =]

WebCord is capable of styling Discord pages – unlike browser extensions like Stylus it does that without injecting any HTML elements to the page, to be more difficult to detect the modifications.

most themes, which does not rely on remote content like images and fonts, should be now mostly functional

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