Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 93 additions & 0 deletions components/ZScaling.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<template>
<v-sheet
:width="width + 'px'"
class="z-scaling-menu"
elevation="10"
rounded="lg"
>
<v-card class="bg-primary pa-4" elevation="0">
<v-card-title class="d-flex justify-space-between align-center">
<h3 class="text-h5 font-weight-bold">Z Scaling Control</h3>
</v-card-title>
<v-card-text class="pt-4">
<v-container>
<v-row>
<v-col cols="12" class="py-2">
<v-slider
v-model="zScale"
:min="1"
:max="10"
:step="0.2"
label="Z Scale"
thumb-label
color="white"
track-color="white"
/>
</v-col>
</v-row>
<v-row>
<v-col cols="12" class="py-2">
<v-text-field
v-model.number="zScale"
type="number"
label="Z Scale Value"
outlined
dense
hide-details
step="0.1"
class="custom-number-input"
:min="1"
/>
</v-col>
</v-row>
</v-container>
</v-card-text>
<v-card-actions class="justify-center pb-4">
<v-btn
variant="text"
color="white"
@click="$emit('close')"
class="px-4"
>
Close
</v-btn>
<v-btn
variant="outlined"
color="white"
@click="$emit('close')"
class="px-4"
>
Apply
</v-btn>
</v-card-actions>
</v-card>
</v-sheet>
</template>

<script setup>
const zScale = defineModel({ type: Number, default: 1 })
const props = defineProps({
width: { type: Number, default: 400 },
})
</script>

<style scoped>
.z-scaling-menu {
position: absolute;
z-index: 2;
top: 90px;
right: 55px;
border-radius: 12px !important;
}

.custom-number-input :deep(.v-input__control) {
min-height: 48px;
}

.v-btn {
border-radius: 8px;
text-transform: none;
font-weight: 500;
letter-spacing: normal;
}
</style>
4 changes: 2 additions & 2 deletions test/components/FeedBack/ErrorsBanner.nuxt.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const vuetify = createVuetify({
})

describe("FeedBackErrorBanner.vue", async () => {
test(`Test reload`, async () => {
;(test(`Test reload`, async () => {
const wrapper = mount(FeedBackErrorBanner, {
global: {
plugins: [createTestingPinia(), vuetify],
Expand Down Expand Up @@ -48,5 +48,5 @@ describe("FeedBackErrorBanner.vue", async () => {
const v_btn = wrapper.findAll(".v-btn")
await v_btn[1].trigger("click")
expect(feedback_store.server_error).toBe(false)
})
}))
})
Loading