• 11 Posts
  • 18 Comments
Joined 1 year ago
cake
Cake day: October 1st, 2023

help-circle






  • @MrOtherGuy@lemmy.world I’m gonna need your help again, sorry. I used your code to gradient border around selected tab and works fine but I see a little flash in certain situations that makes me nuts; this is the code:

    .tabbrowser-tab[selected] > .tab-stack::before{
        content: "";
        display: flex;
        min-height: inherit;
        border-radius: var(--tab-border-radius);
        grid-area: 1/1;
        margin-block: var(--tab-block-margin);
      /* Edit gradient colors here */
        background: var(--general-color) !important;
        border-radius: 0px 2px 0px 0px !important;
    }
    

    When I click to select the tab, sometimes the tab is first colored with the border color and then it displays correctly, Here is a SS with the problem, there is a way to delay the colored after the tab is completely charged or some trick?



  • ooh, I notice a rare behavior when use this in horizontal tabs, so the issue is that min-max width cause problems, I understand.

    /* Horizontal tab size */
    
    .tabbrowser-tab[fadein]:not([style^="max-width"]) {
        max-width: 200px !important;
    }
    

    in Vertical tabs I noticed that the property of the tab that don’t close has fadein property, I tried this code to delete that empty space, but visually works but in the background the tab is still stuck.

    /* Important! bug fix for tabs that keep space after close them */
        
        .tabbrowser-tab {
            &:not([pinned], [fadein]) {
                visibility: collapse !important;
            }
        }