Skip to content

Commit

Permalink
Test using new image resizing service
Browse files Browse the repository at this point in the history
  • Loading branch information
mihow committed Sep 28, 2023
1 parent 3ded0d9 commit 9dbefee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ui/src/design-system/components/card/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const Card = ({
<div className={styles.container} style={{ maxWidth }}>
<div className={styles.square}>
{image ? (
<img src={image.src} alt={image.alt} className={styles.image} />
<img src={image.src + '?width=300&height=300'} alt={image.alt} className={styles.image} />
) : (
<div className={styles.image}>
<Icon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const BasicImageCarousel = ({
<div style={getPlaceholderStyles(size?.ratio)} />
<div className={classNames(styles.slide, styles.visible)}>
{image ? (
<img src={image.src} alt={image.alt} className={styles.image} />
<img src={image.src + '?width=300&height=300'} alt={image.alt} className={styles.image} />
) : (
<Icon
type={IconType.Photograph}
Expand Down Expand Up @@ -178,7 +178,7 @@ const MultiImageCarousel = ({
[styles.visible]: index === slideIndex,
})}
>
<img src={image.src} alt={image.alt} className={styles.image} />
<img src={image.src + '?width=300&height=300'} alt={image.alt} className={styles.image} />
</div>
)
})}
Expand Down
2 changes: 1 addition & 1 deletion ui/src/pages/session-details/playback/playback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const Playback = ({ session }: { session: SessionDetails }) => {
onMouseOut={() => setShowOverlay(false)}
>
<Frame
src={activeCapture?.src}
src={activeCapture?.src + '?width=1024'}
width={activeCapture?.width ?? session.firstCapture.width}
height={activeCapture?.height ?? session.firstCapture.height}
detections={activeCapture?.detections ?? []}
Expand Down

0 comments on commit 9dbefee

Please sign in to comment.