Skip to content

Commit

Permalink
Merge pull request #146 from bobosch/fix-css-openlayers
Browse files Browse the repository at this point in the history
Fix CSS in Openlayers Popups
  • Loading branch information
albig authored Oct 6, 2023
2 parents a2ba8dc + 49380e3 commit 69b680e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Provider/Openlayers.php
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ protected function getMarker($item, $table)
$filename = $file->getPublicUrl();

$properties = [
'popup' => $item['popup'],
'popup' => $item['popup'] ?? '',
'properties' => $item['properties'],
];

Expand Down
6 changes: 5 additions & 1 deletion Resources/Public/Css/ods_osm.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@
background-color: white;
-webkit-filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
padding: 15px;
padding: 10px;
border-radius: 10px;
border: 1px solid #cccccc;
bottom: 12px;
left: -50px;
min-width: 100px;
}

.ol-popup dl {
margin-bottom: 0;
}

.ol-popup:after,
.ol-popup:before {
top: 100%;
Expand Down

0 comments on commit 69b680e

Please sign in to comment.