Skip to content

Commit

Permalink
Revert "fix: force table cell content to wrap to prevent overly wide …
Browse files Browse the repository at this point in the history
…modal (DHIS2-5920) (#2961)"

This reverts commit 87fe4cc.
  • Loading branch information
jenniferarnesen committed Sep 15, 2023
1 parent 87fe4cc commit 93e07ae
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 24 deletions.
3 changes: 1 addition & 2 deletions src/components/map/layers/EventPopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import React, { useEffect } from 'react'
import { EVENT_ID_FIELD } from '../../../util/geojson.js'
import { formatTime, formatCoordinate } from '../../../util/helpers.js'
import Popup from '../Popup.js'
import classes from './styles/EventPopup.module.css'

// Returns true if value is not undefined or null;
const hasValue = (value) => value !== undefined || value !== null
Expand Down Expand Up @@ -88,7 +87,7 @@ const EventPopup = ({
<Popup
coordinates={coordinates}
onClose={onClose}
className={classes.eventPopup}
className="dhis2-map-popup-event"
>
{error && <span>{i18n.t('Could not retrieve event data')}</span>}
{!error && (
Expand Down
20 changes: 0 additions & 20 deletions src/components/map/layers/styles/EventPopup.module.css

This file was deleted.

8 changes: 6 additions & 2 deletions src/components/map/styles/Popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
min-width: 150px;
}

.maplibregl-popup-close-button:focus {
outline: none;
.dhis2-map-popup-event {
overflow-x: auto;
}

.dhis2-map-popup-event th {
text-align: left;
}

0 comments on commit 93e07ae

Please sign in to comment.