fix issue with smaller screens

pull/4774/head
Joseph Izang 6 months ago
parent 9907abb6c6
commit 3fe694eb90
  1. 12
      libs/remix-ui/home-tab/src/lib/components/homeTabFeatured.tsx
  2. 2
      libs/remix-ui/home-tab/src/lib/components/homeTabFeaturedPlugins.tsx
  3. 14
      libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.css

@ -17,7 +17,7 @@ function HomeTabFeatured() {
<FormattedMessage id="home.featured" /> <FormattedMessage id="home.featured" />
</label> </label>
<div className="mb-2 remix_ui-carousel-container"> <div className="mb-2 remix_ui-carousel-container">
<div className="w-100 d-flex flex-column rounded-3 remix_ui-carousel-container"> <div className="w-100 d-flex flex-column rounded-3 remix_ui-carouselbox">
<ThemeContext.Provider value={themeFilter}> <ThemeContext.Provider value={themeFilter}>
<Carousel <Carousel
arrows={false} arrows={false}
@ -34,7 +34,7 @@ function HomeTabFeatured() {
centerMode={false} centerMode={false}
autoPlay={true} autoPlay={true}
keyBoardControl={true} keyBoardControl={true}
containerClass="border w-full carousel-container remix_ui-carousel-container h-100 d-flex align-items-center" containerClass="border w-full carousel-container d-flex align-items-center"
sliderClass="h-100 justify-content-between" sliderClass="h-100 justify-content-between"
deviceType={'desktop'} deviceType={'desktop'}
itemClass="" itemClass=""
@ -62,7 +62,7 @@ function HomeTabFeatured() {
</a> </a>
</div> </div>
<a href={releaseDetails.moreLink} target="__blank"> <a href={releaseDetails.moreLink} target="__blank">
<img src={'assets/img/remi_drums_whatsnew.webp'} style={{ flex: '1', height: '320px', maxWidth: '320px' }} alt=""></img> <img src={'assets/img/remi_drums_whatsnew.webp'} className="remixui_carouselImage" alt=""></img>
</a> </a>
</div> </div>
<div className="mr-1 pr-1 d-flex align-items-center justify-content-center h-100"> <div className="mr-1 pr-1 d-flex align-items-center justify-content-center h-100">
@ -83,7 +83,7 @@ function HomeTabFeatured() {
</a> </a>
</div> </div>
<a href="https://remix-project.org" target="__blank"> <a href="https://remix-project.org" target="__blank">
<img src={'assets/img/bgRemi_small.webp'} style={{ flex: '1', height: '320px', maxWidth: '320px' }} alt=""></img> <img src={'assets/img/bgRemi_small.webp'} className="remixui_carouselImage" alt=""></img>
</a> </a>
</div> </div>
<div className="mr-1 pr-1 d-flex align-items-center justify-content-center h-100"> <div className="mr-1 pr-1 d-flex align-items-center justify-content-center h-100">
@ -107,7 +107,7 @@ function HomeTabFeatured() {
</a> </a>
</div> </div>
<a href="https://www.youtube.com/@EthereumRemix/videos" target="__blank"> <a href="https://www.youtube.com/@EthereumRemix/videos" target="__blank">
<img src={'/assets/img/YouTubeLogo.webp'} style={{ flex: '1', height: '320px', maxWidth: '320px' }} alt=""></img> <img src={'/assets/img/YouTubeLogo.webp'} className="remixui_carouselImage" alt=""></img>
</a> </a>
</div> </div>
<div className="mr-1 pr-1 d-flex align-items-center justify-content-center h-100"> <div className="mr-1 pr-1 d-flex align-items-center justify-content-center h-100">
@ -131,7 +131,7 @@ function HomeTabFeatured() {
</a> </a>
</div> </div>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSd0WsJnKbeJo-BGrnf7WijxAdmE4PnC_Z4M0IApbBfHLHZdsQ/viewform" target="__blank"> <a href="https://docs.google.com/forms/d/e/1FAIpQLSd0WsJnKbeJo-BGrnf7WijxAdmE4PnC_Z4M0IApbBfHLHZdsQ/viewform" target="__blank">
<img src={'/assets/img/remixRewardBetaTester_small.webp'} style={{ flex: '1', height: '320px', maxWidth: '320px' }} alt=""></img> <img src={'/assets/img/remixRewardBetaTester_small.webp'} className="remixui_carouselImage" alt=""></img>
</a> </a>
</div> </div>
</Carousel> </Carousel>

@ -84,7 +84,7 @@ function HomeTabFeaturedPlugins({ plugin }: HomeTabFeaturedPluginsProps) {
} }
return ( return (
<div className="pl-2 w-100 align-items-end" id="hTFeaturedPlugins"> <div className="pl-2 w-100 align-items-end remixui_featuredplugins_container" id="hTFeaturedPlugins">
<label className="" style={{ fontSize: '1.2rem' }}> <label className="" style={{ fontSize: '1.2rem' }}>
<FormattedMessage id="home.featuredPlugins" /> <FormattedMessage id="home.featuredPlugins" />
</label> </label>

@ -116,7 +116,7 @@
} }
.remixui_recentworkspace { .remixui_recentworkspace {
height: 11.4rem; height: 2.4rem;
} }
.remixui_carouselImage { .remixui_carouselImage {
@ -125,20 +125,24 @@
width: 20rem; width: 20rem;
} }
.remixui_carouselbox {
min-height: 25.12rem;
}
.remix_ui-carousel-container { .remix_ui-carousel-container {
container: remix_ui-carousel-container / inline-size; container: remix_ui-carousel-container / inline-size;
height: 450px;
} }
@container remix_ui-carousel-container (inline-size < 700px) { @container remix_ui-carousel-container (inline-size < 700px) {
.remix_ui-carousel-container { .remix_ui-carouselbox {
height: 200px; min-height: 20rem;
} }
.remixui_carouselImage { .remixui_carouselImage {
height: 12.5rem; height: 12.5rem;
width: 12.5rem; width: 12.5rem;
} }
.remixui_recentworkspace { .remixui_recentworkspace {
height: 6rem; height: 0.2rem;
} }
} }

Loading…
Cancel
Save