Jump to content

CSS changes after 4.8.1


Alexwerilles
Go to solution Solved by Happy2Play,

Recommended Posts

Alexwerilles

after the update (4.8.1) some css adjustments no longer work. How do I hide "Display" and "Home Screen" in settings?

image.png.c57250f432e81b1183cd538e3d4c3aba.png

 

Also, how can I hide the emby version that is below "App settings"?

image.png.cdd513b1b229f3d8cc9669daa0b8b24f.png

 

And also how do I hide "Emby Web" and Keyboard and Remote" also in settings?

image.png.838dc1a2cf04b9de3124ef78190bcd46.png

Link to comment
Share on other sites

Happy2Play

 

2 hours ago, Alexwerilles said:

after the update (4.8.1) some css adjustments no longer work. How do I hide "Display" and "Home Screen" in settings?

image.png.c57250f432e81b1183cd538e3d4c3aba.png

Something like this

div.view-settings-settings [title="Display"], div.view-settings-settings [title="Home Screen"] {display: none;}

 

2 hours ago, Alexwerilles said:

Also, how can I hide the emby version that is below "App settings"?

image.png.cdd513b1b229f3d8cc9669daa0b8b24f.png

Something like this

div.dialogContainer div.listItemBody-2-lines div.listItemBodyText-secondary {display: none;}

 

2 hours ago, Alexwerilles said:

And also how do I hide "Emby Web" and Keyboard and Remote" also in settings?

image.png.838dc1a2cf04b9de3124ef78190bcd46.png

Something like this

div.view-settings-settings div.dynamicRoutes h3:nth-child(3), div.view-settings-settings div.dynamicRoutes div:nth-child(4) {display: none;}

and for footer version number

div.view-settings-settings div.settingsContentContainer p.appInfo {display: none;}

 

As for navdrawer that is another story as there could be two open navdrawers now.

 

Link to comment
Share on other sites

Alexwerilles
26 minutes ago, Happy2Play said:

 

Something like this

div.view-settings-settings [title="Display"], div.view-settings-settings [title="Home Screen"] {display: none;}

 

Something like this

div.dialogContainer div.listItemBody-2-lines div.listItemBodyText-secondary {display: none;}

 

Something like this

div.view-settings-settings div.dynamicRoutes h3:nth-child(3), div.view-settings-settings div.dynamicRoutes div:nth-child(4) {display: none;}

and for footer version number

div.view-settings-settings div.settingsContentContainer p.appInfo {display: none;}

 

As for navdrawer that is another story as there could be two open navdrawers now.

 

 

So it is no longer possible to remove these options from the drawer?

 

image.png.51b89a79c81fbeda37bf8116ab59139d.png

Link to comment
Share on other sites

Happy2Play
3 minutes ago, Alexwerilles said:

 

So it is no longer possible to remove these options from the drawer?

 

image.png.51b89a79c81fbeda37bf8116ab59139d.png

Sort of as both drawers will share code.

div.mainDrawer [title="Display"], div.mainDrawer [title="Home Screen"], div.mainDrawer [title="Emby Web"], div.mainDrawer [title="Keyboard and Remote"] {display: none;}

Issue will leave the collaspe container for Emby Web.  And if using child element will remove something different from other drawer.

Link to comment
Share on other sites

  • Solution
Happy2Play

So yes in theory you could just do this but do not know of all the areas used.

[title="Display"], [title="Home Screen"], [title="Emby Web"], [title="Keyboard and Remote"] {display: none;}

 

Link to comment
Share on other sites

  • 2 months later...
Alexwerilles

How can I put links in the home page again after version 4.8.1? @Happy2Play

thanks again for the help

links.png

Edited by Alexwerilles
Link to comment
Share on other sites

Happy2Play
2 hours ago, Alexwerilles said:

How can I put links in the home page again after version 4.8.1? @Happy2Play

thanks again for the help

links.png

Same way as before.  How did you do it previously?

Link to comment
Share on other sites

Alexwerilles
38 minutes ago, Happy2Play said:

Same way as before.  How did you do it previously?

the links were like this before

image.png

 

Link to comment
Share on other sites

Happy2Play
5 minutes ago, Alexwerilles said:

the links were like this before

image.png

 

And did you add you code to the home.html or replace the home.html?

As I don't see and issue using the existing code on current home.html

image.thumb.png.8d7f416aead7103236045751a948b074.png

Link to comment
Share on other sites

Alexwerilles
37 minutes ago, Happy2Play said:

And did you add you code to the home.html or replace the home.html?

As I don't see and issue using the existing code on current home.html

image.thumb.png.8d7f416aead7103236045751a948b074.png

so when I replace it with the old home.html it breaks the home page. I already tried to put the links in the new home.html but the links are buggy, instead of being on top they are on the library side

 

 

Edited by Alexwerilles
Link to comment
Share on other sites

Alexwerilles
6 minutes ago, Happy2Play said:

And did you add you code to the home.html or replace the home.html?

As I don't see and issue using the existing code on current home.html

image.thumb.png.8d7f416aead7103236045751a948b074.png

I hadn't seen this post, I'll see it now. thanks

Link to comment
Share on other sites

Happy2Play

yes the other topic talks about the required "flex-direction-column" change.  Shown in linked post or a couple posts down.

Link to comment
Share on other sites

Alexwerilles
24 minutes ago, Happy2Play said:

yes the other topic talks about the required "flex-direction-column" change.  Shown in linked post or a couple posts down.

 

following the step in the mentioned post, there is a huge space between "home/favorites', links and library

 

image.png.6c7438edd9181f1bcd4062615c38ee97.png

Link to comment
Share on other sites

Alexwerilles

home.html

 

<div class="view flex flex-direction-column withTabs">

    <div class="tabContent tabContent-positioned flex flex-grow" data-index="0">

        <div is="emby-scroller" data-horizontal="false" data-centerfocus="true" data-navcommands="card" data-forcescrollbar="true" class="scrollFrameY flex flex-direction-column flex-grow focuscontainer-down" data-bindheader="true">
        
    <div class="Personal-Links" style="top:120px;text-align:center;position:relative;">
            
                <a is="emby-linkbutton" class="button-link" href="hlink" target="_blank" style="text-decoration: none;color: #D3D3D3;margin: 0 .7em;">text</a>&emsp;
                <a is="emby-linkbutton" class="button-link" href="link" target="_blank" style="text-decoration: none;color: #D3D3D3;margin: 0 .7em;">text</a>&emsp;
                <a is="emby-linkbutton" class="button-link" href="link" target="_blank" style="text-decoration: none;color: #D3D3D3;margin: 0 .7em;">text</a>&emsp;
                <a is="emby-linkbutton" class="button-link" href="link" target="_blank" style="text-decoration: none;color: #D3D3D3;margin: 0 .7em;">text</a>&emsp;    
            <pre>
            
            </pre>

    </div>

            <div class="scrollSlider flex-grow padded-top-page">
                <div class="sections"></div>
                <div class="padded-bottom-page"></div>
            </div>
        </div>

    </div>
    <div class="tabContent flex flex-grow" data-index="1">
        <div is="emby-scroller" data-horizontal="false" data-centerfocus="true" data-navcommands="card" data-forcescrollbar="true" class="scrollFrameY flex flex-grow focuscontainer-down" data-bindheader="true">

            <div class="scrollSlider flex-grow padded-top-page">
                <div class="sections"></div>
                <div class="padded-bottom-page"></div>
            </div>
        </div>
    </div>

    <div class="tabContent flex flex-direction-column flex-grow" data-index="2">

    </div>

</div>

Link to comment
Share on other sites

Happy2Play
4 minutes ago, Alexwerilles said:

 

following the step in the mentioned post, there is a huge space between "home/favorites', links and library

 

image.png.6c7438edd9181f1bcd4062615c38ee97.png

Okay but what exactly are you usings as code in that topic will cause that.

Appears we posted at the same time give me a minute.

Edited by Happy2Play
update
Link to comment
Share on other sites

Happy2Play

Easiest method would be adjust the "top:120px" as all the styling is done with the added code.

Link to comment
Share on other sites

Alexwerilles
15 minutes ago, Happy2Play said:

Easiest method would be adjust the "top:120px" as all the styling is done with the added code.

This reduces the space between home/favorites and the links but does not reduce the space between the links and library

 

 

Edited by Alexwerilles
Link to comment
Share on other sites

Happy2Play
1 minute ago, Alexwerilles said:

This reduces the space between home/favorites and the links but does not reduce the space between the links and library

 

image.png.e1f540e558bb6f47a8dfb9121b2ca436.png

As mentioned in the other topic that is spacing caused by the <pre> code.  Removing it should correct the issue.

Link to comment
Share on other sites

Alexwerilles

Now that I saw it, on the cell phone it looks like this

 

image.png.6f3206f3202e1642225718ad8b2d588e.png

Edited by Alexwerilles
Link to comment
Share on other sites

Happy2Play
15 minutes ago, Alexwerilles said:

Now that I saw it, on the cell phone it looks like this

 

image.png.6f3206f3202e1642225718ad8b2d588e.png

and per the other topic?  as it talks about that also.

 

Link to comment
Share on other sites

Happy2Play

Also note if you are copy and pasting you may be getting garbage encoding per the other topic also.

example 

UTF-8 shows this

image.thumb.png.16701919546adc487f22f38cbd2f78dd.png

while ANSI shows this garbage

image.thumb.png.b87e51e053564eb13a25dcc907b19a71.png

So all these characters actually create spacing issue.

image.thumb.png.73667dfcdfc7c3fd53644e583599dbbb.png

vs removed garbage characters

image.thumb.png.9429bd0e2bb56e573073e63c4aac45e6.png

Link to comment
Share on other sites

Alexwerilles

In this case, instead of copying from the other thread, I just tweaked it and added the "personal link" to the home.html of the current version of Emby (4.8.6). There was "&emsp" at the end of each link, it looked like this, as I said above:

<a is="emby-linkbutton" class="button-link" href="hlink" target="_blank" style="text-decoration: none;color: #D3D3D3;margin: 0 .7em;">text</a>&emsp;

And then it looked like this:

<a is="emby-linkbutton" class="button-link" href="link" target="_blank" style="text-decoration: none;color: #D3D3D3;margin: 0 .7em;">text</a>;

However, even with this change, there is still garbage.

 

 

Link to comment
Share on other sites

Alexwerilles

And in fact, it shows that much garbage

image.png.70ce1912e9b5ae8477c33e96fe4352ea.png

 

 

I just don't know how to delete this junk via CSS

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...