Jump to content

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


Go to solution Solved by Happy2Play,

Recommended Posts

Happy2Play
Posted

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.

Posted

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.

Posted

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

Posted (edited)

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
Happy2Play
Posted

@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

 

Happy2Play
Posted

@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;
	}
}

 

Posted

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

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

Posted (edited)

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
Happy2Play
Posted

@CarlosLima Yep was just looking at that to see if can fix it.

Happy2Play
Posted

@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;}

 

Posted

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

Posted

I understand perfectly, I will remove both. Thanks.

Happy2Play
Posted

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;
   }
}

 

Posted (edited)

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
Posted
12 minutes ago, Happy2Play said:

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

 

Removed.
Sorry for that glitch, I totally forgot.

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

Posted

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

Happy2Play
Posted (edited)

@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
Posted
/*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?

Happy2Play
Posted

@CarlosLima Correct, but made minor changes above to min-width and added scroller.

Posted (edited)

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
Happy2Play
Posted
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

 

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