Skip to content

Commit

Permalink
fix: adjust photo carousel margins in Place Overview
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 580706930
  • Loading branch information
Extended Component Library Team authored and copybara-github committed Nov 9, 2023
1 parent 3c5682c commit 34478ed
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/place_overview/place_overview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,18 @@ export class PlaceOverview extends BaseComponent {
}
.carousel {
display: flex;
line-height: normal;
margin-inline-end: ${getTypeScaleSizeFromPx(-20)};
margin-inline: ${getTypeScaleSizeFromPx(-20)};
overflow-x: auto;
padding-inline: ${getTypeScaleSizeFromPx(20)};
white-space: nowrap;
}
.carousel[no-data] {
margin-bottom: ${getTypeScaleSizeFromPx(-12)};
}
.carousel::-webkit-scrollbar {
background-color: ${GMPX_COLOR_SURFACE};
width: 16px;
Expand All @@ -218,7 +224,7 @@ export class PlaceOverview extends BaseComponent {
background-color: #7d7d7d;
}
.carousel .gallery::part(tile) {
.carousel.gallery::part(tile) {
height: ${getTypeScaleSizeFromPx(134)};
width: ${getTypeScaleSizeFromPx(142)};
}
Expand Down

0 comments on commit 34478ed

Please sign in to comment.