Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 13, 01:45 UTC
fileserver: browse: Better grid layout (#5564)
* feat: better implementation of grid layout * fix: vertical alignment
365cent committed
Jun 5, 2023 at 03:39 UTC
56af1ceb328dcec7e29de3c7a1c26c966bed9051
1 file changed
+5
-6
modules/caddyhttp/fileserver/browse.html
+5
-6
@@ -547,17 +547,16 @@ td .go-up {
547
}
548
549
.grid {
550
- display: flex;
550
+ display: grid;
551
+ grid-template-columns: repeat(auto-fill, minmax(16em, 1fr));
552
+ justify-items: center;
553
+ align-items: start;
554
gap: 2px;
552
- flex-wrap: wrap;
555
}
556
557
.grid .entry {
558
position: relative;
557
- width: 20%;
558
- min-width: 250px;
559
- max-width: 400px;
560
- flex: 1;
559
+ width: 100%;
560
}
561
562
.grid .entry a {