Skip to content

Commit

Permalink
fix: dimensions affichage des vignettes
Browse files Browse the repository at this point in the history
  • Loading branch information
slafayIGN committed Nov 27, 2023
1 parent 3cc91d0 commit 277ccc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/pages/datasheet/DatasheetList/DatasheetListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const DatasheetListItem: FC<DatasheetListItemProps> = ({ datastoreId, datasheet
<div className={fr.cx("fr-col")}>
<Button linkProps={routes.datastore_datasheet_view({ datastoreId, datasheetName: datasheet.name }).link} priority="tertiary no outline">
<div className={fr.cx("fr-grid-row", "fr-grid-row--middle")}>
<img src={datasheet?.thumbnail?.url ?? defaultImgUrl} width={"64px"} height={"64px"} className={fr.cx("fr-mr-1v")} />
<img src={datasheet?.thumbnail?.url ?? defaultImgUrl} height={"64px"} className={fr.cx("fr-mr-1v")} />
<strong className={fr.cx("fr-ml-2w")}>{datasheet.name}</strong>

{/* catégories thématiques */}
Expand Down
4 changes: 2 additions & 2 deletions assets/pages/datasheet/DatasheetView/DatasheetView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ const DatasheetView: FC<DatasheetViewProps> = ({ datastoreId, datasheetName }) =
onClick={handleChooseThumbnail}
nativeButtonProps={{ "aria-label": t("button.title"), title: t("button.title") }}
>
<img src={thumbnailUrl === "" ? defaultImgUrl : thumbnailUrl} width="128px" height="128px" />
<img src={thumbnailUrl === "" ? defaultImgUrl : thumbnailUrl} width={"128px"} />
</Button>
</div>
<div className={fr.cx("fr-col")}>
Expand Down Expand Up @@ -358,7 +358,7 @@ const DatasheetView: FC<DatasheetViewProps> = ({ datastoreId, datasheetName }) =
/>
</div>
<div className={fr.cx("fr-col-3")}>
<img src={modalImageUrl === "" ? defaultImgUrl : modalImageUrl} width="128px" height="128px" />
<img src={modalImageUrl === "" ? defaultImgUrl : modalImageUrl} width="128px" />
</div>
</div>
{thumbnailMutation.isPending && (
Expand Down

0 comments on commit 277ccc8

Please sign in to comment.