mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-26 09:56:00 +00:00
Fixes missing toolstrip and adds up to 200% zoom to diagram view
This commit is contained in:
@@ -842,6 +842,26 @@
|
|||||||
text: `100 %`,
|
text: `100 %`,
|
||||||
onClick: changeStyleFunc('zoomKoef', 1),
|
onClick: changeStyleFunc('zoomKoef', 1),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
text: `120 %`,
|
||||||
|
onClick: changeStyleFunc('zoomKoef', 1.2),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: `140 %`,
|
||||||
|
onClick: changeStyleFunc('zoomKoef', 1.4),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: `160 %`,
|
||||||
|
onClick: changeStyleFunc('zoomKoef', 1.6),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: `180 %`,
|
||||||
|
onClick: changeStyleFunc('zoomKoef', 1.8),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: `200 %`,
|
||||||
|
onClick: changeStyleFunc('zoomKoef', 2),
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
import ToolStripCommandButton from '../buttons/ToolStripCommandButton.svelte';
|
import ToolStripCommandButton from '../buttons/ToolStripCommandButton.svelte';
|
||||||
import invalidateCommands from '../commands/invalidateCommands';
|
import invalidateCommands from '../commands/invalidateCommands';
|
||||||
import ToolStripSaveButton from '../buttons/ToolStripSaveButton.svelte';
|
import ToolStripSaveButton from '../buttons/ToolStripSaveButton.svelte';
|
||||||
|
import VerticalSplitter from "../elements/VerticalSplitter.svelte";
|
||||||
|
|
||||||
export let tabid;
|
export let tabid;
|
||||||
export let conid;
|
export let conid;
|
||||||
@@ -100,7 +101,12 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<ToolStripContainer>
|
<ToolStripContainer>
|
||||||
<DiagramDesigner value={$modelState.value || {}} {conid} {database} onChange={handleChange} menu={createMenu} />
|
<VerticalSplitter isSplitter={false}>
|
||||||
|
<svelte:fragment slot="1">
|
||||||
|
<DiagramDesigner value={$modelState.value || {}} {conid} {database} onChange={handleChange} menu={createMenu} />
|
||||||
|
</svelte:fragment>
|
||||||
|
</VerticalSplitter>
|
||||||
|
|
||||||
<svelte:fragment slot="toolstrip">
|
<svelte:fragment slot="toolstrip">
|
||||||
<ToolStripCommandButton command="designer.arrange" />
|
<ToolStripCommandButton command="designer.arrange" />
|
||||||
<ToolStripSaveButton idPrefix="diagram" />
|
<ToolStripSaveButton idPrefix="diagram" />
|
||||||
|
|||||||
Reference in New Issue
Block a user