mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-25 13:56:08 +00:00
fix(plugin-market): keep fixed card width regardless of result count
The result grid used auto-fit tracks, so a single search result stretched to fill the whole row. Switch to fixed responsive column counts (1/2/3/4 across breakpoints), matching langbot-space, so cards keep a consistent max width no matter how many results are shown.
This commit is contained in:
@@ -858,7 +858,7 @@ function MarketPageContent({
|
|||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<div className="grid grid-cols-[repeat(auto-fit,minmax(min(100%,22rem),1fr))] gap-6 mt-6">
|
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4 gap-6 mt-6">
|
||||||
{visiblePlugins.map((plugin) => (
|
{visiblePlugins.map((plugin) => (
|
||||||
<PluginMarketCardComponent
|
<PluginMarketCardComponent
|
||||||
key={plugin.pluginId}
|
key={plugin.pluginId}
|
||||||
|
|||||||
Reference in New Issue
Block a user