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

Close button in minimal mode #3

Open
Damglador opened this issue Oct 2, 2024 · 1 comment
Open

Close button in minimal mode #3

Damglador opened this issue Oct 2, 2024 · 1 comment

Comments

@Damglador
Copy link

Better set "Show close button" to "no", because if it's shown on hover, switching between tabs when sidebar is in minimal mode is very hard.

@Alexcoder5
Copy link
Owner

You can add this code to Sidebery so the close button is smaller when the tab is less than 80px

.Tab .body {
	container-type: inline-size!important;
	container-name: close;
}

@container close (max-width: 80px) {
	#icon_remove, .close .close-icon {
		display: none!important;
	}

	.close {
		width: 12px
	}

	.close:after {
		content: '|';
		position: relative;
		top: 5px;
		left: 4px;
		color: rgba(255,255,255, 0.5)
	}

	.t-box {
		mask: unset!important;
	}

	.Tab:hover .t-box {
		mask: linear-gradient(-90deg,transparent,transparent 12px,#000 12px,#000)!important;
		
	}	
	
}

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

2 participants