Skip to content

Responsive Design #1257

Closed Answered by kkoreilly
ksckaan1 asked this question in Q&A
Oct 14, 2024 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Does something like this work for you?

grids.Styler(func(s *styles.Style) {
	s.Max.X = units.Dp(1000)
	s.Min.X = units.Dp(400)
	s.Grow.X = 1
	s.Display = styles.Grid
	if grids.SizeClass() == core.SizeExpanded {
		s.Columns = 5
	} else {
		s.Columns = 3
	}
	s.Gap.Set(units.Dp(10))
})

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ksckaan1
Comment options

@kkoreilly
Comment options

@kkoreilly
Comment options

@ksckaan1
Comment options

Answer selected by ksckaan1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants