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