forked from noxious/client
Unfuck the settings modal
This commit is contained in:
parent
dedae28456
commit
b3bf1861c4
@ -1,28 +1,28 @@
|
|||||||
<template>
|
<template>
|
||||||
<Modal :isModalOpen="true" @modal:close="() => zoneEditorStore.toggleSettingsModal()" :modal-width="300" :modal-height="345" :is-resizable="false">
|
<Modal :isModalOpen="true" @modal:close="() => zoneEditorStore.toggleSettingsModal()" :modal-width="300" :modal-height="370" :is-resizable="false">
|
||||||
<template #modalHeader>
|
<template #modalHeader>
|
||||||
<h3 class="modal-title">Zone settings</h3>
|
<h3 class="modal-title">Zone settings</h3>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #modalBody>
|
<template #modalBody>
|
||||||
<div class="container settings">
|
<div class="settings m-[15px]">
|
||||||
<form method="post" @submit.prevent="" class="modal-form">
|
<form method="post" @submit.prevent="" class="modal-form inline">
|
||||||
<div class="form-fields">
|
<div class="form-fields gap-2.5 flex flex-wrap">
|
||||||
<div class="form-field col-12">
|
<div class="form-field w-full flex flex-col mb-5">
|
||||||
<label for="name">Name</label>
|
<label class="mb-1.5 font-titles" for="name">Name</label>
|
||||||
<input class="input-cyan" v-model="name" name="name" id="name" />
|
<input class="input-cyan max-w-[250px]" v-model="name" name="name" id="name" />
|
||||||
</div>
|
</div>
|
||||||
<div class="form-field col-6">
|
<div class="form-field w-[48%] flex flex-col mb-5">
|
||||||
<label for="name">Width</label>
|
<label class="mb-1.5 font-titles" for="name">Width</label>
|
||||||
<input class="input-cyan" v-model="width" name="name" id="name" type="number" />
|
<input class="input-cyan max-w-[250px]" v-model="width" name="name" id="name" type="number" />
|
||||||
</div>
|
</div>
|
||||||
<div class="form-field col-6">
|
<div class="form-field w-[48%] flex flex-col mb-5">
|
||||||
<label for="name">Height</label>
|
<label class="mb-1.5 font-titles" for="name">Height</label>
|
||||||
<input class="input-cyan" v-model="height" name="name" id="name" type="number" />
|
<input class="input-cyan max-w-[250px]" v-model="height" name="name" id="name" type="number" />
|
||||||
</div>
|
</div>
|
||||||
<div class="form-field col-12">
|
<div class="form-field w-full flex flex-col mb-5">
|
||||||
<label for="name">PVP enabled</label>
|
<label class="mb-1.5 font-titles" for="name">PVP enabled</label>
|
||||||
<input class="input-cyan" name="name" id="name" />
|
<input class="input-cyan max-w-[250px]" name="name" id="name" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
@ -54,12 +54,3 @@ watch(height, (value) => {
|
|||||||
zoneEditorStore.setHeight(parseInt(value))
|
zoneEditorStore.setHeight(parseInt(value))
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
|
||||||
.form-fields {
|
|
||||||
--gap: 10px;
|
|
||||||
display: flex;
|
|
||||||
gap: var(--gap);
|
|
||||||
flex-wrap: wrap;
|
|
||||||
}
|
|
||||||
</style>
|
|
Loading…
x
Reference in New Issue
Block a user