Полезная информация

Общайтесь со знакомыми и друзьями в нашей группе в Контакте.

№113-02-2025 21:19:13

BzzzFun
Участник
 
Группа: Members
Зарегистрирован: 13-02-2025
Сообщений: 2
UA: Firefox 135.0

Панель вкладок вверху браузера

Можно ли изменить панель вкладок вверху браузера так, чтобы не перелистывать влево-вправо список вкладок. Чтобы они сжимались визуально, чтобы было, как, например, в опере

Отсутствует

 

№214-02-2025 11:23:30

SeVlad
Участник
 
Группа: Members
Зарегистрирован: 03-12-2008
Сообщений: 143
UA: Firefox 134.0

Re: Панель вкладок вверху браузера

Можно изменить с пом.  userChrome.css в корне профиля.
Мой userChrome.css делает  вкладки в несколько строк:

Выделить код

Код:

/* Вкладки в несколько строк
 С 69+ требуется переключить настройку toolkit.legacyUserProfileCustomizations.stylesheets в true. 
 
Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/multi-row_tabs.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */

/* Makes tabs to appear on multiple lines */
/* Tab reordering will not work and can't be made to work */
/* You can use multi-row_tabs_window_control_patch.css to move window controls to nav-bar*/

/* You might want to move tabs-new-tab-button outside tabs toolbar for smoother behavior */

/* Change the --multirow-n-rows to change maximum number of rows before the rows will start to scroll  */

:root{
    --multirow-n-rows: 3; /*максимальное количество видимых строк 
    --multirow-tab-min-width: 100px; /* максимальная ширина вкладки
    --multirow-tab-dynamic-width: 1; /* Change to 0 for fixed-width tabs using the above width. */
}

/* Scrollbar can't be clicked but the rows can be scrolled with mouse wheel */
/* Uncomment the next line if you want to be able to use the scrollbar with mouse clicks */

/* #tabbrowser-arrowscrollbox{ -moz-window-dragging: no-drag } */

/* Uncommenting the above makes you unable to drag the window from empty space in the tab strip but normal draggable spaces will continue to work */

#tabbrowser-tabs{
  min-height: unset !important;
  padding-inline-start: 0px !important
}

@-moz-document url(chrome://browser/content/browser.xhtml){
  #scrollbutton-up~spacer,
  #scrollbutton-up,
  #scrollbutton-down{ display: var(--scrollbutton-display-model,initial) }

  scrollbox[part][orient="horizontal"]{
    display: flex;
    flex-wrap: wrap;
    overflow-y: auto;
    max-height: calc(var(--tab-min-height) * var(--multirow-n-rows));
    scrollbar-color: currentColor transparent;
    scrollbar-width: thin;
  }
}

.scrollbox-clip[orient="horizontal"],
#tabbrowser-arrowscrollbox{
  overflow: -moz-hidden-unscrollable;
  display: block;
  --scrollbutton-display-model: none;
}

.tabbrowser-tab{ height: var(--tab-min-height); }

#tabbrowser-tabs .tabbrowser-tab[pinned]{
  position: static !important;
  margin-inline-start: 0px !important;
}

.tabbrowser-tab[fadein]:not([pinned]){
  min-width: var(--multirow-tab-min-width) !important;
  flex-grow: var(--multirow-tab-dynamic-width);
  /*
  Uncomment to enable full-width tabs, also makes tab dragging a tiny bit more sensible
  Don't set to none or you'll see errors in console when closing tabs
  */
  /*max-width: 100vw !important;*/
}

.tabbrowser-tab > stack{ width: 100%; height: 100% }

#alltabs-button,
:root:not([customizing]) #TabsToolbar #new-tab-button,
#tabbrowser-arrowscrollbox > spacer,
.tabbrowser-tab::after{ display: none !important }

/**/

Отсутствует

 

№314-02-2025 14:51:05

_zt
Участник
 
Группа: Members
Зарегистрирован: 10-11-2014
Сообщений: 1681
UA: Firefox 128.0

Re: Панель вкладок вверху браузера

BzzzFun

Выделить код

Код:

#tabbrowser-tabs {
    --tab-min-width: 20px !important;
}

82 вкладки на FullHD, до появления скролла. Хватит? :)
   
Добавлено 14-02-2025 14:55:59
Даже больше, так как у меня еще и кнопки в заголовке. При 30px будет 55-60 вкладок.

Отредактировано _zt (14-02-2025 14:56:10)

Отсутствует

 

№414-02-2025 22:15:43

BzzzFun
Участник
 
Группа: Members
Зарегистрирован: 13-02-2025
Сообщений: 2
UA: Firefox 135.0

Re: Панель вкладок вверху браузера

_zt пишет

BzzzFun

Выделить код

Код:

#tabbrowser-tabs {
    --tab-min-width: 20px !important;
}

82 вкладки на FullHD, до появления скролла. Хватит? :)
   
Добавлено 14-02-2025 14:55:59
Даже больше, так как у меня еще и кнопки в заголовке. При 30px будет 55-60 вкладок.

Большое спасибо!

Добавлено 14-02-2025 22:16:07

SeVlad пишет

Можно изменить с пом.  userChrome.css в корне профиля.
Мой userChrome.css делает  вкладки в несколько строк:

Выделить код

Код:

/* Вкладки в несколько строк
 С 69+ требуется переключить настройку toolkit.legacyUserProfileCustomizations.stylesheets в true. 
 
Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/multi-row_tabs.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */

/* Makes tabs to appear on multiple lines */
/* Tab reordering will not work and can't be made to work */
/* You can use multi-row_tabs_window_control_patch.css to move window controls to nav-bar*/

/* You might want to move tabs-new-tab-button outside tabs toolbar for smoother behavior */

/* Change the --multirow-n-rows to change maximum number of rows before the rows will start to scroll  */

:root{
    --multirow-n-rows: 3; /*максимальное количество видимых строк 
    --multirow-tab-min-width: 100px; /* максимальная ширина вкладки
    --multirow-tab-dynamic-width: 1; /* Change to 0 for fixed-width tabs using the above width. */
}

/* Scrollbar can't be clicked but the rows can be scrolled with mouse wheel */
/* Uncomment the next line if you want to be able to use the scrollbar with mouse clicks */

/* #tabbrowser-arrowscrollbox{ -moz-window-dragging: no-drag } */

/* Uncommenting the above makes you unable to drag the window from empty space in the tab strip but normal draggable spaces will continue to work */

#tabbrowser-tabs{
  min-height: unset !important;
  padding-inline-start: 0px !important
}

@-moz-document url(chrome://browser/content/browser.xhtml){
  #scrollbutton-up~spacer,
  #scrollbutton-up,
  #scrollbutton-down{ display: var(--scrollbutton-display-model,initial) }

  scrollbox[part][orient="horizontal"]{
    display: flex;
    flex-wrap: wrap;
    overflow-y: auto;
    max-height: calc(var(--tab-min-height) * var(--multirow-n-rows));
    scrollbar-color: currentColor transparent;
    scrollbar-width: thin;
  }
}

.scrollbox-clip[orient="horizontal"],
#tabbrowser-arrowscrollbox{
  overflow: -moz-hidden-unscrollable;
  display: block;
  --scrollbutton-display-model: none;
}

.tabbrowser-tab{ height: var(--tab-min-height); }

#tabbrowser-tabs .tabbrowser-tab[pinned]{
  position: static !important;
  margin-inline-start: 0px !important;
}

.tabbrowser-tab[fadein]:not([pinned]){
  min-width: var(--multirow-tab-min-width) !important;
  flex-grow: var(--multirow-tab-dynamic-width);
  /*
  Uncomment to enable full-width tabs, also makes tab dragging a tiny bit more sensible
  Don't set to none or you'll see errors in console when closing tabs
  */
  /*max-width: 100vw !important;*/
}

.tabbrowser-tab > stack{ width: 100%; height: 100% }

#alltabs-button,
:root:not([customizing]) #TabsToolbar #new-tab-button,
#tabbrowser-arrowscrollbox > spacer,
.tabbrowser-tab::after{ display: none !important }

/**/

Большое спасибо!

Отредактировано BzzzFun (14-02-2025 22:16:07)

Отсутствует

 

Board footer

Powered by PunBB
Modified by Mozilla Russia
Copyright © 2004–2020 Mozilla Russia GitHub mark
Язык отображения форума: [Русский] [English]