Skip to content

Commit

Permalink
Fix styling in case there is no menu
Browse files Browse the repository at this point in the history
  • Loading branch information
153957 committed Dec 28, 2023
1 parent 6950943 commit 877d269
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions theme_153957/static/css/style.css
Expand Up @@ -33,6 +33,13 @@ body {
max-height: 100vh;
}

#main.no_menu {
grid-template-columns: 1fr;
grid-template-areas:
'thumbnails'
'canvas';
}

#thumbnails {
grid-area: thumbnails;
overflow-x: scroll;
Expand Down
2 changes: 1 addition & 1 deletion theme_153957/templates/base.html
Expand Up @@ -13,7 +13,7 @@
<link rel="stylesheet" href="{{ theme.url }}/css/style.css">
</head>
<body>
<div id="main">
<div id="main"{% if not album.gallery.full_tree %} class="no_menu"{% endif %}>
{% if album.gallery.full_tree %}
<div id="menu">
{% if album.gallery.title %}
Expand Down

0 comments on commit 877d269

Please sign in to comment.