Add id attribute to UserPreview root div and remove transform style

This commit is contained in:
srgooglo 2025-07-04 14:11:59 +02:00
parent 179baa3777
commit 28bdb0f9d4
2 changed files with 2 additions and 3 deletions

View File

@ -59,6 +59,7 @@ const UserPreview = (props) => {
return ( return (
<div <div
id={userData._id}
className={classnames("userPreview", { className={classnames("userPreview", {
["clickable"]: typeof props.onClick === "function", ["clickable"]: typeof props.onClick === "function",
["small"]: props.small && !props.big, ["small"]: props.small && !props.big,

View File

@ -65,8 +65,6 @@
height: 100%; height: 100%;
} }
transform: translate(0, 3px);
img { img {
object-fit: cover; object-fit: cover;
@ -107,4 +105,4 @@
align-self: start; align-self: start;
} }
} }
} }