add some layout fixes

This commit is contained in:
Aaron Bieber 2022-11-29 22:04:15 -07:00
parent ac1cd658a7
commit 03e9a8db6f
No known key found for this signature in database

View File

@ -113,7 +113,6 @@ sub fix_fts ($s) {
return $s;
}
get '/tree' => sub ($c) {
my $v = $c->validation;
@ -205,13 +204,24 @@ __DATA__
title="<%= $title %>"
href="/openbsd-app-opensearch.xml" />
<link rel="stylesheet" href="https://deftly.net/pico.classless.css">
<style>
header {
padding: 0px !important;
}
main {
padding: 0px !important;
}
.nowrap {
white-space: nowrap;
}
</style>
</head>
<body>
<header>
<h3><a href="/">OpenBSD.app - search packages</a></h3>
%= form_for '/' => begin
%= tag 'input', type => 'search', name => 'search', id => 'search', placeholder => 'Search'
%= check_box id => 'switch', role => "switch"
%= search_field 'search', id => 'search', placeholder => 'Search', value => undef
%= check_box 'current', role => "switch"
%= label_for 'switch' => 'Search -current'
% end
</header>
@ -257,7 +267,7 @@ __DATA__
title="Dependencies for <%= $result->{FULLPKGNAME} %>"
><%= $result->{FULLPKGPATH} %></a>
</td>
<td class="nowrap"><%== $result->{COMMENT_MATCH} %></td>
<td class=""><%== $result->{COMMENT_MATCH} %></td>
<td><%== $result->{DESCR_MATCH} %></td>
</tr>
% }