Skip to content

Commit 5cb6a70

Browse files
committed
Responsive tweaks
1 parent ae8677c commit 5cb6a70

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/index.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ async function main() {
489489
headerSort: false,
490490
hozAlign: "center",
491491
title: "",
492+
width: 40,
492493
},
493494
{
494495
cssClass: "p-0 flex justify-content-center align-items-center",
@@ -587,9 +588,7 @@ async function main() {
587588
headerPopup: `Use <code>^</code> to search at the beginning<br/>Use <code>/regex/</code> to search with a regular expression`,
588589
headerPopupIcon:
589590
'<span class="badge rounded-pill text-bg-primary">?</span>',
590-
responsive: 0,
591-
//sorter: "string",
592-
width: 375,
591+
width: 325,
593592
},
594593
{
595594
title: "Tags",
@@ -603,8 +602,7 @@ async function main() {
603602
headerPopupIcon:
604603
'<span class="badge rounded-pill text-bg-primary">?</span>',
605604
headerSort: false,
606-
responsive: 15,
607-
width: 375,
605+
minWidth: 375,
608606
},
609607
],
610608
height: "100%",
@@ -614,9 +612,9 @@ async function main() {
614612
placeholder: "No matches",
615613
//responsiveLayout: "hide",
616614
footerElement: `<span class="w-100 mx-2 my-1">
617-
<img src="/favicon.svg" class="pe-2" style="height:1.2em;" alt="UnicodeSearch logo"/>UnicodeSearch
615+
<img src="/favicon.svg" class="pe-2" style="height:1.2em;" alt="UnicodeSearch logo"/><span class=" d-none d-sm-inline">UnicodeSearch</span>
618616
<span id="rowcount" class="px-3">Rows: ${data.length.toLocaleString()}</span>
619-
<input id="showhidecolumns" type="checkbox" class="ms-2 me-1" title="Toggle columns: Version, Block, Category, Script"/> Show/Hide Detail Columns
617+
<input id="showhidecolumns" type="checkbox" class="ms-2 me-1" title="Toggle columns: Version, Block, Category, Script"/> <span class="d-none d-md-inline">Show/Hide Detail Columns</span><span class="d-md-none">Details</span>
620618
<a class="d-none d-lg-block float-end" href="https://github.com/FileFormatInfo/unicodesearch">Source</a>
621619
</span>`,
622620
});

0 commit comments

Comments
 (0)