diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-11-07 10:44:29 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2025-11-07 10:47:23 +0100 |
| commit | 439d7da74a577ee586dae46761e1d1e69849067b (patch) | |
| tree | 9ff7c1c740e491d34df6e5ece6766d8b04474217 /src/frontend/app/components/StopGalleryItem.tsx | |
| parent | ee77f38cdb324cbcf12518490df77fc9e6b89282 (diff) | |
Refactor StopGallery and StopGalleryItem components for improved layout and item display; update StopList to switch recent and favourite stops display order.
Diffstat (limited to 'src/frontend/app/components/StopGalleryItem.tsx')
| -rw-r--r-- | src/frontend/app/components/StopGalleryItem.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/frontend/app/components/StopGalleryItem.tsx b/src/frontend/app/components/StopGalleryItem.tsx index 24d92a2..0af14bc 100644 --- a/src/frontend/app/components/StopGalleryItem.tsx +++ b/src/frontend/app/components/StopGalleryItem.tsx @@ -23,11 +23,11 @@ const StopGalleryItem: React.FC<StopGalleryItemProps> = ({ stop }) => { {StopDataProvider.getDisplayName(region, stop)} </div> <div className="gallery-item-lines"> - {stop.lines?.slice(0, 3).map((line) => ( + {stop.lines?.slice(0, 6).map((line) => ( <LineIcon key={line} line={line} region={region} /> ))} - {stop.lines && stop.lines.length > 3 && ( - <span className="more-lines">+{stop.lines.length - 3}</span> + {stop.lines && stop.lines.length > 5 && ( + <span className="more-lines">+{stop.lines.length - 5}</span> )} </div> </Link> |
