mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 02:36:00 +00:00
scroll in xml cell data view
This commit is contained in:
@@ -4,6 +4,19 @@
|
||||
export let selection;
|
||||
</script>
|
||||
|
||||
{#each selection as cell}
|
||||
<XmlHighlighter code={cell.value} />
|
||||
{/each}
|
||||
<div class="wrapper">
|
||||
{#each selection as cell}
|
||||
<XmlHighlighter code={cell.value} />
|
||||
{/each}
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.wrapper {
|
||||
overflow: scroll;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -24,19 +24,13 @@
|
||||
</script>
|
||||
|
||||
{#key formattedCode}
|
||||
<pre><code bind:this={codeBlock}>{formattedCode}</code></pre>
|
||||
<pre bind:this={codeBlock}>{formattedCode}</pre>
|
||||
{/key}
|
||||
|
||||
<style>
|
||||
pre {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
code {
|
||||
display: block;
|
||||
padding: 0.5em;
|
||||
overflow-x: auto;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user