Hi. I’ve been experimenting with MrOtherGuy’s vertical tabs script. I found that the tab bar could be moved to the right side of the window with just two simple changes:

change line 19 from: margin-left: var(--uc-vertical-tabs-width); to margin-right: var(--uc-vertical-tabs-width);
and

change line 31 from: left: 0; to right: 0;
Works for me.

  • MrOtherGuyM
    link
    fedilink
    arrow-up
    2
    ·
    3 years ago

    Indeed. Would make sense to have a pref to toggle that. And what do you know, now there is! Thanks for the idea :)

    • mrqwerky@fedia.ioOP
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      Line 39: @media (-moz-bool-pref: “userchrome.vertical-tabs.on-right.enabled”){
      This line doesn’t work for me, even though I have set that preference. If I comment out this line (and its closing brace), then the code block does work correctly–it just doesn’t recognize the preference. Could it be because I’m testing on FF 115 ESR?

      In multi-row_tabs_below_content.css (a commit from June) this line:
      Line 239: @supports -moz-bool-pref(“userchrome.multirowtabs.static-menubar.enabled”){
      and its code block do work correctly for me.

      Back to vertical_tabs.css, I tried using @supports instead of @media, and that did work.

      • MrOtherGuyM
        link
        fedilink
        arrow-up
        2
        ·
        3 years ago

        -moz-bool-pref used a as media query requires Firefox 120. It should work totally fine in ESR 115 if you make it a @supports query instead.

        • mrqwerky@fedia.ioOP
          link
          fedilink
          arrow-up
          1
          ·
          3 years ago

          It does. Is there a way to query a preference to determine whether it is 0, 1, 2, 3 etc.?

          • MrOtherGuyM
            link
            fedilink
            arrow-up
            1
            ·
            3 years ago

            No. I know it would be super useful for some things, but there is no such thing.

            • mrqwerky@fedia.ioOP
              link
              fedilink
              arrow-up
              1
              ·
              3 years ago

              That’s what I suspected. Is it just possible that a boolean preference can be tested to be true or tested to be false?

              • MrOtherGuyM
                link
                fedilink
                arrow-up
                1
                ·
                3 years ago

                Well, boolean cannot have any other values except for true and false - it wouldn’t be a boolean if it did. Although there’s sort of a third option as “pref doesn’t exist” but the false category includes that.

                • mrqwerky@fedia.ioOP
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  3 years ago

                  So, a @supports can query whether a preference is true. Can it also query whether a preference is false (or doesn’t exist)? So, could we have a block that executes only when a preference is false (or doesn’t exist)?