From effa434e1d0bb8c142e6be778afcfd0ebcf0fd03 Mon Sep 17 00:00:00 2001
From: Aaron LI <aly@aaronly.me>
Date: Fri, 6 Dec 2024 13:26:42 +0800
Subject: class: Fix the default position of photo to be left

---
 resume.cls | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

(limited to 'resume.cls')

diff --git a/resume.cls b/resume.cls
index f90332c..3603b5a 100644
--- a/resume.cls
+++ b/resume.cls
@@ -12,7 +12,7 @@
 %%     https://www.latextemplates.com/template/plasmati-graduate-cv
 %%
 
-\ProvidesClass{resume}[2024/12/06 v2.6.1 Resume Class]
+\ProvidesClass{resume}[2024/12/06 v2.6.2 Resume Class]
 \LoadClass{article}
 
 %%
@@ -325,9 +325,7 @@
 \newcommand*{\makeheader}{
   \ifdef{\@photo}{%
     \def\@profile@width{\dimexpr \linewidth - \@photo@width - 1em}
-    \ifdefstring{\@photo@position}{left}{%
-      \@photo\hspace{1em}%
-    }{}%
+    \ifdefstring{\@photo@position}{right}{}{\@photo\hspace{1em}}%
   }{%
     \def\@profile@width{\linewidth}
   }%
@@ -342,7 +340,7 @@
   \end{minipage}
   \ifdef{\@photo}{%
     % photo on the right side
-    \ifdefstring{\@photo@position}{left}{}{\hfill\@photo}% (suppress blank)
+    \ifdefstring{\@photo@position}{right}{\hfill\@photo}{}% (suppress blank)
   }{}
 }
 
-- 
cgit v1.2.2

