User Custom CSS that is shared across clients #7666
DallinKooyman
started this conversation in
Ideas
Replies: 1 comment
-
|
#7668 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Fider Link: https://features.jellyfin.org/posts/3803/save-custom-css-to-the-user
Problem
As a user I want the CSS to be consistent on all devices so that I can have a consistent experience on all my clients (Web browsers, Phone Apps, TVs, etc).
Details
Right now, if I add custom CSS for a user on my web browser, that CSS is only applied to that web browser. If I want that same custom CSS on a different web browser or app, I have to manually add it to each of my clients. When I want to make a tweak, I have to update each client's Custom CSS which can be tedious (especially on TVs).
Notes
This is not the same as server custom CSS. This CSS would be for the user. User A uses a black themed custom CSS where User wants a blue themed custom CSS.
I would love to implement this feature and have already started making code changes but understand if this doesn't fit the design of the project
Solutions
1. Custom CSS is saved to Custom Display Preferences (Recommended)
In the UserSettings the customCss function can be saved to a new userSetting attribute
userCustomCSSthatpasses in true in order to save the custom CSS to the server for that user (see the set function). Having a new field to save to allows users to choose which clients this custom css is used on. There will be a new button under the Custom CSS that will save the custom CSS to the user. Then the use just needs to click the "Enable User Custom CSS" button enable the user custom css.
(excuse the typos)


(I am also open to changing the wording of any strings to be more accurate or more clear)
Some quick testing shows that this works as a solution. I tested by building my changes locally and running the server. The custom css was added and applied to another web browser and my LG TV.
if useUserCustomCSS is a boolean indicating if I want to use the custom CSS saved to the user:
Pros:
Cons:
2. Custom CSS is saved to the User Settings
Since these are user specific changes, the Custom CSS would be saved to the User entry in the Server SQLite DB. This would enforce the user aspect of the feature. That would also require the SQLite DB to be updated to have a column call "User Custom CSS" via a migration.
This solution is essentially the same as solution 1 but saved in a different spot. I feel that this is the incorrect spot as most display settings are saved here.
Again users could toggle this feature on a per client bias (see solution 1, paragraph 2)
Pros:
Cons:
Questions
From me:
Beta Was this translation helpful? Give feedback.
All reactions