Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

add 'object cover' class to templates that have issues with profile images streatching

Anandb617ec6bfa06
diff --git a/src/templates/Castform.js b/src/templates/Castform.js
index ce1942724..3d3cf7e82 100644
--- a/src/templates/Castform.js
+++ b/src/templates/Castform.js
@@ -32,7 +32,7 @@ const Castform = ({ data }) => {
const Photo = () =>
data.profile.photograph !== '' && (
<img
- className="w-32 h-32 rounded-full"
+ className="w-32 h-32 rounded-full object-cover"
style={{
borderWidth: 6,
borderColor: data.metadata.colors.background,
diff --git a/src/templates/Glalie.js b/src/templates/Glalie.js
index 639c764ac..b3e69cdea 100644
--- a/src/templates/Glalie.js
+++ b/src/templates/Glalie.js
@@ -35,7 +35,7 @@ const Glalie = ({ data }) => {
<div className="grid gap-2 text-center">
{data.profile.photograph !== '' && (
<img
- className="w-40 h-40 rounded-full mx-auto"
+ className="w-40 h-40 rounded-full mx-auto object-cover"
src={data.profile.photograph}
alt={data.profile.firstName}
/>