Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tabs are small #12

Open
Hasan-01 opened this issue Jan 3, 2024 · 4 comments
Open

Tabs are small #12

Hasan-01 opened this issue Jan 3, 2024 · 4 comments

Comments

@Hasan-01
Copy link

Hasan-01 commented Jan 3, 2024

The height of the tabs is a bit shorter, making it difficult to click.

Screenshot 2024-01-03 121440

This can be easily solved by this CSS code:

.tab-strip > span > .tab-position {
    position: relative;
    height: 40px !important;
    width: auto !important;
    left: 50%; /* Position from the left edge */
    transform: translateX(-50%); /* Shift the element back by 50% of its own width */
}

.tab-strip > span > .tab-position > .tab:not(.pinned){
    width: 85px !important;
}

.tab-strip > span > .tab-position > .tab.pinned{
    width: 30px !important;
}

it will look like this,

Screenshot 2024-01-03 131952

@tovifun
Copy link
Owner

tovifun commented Jan 3, 2024

Thanks for sharing the CSS! I'll make sure to fix the tab bar being too tiny in the following updates. Appreciate your input! 🚀

@Hasan-01
Copy link
Author

Hasan-01 commented Jan 3, 2024

Hey Tovi, thanks a ton for this awesome project! I've been searching for something like this for a long time. I'm loving the Arc browser vibes, and I appreciate you taking your time to maintain it ♥️

@Hasan-01 Hasan-01 closed this as completed Jan 3, 2024
@Hasan-01 Hasan-01 reopened this Jan 3, 2024
@kryst4line
Copy link

kryst4line commented Jun 29, 2024

Hi! I tweaked @Hasan-01's css and made it look a bit more similar to Arc (on Windows). There are still a few bugs regarding tab dragging, but this is the idea. No doubt it can be done better, but this is the idea.

image

#tabs-tabbar-container > .separator {
    display: none !important;
}

html {
    --tab-size-multiplier: 1.5
}

#tabs-tabbar-container .tab-strip .tab-position {
    height: calc(var(--Height) * var(--tab-size-multiplier));
    transform: translateX(var(--PositionX)) translateY(calc(var(--PositionY) * var(--tab-size-multiplier)));
    align-items: center;
}

#tabs-tabbar-container .tab-strip .tab-position .tab {
    height: calc(var(--Height) * (var(--tab-size-multiplier) - 0.2));
    max-height: calc(var(--Height) * (var(--tab-size-multiplier) - 0.2));
    justify-content: center;
    font-size: 14px;
    padding: 0.5em 0;
}

#tabs-tabbar-container .tab-strip .tab-position .tab .title {
    padding-left: 8px;
}

#tabs-tabbar-container .tab-strip .tab-position .tab .svg-tab-stack {
    height: calc(var(--Height) * (var(--tab-size-multiplier) - 0.2));
}

#tabs-tabbar-container .tab-strip .tab-position .tab .tab-header {
    flex: 0 0 calc(30px * (var(--tab-size-multiplier) - 0.2));
}

#tabs-tabbar-container .tab-strip .tab-position .tab .tab-header progress {
    bottom: 0px;
    left: 3px;
    --progress-width: calc(var(--Width) - 10px);
}

#tabs-tabbar-container .tab-strip .separator {
    height: calc(var(--Height) * var(--tab-size-multiplier));
    transform: translateX(var(--PositionX)) translateY(calc(var(--PositionY) * var(--tab-size-multiplier)));
    align-items: center;
}

#tabs-tabbar-container .tab-strip .button-toolbar.newtab {
    top: calc(var(--PositionY) * var(--tab-size-multiplier)) !important;
    height: calc(var(--Height) * var(--tab-size-multiplier));
}

@kryst4line
Copy link

kryst4line commented Jul 1, 2024

Updated my code above and made it cleaner. The only bug I found is tab dragging will move the tab more than the mouse input, still have to find how to fix that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants