• Browser
  • Mail
  • News
  • Community
  • About
Register Login
HomeBlogsForumThemesContributeSocial

Vivaldi

  • Browser
  • Mail
  • News
  • Community
  • About

Navigation

    • Home
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. Desktop
    3. Customizations & Extensions
    4. Modifications
    5. Removing new tab button

    Removing new tab button

    Modifications
    3
    18
    569
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      fifonik
      last edited by fifonik

      I'm only opening new tab with gestures or with Ctrl+T so never ever using the new tab button (+) in tabs bar. It is just using some space there and annoy me.

      Previously used this solution to remove the new tab button, but with the latest Vivaldi update it does not work properly any longer (Trash button that I use moved out of screen).

      So I've made some modifications to make it work again with my setup:

      #tabs-container > .resize {margin-right: -35px;}
      #tabs-container > .resize > .sync-and-trash-container {position: relative; left: -35px;}
      .newtab {display: none;}
      

      2858e074-d7ca-4fc6-a257-295e6f2675a1-image.png

      Note: my tabs are displayed in one line without scrolling so I do not know if this solution work with scrolling or with multi-lines tab bar.

      P.S. In Vivaldi 7.0 I'm using -65px instead of -35px

      Granite1
      G
      3 Replies Last reply
      Reply Quote 3
      • Granite1
        G
        Granite1 @fifonik
        last edited by

        @fifonik How can I remove the trash container too?

        Thot
        T
        1 Reply Last reply
        Reply Quote 1
        • Thot
          T
          Thot Supporters Translator Ambassador @Granite1
          last edited by

          @Granite1 said in Removing new tab button:

          How can I remove the trash container too?

          „Settings / Tabs“, Under „Tab Display“ you find a checkmark „Show Trashcan“ that you can uncheck.

          — macOS Sequoia (Version 15.3.2). Always on the latest Snapshot.
          — Q4OS 5.8 Aquarius, Debian Bookworm 12.10, on an older iMac.

          Granite1
          G
          1 Reply Last reply
          Reply Quote 1
          • Granite1
            G
            Granite1 @Thot
            last edited by

            @Thot:

            „Settings / Tabs“, Under „Tab Display“ you find a checkmark „Show Trashcan“ that you can uncheck.

            Thanks! I have been modding all day with css and js, so the simple, straightfoward solution gets overlooked, hah hah.

            Thot
            T
            1 Reply Last reply
            Reply Quote 1
            • Thot
              T
              Thot Supporters Translator Ambassador @Granite1
              last edited by

              @Granite1 said in Removing new tab button:

              Thanks!

              Was a pleasure for me. 🙂

              — macOS Sequoia (Version 15.3.2). Always on the latest Snapshot.
              — Q4OS 5.8 Aquarius, Debian Bookworm 12.10, on an older iMac.

              1 Reply Last reply Reply Quote 1
              • Granite1
                G
                Granite1 @fifonik
                last edited by Granite1

                @fifonik I have my tabs vertically, and when I hover over a tab I get the X to close the tab.

                With your code I don't get the cross anymore.

                Thot
                T
                1 Reply Last reply
                Reply Quote 0
                • Thot
                  T
                  Thot Supporters Translator Ambassador @Granite1
                  last edited by

                  @Granite1 said in Removing new tab button:

                  I have my tabs vertically, and when I hover over a tab I get the X to close the tab.

                  Maybe you have under „Tab Display“ the „Show Close Button“ ticked off. You should tick it on in your case.

                  — macOS Sequoia (Version 15.3.2). Always on the latest Snapshot.
                  — Q4OS 5.8 Aquarius, Debian Bookworm 12.10, on an older iMac.

                  Granite1
                  G
                  1 Reply Last reply
                  Reply Quote 1
                  • Granite1
                    G
                    Granite1 @Thot
                    last edited by Granite1

                    @Thot:

                    Maybe you have under „Tab Display“ the „Show Close Button“ ticked off. You should tick it on in your case.

                    I have always had it on, so there must be something else that is interfering.

                    I am on Linux and wonder if that could make a difference. What OS are you on, if I may ask?

                    Oops, I just noticed you are on macOS. Maybe that makes a difference?

                    Then again, you also use Linux on an older machine? Does the code there leave the cross?

                    Thot
                    T
                    1 Reply Last reply
                    Reply Quote 0
                    • Thot
                      T
                      Thot Supporters Translator Ambassador @Granite1
                      last edited by

                      @Granite1 said in Removing new tab button:

                      you also use Linux on an older machine? Does the code there leave the cross?

                      Yes, with Tabs on the left, Vertical Tabs. On MacOS without Close Button; Vertical Tabs.

                      — macOS Sequoia (Version 15.3.2). Always on the latest Snapshot.
                      — Q4OS 5.8 Aquarius, Debian Bookworm 12.10, on an older iMac.

                      Granite1
                      G
                      2 Replies Last reply
                      Reply Quote 1
                      • Granite1
                        G
                        Granite1 @Thot
                        last edited by

                        @Thot:

                        Yes, with Tabs on the left, Vertical Tabs. On MacOS without Close Button; Vertical Tabs.

                        OK, good to know. I have spent all day today modding Vivaldi, so perhaps 1 of the mods are causing it. I'll try to trace it.

                        Many thanks for your help and useful input.

                        1 Reply Last reply Reply Quote 1
                        • Granite1
                          G
                          Granite1 @Thot
                          last edited by

                          @Thot just a last reply to inform you I found the culprit. It occurred to me, for no good reason because I was busy doing other things, that it might be the theme.

                          It was. I briefly used a different theme and the issue was gone.

                          Cheers, and have a good weekend, what's left of it.

                          Thot
                          T
                          1 Reply Last reply
                          Reply Quote 1
                          • Thot
                            T
                            Thot Supporters Translator Ambassador @Granite1
                            last edited by

                            @Granite1 said in Removing new tab button:

                            Cheers, and have a good weekend, what's left of it.

                            I wish you a nice rest of your weekend too. Good to know that it’s fixed. 🙂

                            — macOS Sequoia (Version 15.3.2). Always on the latest Snapshot.
                            — Q4OS 5.8 Aquarius, Debian Bookworm 12.10, on an older iMac.

                            1 Reply Last reply Reply Quote 0
                            • Granite1
                              G
                              Granite1 @fifonik
                              last edited by

                              @fifonik leaving scrolling aside, if one just wants to get rid of the new tab button, this will suffice: .newtab {display: none;}.

                              F
                              1 Reply Last reply
                              Reply Quote 0
                              • F
                                fifonik @Granite1
                                last edited by

                                @Granite1 I do not know what you meant as 'leaving scrolling aside'.
                                My mod is not touching scrolling, it is removing 'add new tab' button from tab bar with its space. I do not see a reason to remove only the button itself as I believe that having some additional room for tabs is the main purpose of the mod.

                                Granite1
                                G
                                1 Reply Last reply
                                Reply Quote 0
                                • Granite1
                                  G
                                  Granite1 @fifonik
                                  last edited by

                                  @fifonik:

                                  I do not know what you meant as 'leaving scrolling aside'.

                                  You stated:

                                  my tabs are displayed in one line without scrolling so I do not know if this solution work with scrolling or with multi-lines tab bar.

                                  I don't know what scrolling means in your context, but since you mention scrolling I referred to it.

                                  You also stated:

                                  I do not see a reason to remove only the button itself as I believe that having some additional room for tabs is the main purpose of the mod.

                                  What do you mean by "additional room? It is always possible to add a new tab as the button will just be pushed down each time.

                                  F
                                  1 Reply Last reply
                                  Reply Quote 0
                                  • F
                                    fifonik @Granite1
                                    last edited by

                                    @Granite1 There is a picture in my original post. You can see one line of tabs there and no scolling. You can also notice there is no gap between last tab and rubbish bin. It will be a space there if you simply hide the .newtab element.

                                    Granite1
                                    G
                                    1 Reply Last reply
                                    Reply Quote 0
                                    • Granite1
                                      G
                                      Granite1 @fifonik
                                      last edited by

                                      @fifonik :

                                      There is a picture in my original post.

                                      I don't know what you mean by your original post, because this one you refer to above does not have a picture either.

                                      Don't worry, in my mind I can see what you mean.

                                      Your objective to allow create more space to show more tabs seems somewhat overdone: getting rid of the Trash can will only create an extra space for 1 tab, AFAICT.

                                      IMO that is not much of a gain. If I am wrong, please tell me how many extra tabs you will be able to display without having to scroll down.

                                      1 Reply Last reply Reply Quote 0
                                      • F
                                        fifonik
                                        last edited by

                                        You are right. Not much.
                                        But at least something, but when only removing the plus-button there is zero benefits.

                                        1 Reply Last reply Reply Quote 0
                                        Loading More Posts
                                        • Oldest to Newest
                                        • Newest to Oldest
                                        • Most Votes
                                        Reply
                                        • Reply as topic
                                        Log in to reply
                                        • 1 / 1
                                        • First post
                                          Last post

                                        Looks like your connection to Vivaldi Forum was lost, please wait while we try to reconnect.

                                        Copyright © Vivaldi Technologies™ — All rights reserved. Privacy Policy | Code of conduct | Terms of use | Vivaldi Status