Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: more responsive browse template #24

Merged
merged 2 commits into from
Dec 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 20 additions & 7 deletions caskethttp/browse/default_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
padding-right: 5%;
}

#summary {
gap: 0.5em 1em;
}

.filler {
flex: 1;
}
Expand Down Expand Up @@ -85,10 +89,6 @@
padding-bottom: 10px;
}

.meta-item {
margin-right: 1em;
}

.dropdown {
position: relative;
font-weight: bold;
Expand Down Expand Up @@ -145,6 +145,7 @@
#filter {
padding: 4px;
border: 1px solid #cccccc;
box-sizing: border-box;
}

table {
Expand Down Expand Up @@ -265,7 +266,19 @@
}

#filter {
max-width: 100px;
width: 100%;
}

.meta-item.filter-item {
flex: 1;
}

#summary {
flex-wrap: wrap;
}

#summary > .filler {
flex-basis: 100%;
}
}
</style>
Expand Down Expand Up @@ -328,7 +341,7 @@ <h1>
{{- if ne 0 .ItemsLimitedTo}}
<span class="meta-item">(of which only <b>{{.ItemsLimitedTo}}</b> are displayed)</span>
{{- end}}
<span class="meta-item"><input type="text" placeholder="filter" id="filter" onkeyup='filter()'></span>
<span class="meta-item filter-item"><input type="text" placeholder="filter" id="filter" onkeyup='filter()'></span>
<span class="filler"></span>
{{- if .ArchiveTypes }}
<div class="dropdown" onclick="">
Expand Down Expand Up @@ -479,4 +492,4 @@ <h1>
timeList.forEach(localizeDatetime);
</script>
</body>
</html>
</html>
Loading