瀏覽代碼

[release] v0.8.1

Yann Stepienik 2 年之前
父節點
當前提交
c3dd4f61f2
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      client/src/pages/market/listing.jsx

+ 2 - 2
client/src/pages/market/listing.jsx

@@ -15,10 +15,10 @@ function Screenshots({ screenshots }) {
   return screenshots.length > 1 ? (
   return screenshots.length > 1 ? (
     <Carousel animation="slide" navButtonsAlwaysVisible={false} fullHeightHover="true" swipe={false}>
     <Carousel animation="slide" navButtonsAlwaysVisible={false} fullHeightHover="true" swipe={false}>
       {
       {
-        screenshots.map((item, i) => <img style={{height:'300px'}} key={i} src={item} />)
+        screenshots.map((item, i) => <img style={{maxHeight:'300px', height: '100%', maxWidth: '100%'}} key={i} src={item} />)
       }
       }
     </Carousel>)
     </Carousel>)
-    : <img src={screenshots[0]} height="300px" />
+    : <img src={screenshots[0]} style={{maxHeight:'300px', height: '100%', maxWidth: '100%'}} />
 }
 }
 
 
 function Showcases({ showcase, isDark }) {
 function Showcases({ showcase, isDark }) {