Skip to content

Commit b020e4e

Browse files
committed
🛠️ Fix #212
1 parent ea6f853 commit b020e4e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/components/blueprintSettingsDialog.svelte

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
import FileSelect from './dialogItems/fileSelect.svelte'
1313
import FolderSelect from './dialogItems/folderSelect.svelte'
1414
import CodeInput from './dialogItems/codeInput.svelte'
15+
import Select from './dialogItems/select.svelte'
16+
import { DIALOG_ID } from '../interface/animationPropertiesDialog'
1517
1618
import HeartIcon from '../assets/heart.png'
1719
import KoFiImage from '../assets/kofi_s_tag_white.webp'
@@ -27,8 +29,6 @@
2729
</script>
2830

2931
<script lang="ts">
30-
import Select from './dialogItems/select.svelte'
31-
3232
export let blueprintName: Valuable<string>
3333
export let textureSizeX: Valuable<number>
3434
export let textureSizeY: Valuable<number>
@@ -356,6 +356,8 @@
356356
}
357357
</script>
358358

359+
<div style="--aj-dialog-id: '{DIALOG_ID}';" />
360+
359361
<div>
360362
<LineInput
361363
label={translate('dialog.blueprint_settings.blueprint_name.title')}
@@ -744,7 +746,7 @@
744746
}
745747
}
746748
747-
:global(.dialog_wrapper .dialog_content) {
749+
:global(dialog#animated_java\:blueprintSettingsDialog .dialog_wrapper .dialog_content) {
748750
overflow-y: auto !important;
749751
}
750752
div {

src/interface/animationPropertiesDialog.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@ import { Valuable } from '../util/stores'
44
import { SvelteDialog } from '../util/svelteDialog'
55
import { translate } from '../util/translation'
66

7+
export const DIALOG_ID = `${PACKAGE.name}:animationPropertiesDialog`
8+
79
export function openAnimationPropertiesDialog(animation: _Animation) {
810
const animationName = new Valuable(animation.name)
911
const loopMode = new Valuable(animation.loop)
1012
const loopDelay = new Valuable(Number(animation.loop_delay) || 0)
1113
const excludedNodes = new Valuable(animation.excluded_nodes)
1214

1315
new SvelteDialog({
14-
id: `${PACKAGE.name}:animationPropertiesDialog`,
16+
id: DIALOG_ID,
1517
title: translate('dialog.animation_properties.title', animation.name),
1618
width: 600,
1719
svelteComponent: AniamtionPropertiesSvelteComponent,

0 commit comments

Comments
 (0)