feat: add course cover positioning
This commit is contained in:
@@ -44,7 +44,10 @@ export const CourseCard: React.FC<CourseCardProps> = ({
|
||||
draggable={false}
|
||||
onDragStart={(e) => e.preventDefault()}
|
||||
className="h-full w-full object-cover transition-opacity duration-300 opacity-90 group-hover:opacity-100 rounded-[8px] select-none pointer-events-none"
|
||||
style={{ transform: `scale(${course.coverImageZoom || 1})` }}
|
||||
style={{
|
||||
transform: `scale(${course.coverImageZoom || 1})`,
|
||||
objectPosition: `${course.coverImagePositionX ?? 50}% ${course.coverImagePositionY ?? 50}%`,
|
||||
}}
|
||||
/>
|
||||
|
||||
{/* Badges on Thumbnail */}
|
||||
|
||||
Reference in New Issue
Block a user