Skip to content

Commit

Permalink
chore: restore th
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferarnesen committed Sep 14, 2023
1 parent ab89a46 commit ddd8ea8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions src/components/map/layers/EventPopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const getDataRows = ({ displayElements, dataValues, styleDataItem, value }) => {
) {
dataRows.push(
<tr key={styleDataItem.id}>
<td>{styleDataItem.name}</td>
<th>{styleDataItem.name}</th>
<td>{hasValue(value) ? value : i18n.t('Not set')}</td>
</tr>
)
Expand All @@ -48,7 +48,7 @@ const getDataRows = ({ displayElements, dataValues, styleDataItem, value }) => {

dataRows.push(
<tr key={id}>
<td>{name}</td>
<th>{name}</th>
<td>{formattedValue}</td>
</tr>
)
Expand Down Expand Up @@ -103,24 +103,24 @@ const EventPopup = ({
})}
{type === 'Point' && (
<tr>
<td>
<th>
{eventCoordinateFieldName ||
i18n.t('Event location')}
</td>
</th>
<td>
{coord[0].toFixed(6)} {coord[1].toFixed(6)}
</td>
</tr>
)}
{orgUnitName && (
<tr>
<td>{i18n.t('Organisation unit')}</td>
<th>{i18n.t('Organisation unit')}</th>
<td>{orgUnitName}</td>
</tr>
)}
{eventDate && (
<tr>
<td>{i18n.t('Event time')}</td>
<th>{i18n.t('Event time')}</th>
<td>{formatTime(eventDate)}</td>
</tr>
)}
Expand Down
6 changes: 3 additions & 3 deletions src/components/map/layers/styles/EventPopup.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
max-width: 400px;
}

.eventPopup tr td {
.eventPopup th, .eventPopup td {
text-align: left;
vertical-align: top;
}

.eventPopup tr td:first-child {
.eventPopup tr th {
font-weight: 500;
padding-right: var(--spacers-dp4);
}

.eventPopup tr td:last-child {
.eventPopup tr td {
min-width: 120px;
}

0 comments on commit ddd8ea8

Please sign in to comment.