Skip to content

Commit 7506191

Browse files
committed
fix (ui): mobile view for memoriam page
1 parent 84afee9 commit 7506191

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Pawsitive 2025-26 _ Dog Population Census - Sheet1.csv
22
/Pawsitive 2025-26 _ Dog Population Census
33
Pawsitive 2025-26 _ Dog Population Census - Current Census.csv
4-
/Department Write-Ups
4+
/Department Write-Ups
5+
*.env

js/memoriam.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ function initMemorialModals() {
140140

141141
pressTimer = setTimeout(() => {
142142
didLongPress = true;
143-
card.classList.toggle('lit');
143+
card.classList.add('lit');
144144
if (navigator.vibrate) navigator.vibrate(50);
145145
}, LONG_PRESS_MS);
146146
}, { passive: true });
@@ -161,6 +161,8 @@ function initMemorialModals() {
161161
pressTimer = null;
162162
if (didLongPress) {
163163
didLongPress = false;
164+
if (activeCard) activeCard.classList.remove('lit');
165+
activeCard = null;
164166
return;
165167
}
166168
if (activeCard) openMemorialModal(activeCard);
@@ -170,6 +172,7 @@ function initMemorialModals() {
170172
grid.addEventListener('touchcancel', () => {
171173
clearTimeout(pressTimer);
172174
pressTimer = null;
175+
if (activeCard) activeCard.classList.remove('lit');
173176
didLongPress = false;
174177
activeCard = null;
175178
});

styles/main.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,8 +1014,8 @@ footer .footer-sep {
10141014
.memoriam-header-section { padding: 2.5rem 1.2rem 1.2rem; }
10151015
.memoriam-grid {
10161016
grid-template-columns: repeat(2, 1fr);
1017-
grid-auto-rows: auto;
1018-
gap: 0.5rem;
1017+
grid-auto-rows: auto !important;
1018+
gap: 0.5rem !important;
10191019
padding: 0 1rem 2rem;
10201020
margin: 0.5rem auto;
10211021
}

0 commit comments

Comments
 (0)