Skip to content

Commit

Permalink
Added custom width for images
Browse files Browse the repository at this point in the history
  • Loading branch information
vraimondi04 committed Sep 4, 2024
1 parent 0f69e6e commit a58fde5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/create/details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ const Details = ({
</Text>
</Pressable>
</View>
<ScrollView horizontal contentContainerStyle={{ columnGap: 8 }}>
<ScrollView horizontal>
{images.map((image) => (
<ImageBackground
className="w-40 h-40 rounded-lg overflow-hidden"
className=" w-screen-2/5 h-2/3 mr-3 rounded-lg overflow-hidden"
key={image.uri}
source={image}
alt="Selected Image"
Expand Down
3 changes: 3 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ module.exports = {
},
},
},
width: {
'screen-2/5': '40vw'
},
},
},
plugins: [],
Expand Down

0 comments on commit a58fde5

Please sign in to comment.