1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-08 17:39:59 +02:00

Fixed vertical tabs scrolling and l10n

This commit is contained in:
mauro-balades 2024-09-04 17:47:33 +02:00
parent c2ed555ec3
commit b1d88a1ffb
3 changed files with 13 additions and 12 deletions

View file

@ -6,14 +6,6 @@ CURRENT_DIR=$(pwd)
git config --global init.defaultBranch main git config --global init.defaultBranch main
git config --global fetch.prune true git config --global fetch.prune true
mkdir ~/tools
cd ~/tools
git clone https://github.com/glandium/git-cinnabar.git
cd git-cinnabar
git checkout 0.5.11
export PATH=~/tools/git-cinnabar:$PATH
cd ~
git cinnabar download
cd $CURRENT_DIR cd $CURRENT_DIR
update_language() { update_language() {
@ -25,8 +17,8 @@ update_language() {
rm -rf .git rm -rf .git
git init git init
git remote add upstream hg://hg.mozilla.org/l10n-central/$langId git remote add upstream https://github.com/mozilla-l10n/firefox-l10n/$langId
git remote set-url upstream hg://hg.mozilla.org/l10n-central/$langId git remote set-url upstream https://github.com/mozilla-l10n/firefox-l10n/$langId
git pull upstream branches/default/tip git pull upstream branches/default/tip
cd $CURRENT_DIR cd $CURRENT_DIR

View file

@ -56,8 +56,15 @@ var ZenStartup = {
tabs.style.maxHeight = '0px'; // reset to 0 tabs.style.maxHeight = '0px'; // reset to 0
const toolbarRect = toolbarItems.getBoundingClientRect(); const toolbarRect = toolbarItems.getBoundingClientRect();
// -5 for the controls padding // -5 for the controls padding
tabs.style.maxHeight = toolbarRect.height - 5 + "px"; let totalHeight = toolbarRect.height - 15;
console.info("ZenThemeModifier: set tabs max-height to", toolbarRect.height + "px"); // remove the height from other elements that aren't hidden
const otherElements = document.querySelectorAll("#tabbrowser-tabs > *:not([hidden=\"true\"])");
for (let tab of otherElements) {
if (tabs === tab) continue;
totalHeight -= tab.getBoundingClientRect().height;
}
tabs.style.maxHeight = totalHeight + "px";
console.info("ZenThemeModifier: set tabs max-height to", totalHeight + "px");
}, },
openWatermark() { openWatermark() {

View file

@ -250,6 +250,8 @@
border: none; border: none;
height: 100%; height: 100%;
border-bottom: 0 !important;
padding-inline-start: 0 !important; padding-inline-start: 0 !important;
margin-inline-start: 0 !important; margin-inline-start: 0 !important;