Skip to content

Commit aa87962

Browse files
cliftonmcintoshclaude
authored andcommitted
Match expanded row layout to Figma design
Co-Authored-By: claude-sonnet-4-6 <noreply@anthropic.com>
1 parent 1142471 commit aa87962

2 files changed

Lines changed: 25 additions & 4 deletions

File tree

app/assets/stylesheets/pages/case_contacts.scss

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,24 @@
154154
transform: rotate(180deg);
155155
}
156156
}
157+
158+
.expanded-content {
159+
padding: 0.75rem 1rem;
160+
161+
.expanded-topic {
162+
margin-bottom: 0.75rem;
163+
164+
strong {
165+
display: block;
166+
}
167+
168+
p {
169+
margin: 0.25rem 0 0;
170+
}
171+
}
172+
}
173+
174+
.expanded-empty {
175+
padding: 0.75rem 1rem;
176+
margin: 0;
177+
}

app/javascript/src/dashboard.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ let pageNotifier
55

66
function buildExpandedContent (data) {
77
const answers = (data.contact_topic_answers || [])
8-
.map(answer => `<li><strong>${answer.question}:</strong> ${answer.value}</li>`)
8+
.map(answer => `<div class="expanded-topic"><strong>${answer.question}</strong><p>${answer.value}</p></div>`)
99
.join('')
1010

1111
const notes = data.notes && data.notes.trim()
12-
? `<li><strong>Additional Notes:</strong> ${data.notes}</li>`
12+
? `<div class="expanded-topic"><strong>Additional Notes</strong><p>${data.notes}</p></div>`
1313
: ''
1414

15-
if (!answers && !notes) return '<p>No additional details.</p>'
15+
if (!answers && !notes) return '<p class="expanded-empty">No additional details.</p>'
1616

17-
return `<ul>${answers}${notes}</ul>`
17+
return `<div class="expanded-content">${answers}${notes}</div>`
1818
}
1919

2020
const defineCaseContactsTable = function () {

0 commit comments

Comments
 (0)