Skip to content

Commit

Permalink
feat(front): change image formattings
Browse files Browse the repository at this point in the history
  • Loading branch information
junglesub committed Sep 22, 2024
1 parent afc10e8 commit a21c24d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* Base styles for the post images container */
.post-images {
padding: 16px 24px;
padding: 0 24px;
padding-bottom: 16px;
display: grid;
gap: 5px;
position: relative;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React from "react";
import "./FeedItemGallery.css";

const FeedItemGallery = ({ images = [] }) => {
if (images.length === 0) return <></>;
return (
<div className={`post-images images-${images.length}`}>
{images.slice(0, 3).map((image, index) => (
Expand Down

0 comments on commit a21c24d

Please sign in to comment.