From d2ec5504217c7d424c04c92a0aa5fe01ca5c1aca Mon Sep 17 00:00:00 2001 From: jvyden Date: Sat, 18 Dec 2021 15:43:16 -0500 Subject: [PATCH] Fix performance on photos page --- .../Pages/Partials/PhotoPartial.cshtml | 26 +++++++++---------- ProjectLighthouse/Types/PhotoSubject.cs | 2 ++ 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/ProjectLighthouse/Pages/Partials/PhotoPartial.cshtml b/ProjectLighthouse/Pages/Partials/PhotoPartial.cshtml index 081a3bcc..761f63b8 100644 --- a/ProjectLighthouse/Pages/Partials/PhotoPartial.cshtml +++ b/ProjectLighthouse/Pages/Partials/PhotoPartial.cshtml @@ -1,14 +1,13 @@ @using LBPUnion.ProjectLighthouse.Types - @model LBPUnion.ProjectLighthouse.Types.Photo -
+ style="position: absolute; transform: rotate(180deg)"> + + style="width: 100%; height: auto; border-radius: .28571429rem;">

@@ -31,14 +30,16 @@ } +@{ + PhotoSubject[] subjects = Model.Subjects.ToArray(); + foreach (PhotoSubject subject in subjects) subject.Username = subject.User.Username; +}