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

Tweak query page to be responsive #515

Merged
merged 1 commit into from
Nov 1, 2019
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions pywb/static/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ RenderCalendar.prototype.createContainers = function() {
// years column and initial display structure
{
tag: 'div',
className: 'col-2 pr-1 pl-1 h-100',
className: 'col-12 col-sm-2 pr-1 pl-1 h-100',
child: {
tag: 'div',
className: 'list-group h-100 auto-overflow',
Expand All @@ -405,7 +405,7 @@ RenderCalendar.prototype.createContainers = function() {
// months initial structure
{
tag: 'div',
className: 'col-2 pr-1 pl-1 h-100',
className: 'col-12 mt-2 col-sm-2 mt-sm-0 pr-1 pl-1 h-100',
child: {
tag: 'div',
className: 'tab-content h-100',
Expand All @@ -418,7 +418,7 @@ RenderCalendar.prototype.createContainers = function() {
// days initial structure
{
tag: 'div',
className: 'col-8 pl-1 h-100',
className: 'col-12 mt-3 mb-3 pr-1 mt-sm-0 mb-sm-0 pr-sm-0 col-sm-8 pl-1 h-100',
child: {
tag: 'div',
className: 'tab-content h-100',
Expand Down
1 change: 1 addition & 0 deletions pywb/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html lang="{{ env.pywb_lang | default('en') }}">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8;charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>{% block title %}{% endblock %}</title>

Expand Down
4 changes: 2 additions & 2 deletions pywb/templates/query.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
{% block body %}
<div class="container-fluid">
<div class="row justify-content-center">
<h4 class="display-4 p-0">{{ _('Search Results') }}</h4>
<h4 class="display-4 text-center text-sm-left p-0">{{ _('Search Results') }}</h4>
</div>
</div>
<div class="container">
<div class="row justify-content-center mt-1" id="display-query-type-info"></div>
<div class="row justify-content-center text-center text-sm-left mt-1" id="display-query-type-info"></div>
</div>
<div class="container mt-3 q-display" id="captures"></div>
<script>
Expand Down