Skip to content
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
12 changes: 6 additions & 6 deletions isic/core/templates/core/data_explorer.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ <h1 class="text-xl sm:text-2xl font-bold mb-2">ISIC Data Explorer</h1>
</p>

<div class="mb-2">
<div class="flex items-center justify-between">
<label class="label font-semibold">SQL Query</label>
<div class="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2 mb-2">
<label class="label font-semibold p-0">SQL Query</label>
<div class="flex items-center gap-2">
<button
@click="setQuery('SUMMARIZE metadata'); runQuery()"
Expand All @@ -54,7 +54,7 @@ <h1 class="text-xl sm:text-2xl font-bold mb-2">ISIC Data Explorer</h1>
</button>
<select
id="example-query-select"
class="select select-bordered select-xs"
class="border border-gray-300 rounded px-2 py-1 text-sm font-semibold min-w-0"
@change="if ($el.value) { setQuery(examples[$el.value].sql); }"
x-html="'<option value=\'\'>Example queries...</option>' + examples.map((e, i) => `<option value=\'${i}\'>${e.name}</option>`).join('')"
></select>
Expand All @@ -63,7 +63,7 @@ <h1 class="text-xl sm:text-2xl font-bold mb-2">ISIC Data Explorer</h1>
<div id="sql-editor" class="border border-gray-300 rounded overflow-hidden"></div>
</div>

<div class="flex flex-wrap items-center gap-2 sm:gap-4 mb-2">
<div class="flex flex-wrap items-center gap-2 mb-2">
<button
id="run-query-btn"
@click="runQuery()"
Expand All @@ -74,7 +74,7 @@ <h1 class="text-xl sm:text-2xl font-bold mb-2">ISIC Data Explorer</h1>
<span x-show="running">Running...</span>
</button>
<span x-show="elapsed" class="text-sm text-gray-500" x-text="elapsed"></span>
<div class="ml-auto flex items-center gap-2">
<div class="flex items-center gap-2 sm:ml-auto">
<button
@click="copyLink()"
class="btn btn-ghost btn-sm"
Expand Down Expand Up @@ -397,7 +397,7 @@ <h3 class="font-bold text-lg mb-4">Create Collection</h3>
EditorView.theme({
'&': {fontSize: '14px'},
'.cm-content': {fontFamily: 'monospace'},
'.cm-scroller': {height: '10lh', overflow: 'auto'},
'.cm-scroller': {height: window.innerWidth < 640 ? '6lh' : '10lh', overflow: 'auto'},
}),
],
parent: document.getElementById('sql-editor'),
Expand Down
3 changes: 0 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.