Webflow sync, pageviews & more.
NEW

How can I resolve the issue in Webflow where a CMS item in a filtered collection list becomes skinny when there is only one result, while using Jetboost for filtering?

TL;DR
  • Set the Collection List Wrapper to "Block" or adjust Flex/Grid settings to prevent layout issues with single items.
  • Define explicit widths (e.g., 100% or 300px) for Collection Items, use responsive Grid with auto-fit/minmax, and apply min/max widths to prevent shrinking.
  • Use custom CSS for fine-tuning (e.g., :only-child) and wrap items in consistent containers to maintain layout after Jetboost filtering.

When using Jetboost filters on a Webflow Collection List, you may notice that a CMS item becomes "skinny" or misaligned when only one item remains after filtering. This is typically caused by Flexbox or Grid styles applied to the parent Collection List Wrapper or its children.

1. Check Collection List Display Settings

  • Select the Collection List Wrapper (not the item itself).
  • Check the Display Setting in the Style panel. If it’s set to Flex, it might cause layout issues when there’s only one item.
  • Try setting the Display to “Block” or adjusting Flex settings (justify: start, align: stretch etc.) to stabilize single-item behavior.

2. Inspect the Child Item’s Width

  • Select the Collection Item inside the Collection List.
  • Check that Width is set explicitly, especially if you’re using Flex/Grid. Use values such as 100% or a fixed width like 300px rather than "auto" or relying on content.
  • Avoid settings like “Shrink if needed” (flex-shrink: 1) unless you’re managing with custom logic.

3. Review Grid (if used)

  • If using CSS Grid on the Collection List, it might expect multiple columns.
  • Enable Auto-fit or Auto-fill with a minmax() setting (e.g., min 250px, max 1fr) in your layout to ensure single items take up full available space.
  • Alternatively, change the grid to 1 column layout on smaller screen sizes or when applicable.

4. Apply a Minimum Width or Max Width

  • Add a min-width or set a max-width on either the Collection Item or a nested div inside, depending on your layout approach.
  • Example: Set min-width: 300px to prevent items from becoming too narrow when alone.

5. Add Conditional Styling with Custom Code (Optional)

  • If you're using custom breakpoints or want to dynamically adjust layouts, limited custom CSS can help.
  • Use Webflow’s Embed element or Page Settings > Custom Code to inject adjustments (e.g., using :only-child selector for fine styling control).

6. Verify Jetboost Re-render Behavior

  • Jetboost filters apply after Webflow's initial render, which can disrupt responsive layouts if not handled well.
  • Ensure your Collection Item layout is flexible and not dependent on content count.
  • If needed, wrap the content inside a div set with consistent width/spacing/styling as a fallback container.

Summary

To prevent a CMS item from becoming “skinny” when filtered to one result with Jetboost, avoid relying on auto-width or improper Flex/Grid settings. Instead, set explicit width constraints, use 1-column responsive grids, and ensure the wrapper/container has stable layout properties. This guarantees that single items maintain consistent appearance post-filtering.

Rate this answer

Other Webflow Questions