Skip to content

Commit

Permalink
event view: set default height after upstream has changed it
Browse files Browse the repository at this point in the history
Fixes #177
  • Loading branch information
thomersch committed Jul 23, 2024
1 parent baa635f commit 83d1f76
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"dockerComposeFile": "docker-compose.yml",
"workspaceFolder": "/app",
"postCreateCommand": "make install-dev && ln -s `poetry env info -p`/bin/black /usr/bin/black && cat .devcontainer/start-message.text",
"postStartCommand": "DEVSERVER_ARGS=0:8000 make devserver",
"shutdownAction": "stopCompose",
"customizations": {
"vscode": {
Expand Down
7 changes: 3 additions & 4 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.8'

services:
osmcal:
build:
Expand All @@ -12,8 +10,9 @@ services:
environment:
- "OSMCAL_PG_HOST=db"
- "OSMCAL_PG_PASSWORD=hunter2"

network_mode: service:db
ports:
- "8000:8000"
# network_mode: service:db

db:
image: postgis/postgis:15-3.4
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ CALL := env PATH=$(PATH) POETRY_VIRTUALENVS_IN_PROJECT=true poetry
GUNICORN_WORKERS ?= 1
FLY_REGION ?= ""
WRITABLE_REGION ?= ""
DEVSERVER_ARGS ?= ""

devserver:
$(CALL) run ./manage.py runserver
$(CALL) run ./manage.py runserver $(DEVSERVER_ARGS)

install:
$(CALL) install --no-root
Expand Down
2 changes: 1 addition & 1 deletion osmcal/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
traces_sample_rate=0.01,
)

LEAFLET_CONFIG = {"RESET_VIEW": False, "MAX_ZOOM": 19}
LEAFLET_CONFIG = {"RESET_VIEW": False, "MAX_ZOOM": 19, "ATTRIBUTION_PREFIX": False}

SOCIAL = {
"twitter": {
Expand Down
4 changes: 4 additions & 0 deletions osmcal/static/osmcal/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ h1, h2 {
padding-right: 1em;
}

.event-single-additional .leaflet-container {
height: 400px;
}

.event-single-side-buttons {
margin-top: 1em;
text-align: right;
Expand Down

0 comments on commit 83d1f76

Please sign in to comment.