Skip to content

Commit

Permalink
fileserver: browse: Better grid layout (#5564)
Browse files Browse the repository at this point in the history
* feat: better implementation of grid layout

* fix: vertical alignment
  • Loading branch information
365cent authored Jun 5, 2023
1 parent 4ba03c9 commit 56af1ce
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions modules/caddyhttp/fileserver/browse.html
Original file line number Diff line number Diff line change
Expand Up @@ -547,17 +547,16 @@
}

.grid {
display: flex;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(16em, 1fr));
justify-items: center;
align-items: start;
gap: 2px;
flex-wrap: wrap;
}

.grid .entry {
position: relative;
width: 20%;
min-width: 250px;
max-width: 400px;
flex: 1;
width: 100%;
}

.grid .entry a {
Expand Down

0 comments on commit 56af1ce

Please sign in to comment.