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

panel-tabs with lots of tabs is not responsive #3866

Closed
leolivier opened this issue Jul 30, 2024 · 4 comments
Closed

panel-tabs with lots of tabs is not responsive #3866

leolivier opened this issue Jul 30, 2024 · 4 comments

Comments

@leolivier
Copy link

leolivier commented Jul 30, 2024

Overview of the problem

This is about the Bulma CSS framework
I'm using Bulma version [1.0.1]
My browser is: Firefox and Edge
I am sure this issue is not a duplicate

Description

I have the following html piece:

<section class="panel">
		<p class="panel-heading">Statistics</p>
		<div class="panel-tabs">
			<a class="stat-category is-active" data-category="site">Site</a>
			<a class="stat-category " data-category="members">Members</a>
			<a class="stat-category " data-category="galleries">Galleries</a>
			<a class="stat-category " data-category="forums">Forums</a>
			<a class="stat-category " data-category="chats">Chats</a>
			<a class="stat-category " data-category="administrator">Administrator</a>
		</div>
		<div class="panel-category" id="category-site" style="">
			<div class="panel-block">
			...

When displayed on a mobile phone, what I see is
image

So I don't see the "Site" tab on the left, and I cannot swipe left to try to see it.
(I can swipe right and see "Administrator" in full)

Steps to Reproduce

See above

Expected behavior

At least, be able to swipe left.
I tried to change the justify-content from center to left and then I can see Sites and swipe right up to "Administrator"

Or maybe restack the tabs vertically when they don't fit horizontally?

@leolivier leolivier changed the title panel-tabs with lots of tab is not responsive panel-tabs with lots of tabs is not responsive Jul 30, 2024
@leolivier
Copy link
Author

leolivier commented Aug 4, 2024

FYI, I just added in my "custom.css" the lines and it solved the issue

panel-tabs {
	flex-wrap: wrap;
}

image

I don't know if it should applied to whole Bulma...

@jgthms
Copy link
Owner

jgthms commented Sep 18, 2024

Yeah it's a tricky one because some people prefer scrolling (which would require a parent element to be scrollable), some people prefer wrapping like you did.

I'll close this for now because I think it's better to leave it to each developer but thanks for the update.

@jgthms jgthms closed this as completed Sep 18, 2024
@guest20
Copy link

guest20 commented Sep 18, 2024

Maybe a class="tabs does-linewrap" could be worth including in the library?

I have some css I copy/pasted from an earlier issue #1344 to make my tavs wrap...

It might be worth including a default one way or the other, since the current default is a 3rd, unusable choice where the items aren't visible and can't be accessed (until someone reports a bug)

@jgthms
Copy link
Owner

jgthms commented Sep 19, 2024

You can already use the Flexbox helper is-flex-wrap-wrap: https://bulma.io/documentation/helpers/flexbox-helpers/

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