Jump to content

About HTML/CSS code "Personal-Links" - EmbyServer 4790 (Update)


CarlosLima
Go to solution Solved by Happy2Play,

Recommended Posts

Happy2Play

I will guess you go them working as I see them unless you are testing on a different server.

Looks better but not sure why you have the spaces before and after.

image.png.356c0203ce0d3b9b2164944cd230a9b5.png

Can you pm your home.html.

Link to comment
Share on other sites

CarlosLima

Hi thanks.
I can no longer understand why the code creates this hidden garbage. I use copy/paste with Windows.
Thanks for your help.
I sent the file.

Link to comment
Share on other sites

CarlosLima

Hi,
I believe I didn't understand about the top/bottom spacing but I think we will need it.
Note in the image that the link line has advanced the field of the line above (Home and Favorites), preventing clicking with the mouse on the links.
Maybe it's the 110px that's exaggerated, I'm not sure.

Captura de tela 2022-11-01 213414.jpg

Link to comment
Share on other sites

CarlosLima

In celular phone, links perfects.

On mobile we have two lines of links due to the width of the screen. Would it be possible just the second row of links to go down a little?

Screenshot_20221101-214620-224.png

Edited by CarlosLima
Link to comment
Share on other sites

Happy2Play

@CarlosLima Still looking at skinheader changes as you have overlap.  Will check why I am seein different on my test system.

image.thumb.png.5e098197150dac185f098b3ba512b6a4.png

 

Link to comment
Share on other sites

Happy2Play

@CarlosLima This should correct the issue.

@media not all and (min-width: 100em) {
@supports (height:calc(3.125em + 2 * max(3em,4em))) {
.headerTop-withSectionTabs:not(.skinHeader-tv) {
    height: calc(3.71em + max(1.2em,env(safe-area-inset-top,0)));
}}}

@media not all and (min-width: 100em) {
@supports (height:calc(3.125em + 2 * max(3em,4em))) {
.headerTop-withSectionTabs.headroom-scrolling:not(.skinHeader-tv) {
    height: calc(3.71em + 2 * max(1.2em,env(safe-area-inset-top,0)));
}}}

Along with change this "top: 65px !important;" to something like75px or more.

@media (min-width: 80em) {
	.headerMiddle.sectionTabs.headerMiddle-withSectionTabs {
	  position: absolute;
	  top: 0;
	  bottom: 0;
	  left: 0;
	  right: 0;
	  width: 55%;
	}
	.Personal-Links {
	top: 75px !important;
	}
}

 

  • Thanks 1
Link to comment
Share on other sites

CarlosLima

Should I keep the home.HTML the way you sent it, without changing anything, and add these two CSS?

Link to comment
Share on other sites

Happy2Play
1 minute ago, CarlosLima said:

Should I keep the home.HTML the way you sent it, without changing anything, and add these two CSS?

Yes

But you may have to change the 100em to 120em on both as I am seeing in my tests.

Link to comment
Share on other sites

CarlosLima

Yes, I changed the two CSS from 100em to 120em.
On the pc the vertical/horizontal spacing and the perfect links are now perfect.
On mobile, I think it overlapped the Home and Favorites links line.

Captura de tela 2022-11-01 235500.jpg

Screenshot_20221101-235846-354.png

Edited by CarlosLima
Link to comment
Share on other sites

Happy2Play

@CarlosLima Remove previous code and just do this.

/*Move HeaderTop up*/
@media (min-width: 80em) {
div.headerMiddle.sectionTabs.headerMiddle-withSectionTabs:not(.headerMiddle-tv) {    
    position: absolute;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, 0);
    width: 60%;
   }

div.Personal-Links {
	top: 75px !important;
	}
}

div.headerMiddle.sectionTabs {margin-top: 0;}

 

  • Thanks 1
Link to comment
Share on other sites

CarlosLima

Thanks for your effort.  Before applying this css should i remove the last two css you uploaded or just the last of them?

Link to comment
Share on other sites

Happy2Play
4 minutes ago, CarlosLima said:

Thanks for your effort.  Before applying this css should i remove the last two css you uploaded or just the last of them?

Remove all from this post and replace with above.

https://emby.media/community/index.php?/topic/109775-about-html-code-personal-links-embyserver-4730/&do=findComment&comment=1196951

 

  • Thanks 1
Link to comment
Share on other sites

Happy2Play

You have duplicate code that needs removed.

/* #21ok - Home, Inicio, Favoritos acima - Happy2Play-020722 */
@media (min-width: 80em) {
   .headerMiddle.sectionTabs.headerMiddle-withSectionTabs {
     position: absolute;
     top: 0;
     bottom: 0;
     left: 0;
     right: 0;
     width: 55%;
   }
   .Personal-Links {
   top: 65px !important;
   }
}

 

  • Thanks 1
Link to comment
Share on other sites

CarlosLima

Done.
Now we have this frame.
On mobile, 100% perfect, alignments, spacing and clickable links.
On PC, it is not possible to click on the links.
The top row (Home and Favorites) are right-aligned.

Captura de tela 2022-11-02 092618.jpg

Screenshot_20221102-092007-713.png

Edited by CarlosLima
Link to comment
Share on other sites

CarlosLima
12 minutes ago, Happy2Play said:

Você tem um código duplicado que precisa ser removido.

 

Removed.
Sorry for that glitch, I totally forgot.

Link to comment
Share on other sites

Happy2Play
7 minutes ago, CarlosLima said:

On mobile, 100% perfect, alignments, spacing and clickable links.
On PC, it is not possible to click on the links.

Will keep looking as getting one working breaks the other.

Link to comment
Share on other sites

CarlosLima

I removed the duplicate code and the line was correct in the center.
Understood. Thanks

Link to comment
Share on other sites

Happy2Play

@CarlosLima Alright how about adding this.

@media (min-width: 80em) {
    div.headerTop-withSectionTabs:not(.skinHeader-tv), div.headerTop-withSectionTabs.headroom-scrolling:not(.skinHeader-tv) {
        height: calc(3.71em + max(1.2em,env(safe-area-inset-top,0)));
}}

 

Edited by Happy2Play
added scroller
Link to comment
Share on other sites

CarlosLima
/*Move HeaderTop up*/
@media (min-width: 80em) {
div.headerMiddle.sectionTabs.headerMiddle-withSectionTabs:not(.headerMiddle-tv) {    
    position: absolute;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, 0);
    width: 60%;
   }

div.Personal-Links {
	top: 75px !important;
	}
}

div.headerMiddle.sectionTabs {margin-top: 0;}

@media (min-width: 100em) {
div.headerTop-withSectionTabs:not(.skinHeader-tv) {
    height: calc(3.71em + max(1.2em,env(safe-area-inset-top,0)));
}}

If I understand correctly, should I add these lines as a complement and so the code will look like this?

Link to comment
Share on other sites

CarlosLima

I believe the add-on has widened the height of the top bar.
I use transparency in the top bar, image1, and when you go up the screen you can see the height of the top bar, which overlaps the links, which were hidden, imagem2.
I'm not sure, but I believe that's it.

topbarA.png

topbarB.png

topbarC.png

Edited by CarlosLima
Link to comment
Share on other sites

Happy2Play
16 minutes ago, CarlosLima said:

I believe the add-on has widened the height of the top bar.
I use transparency in the top bar, image1, and when you go up the screen you can see the height of the top bar, which overlaps the links, which were hidden, imagem2.
I'm not sure, but I believe that's it.

topbarA.png

topbarB.png

Did you do the change above to include scrolling?

https://emby.media/community/index.php?/topic/109775-about-html-code-personal-links-embyserver-4730/&do=findComment&comment=1197047

 

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...