Skip to content

Commit 5771cae

Browse files
Merge pull request #33 from Geode-solutions/fix_viewer_dimensions
Fix viewer dimensions
2 parents 9332132 + 5c808e9 commit 5771cae

File tree

2 files changed

+23
-19
lines changed

2 files changed

+23
-19
lines changed

components/RemoteRenderingView.client.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div style="position: relative; ">
2+
<div style="position: relative; width: 100%; height: 100%;">
33
<view-toolbar />
44
<v-col style="overflow: hidden; position: relative; z-index: 0; height: 100%; width: 100%" ref="viewer"
55
@click="get_x_y" @keydown.esc="app_store.toggle_picking_mode(false)" class="pa-0">

components/ViewToolbar.vue

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,34 @@
11
<template>
2-
<v-row dense :class="[$style.floatToolbar, 'flex-column']">
3-
<v-col>
4-
<v-tooltip location="left">
5-
Reset camera
6-
<template #activator="{ props }">
7-
<v-btn @click.stop=reset_camera icon="mdi-crop-free" density="comfortable" v-bind="props" />
8-
</template>
9-
</v-tooltip>
10-
</v-col>
11-
</v-row>
2+
<v-row dense :class="[$style.floatToolbar, 'flex-column']">
3+
<v-col>
4+
<v-tooltip location="left">
5+
Reset camera
6+
<template #activator="{ props }">
7+
<v-btn @click.stop=reset_camera density="comfortable" v-bind="props" icon>
8+
<v-icon size="32">
9+
mdi-cube-scan
10+
</v-icon>
11+
</v-btn>
12+
</template>
13+
</v-tooltip>
14+
</v-col>
15+
</v-row>
1216
</template>
1317

1418
<script setup>
1519
const viewer_store = use_viewer_store()
16-
function reset_camera() {
17-
viewer_store.reset_camera()
20+
function reset_camera () {
21+
viewer_store.reset_camera()
1822
}
1923
</script>
2024

2125
<style module>
2226
.floatToolbar {
23-
position: absolute;
24-
z-index: 2;
25-
right: 20px;
26-
top: 20px;
27-
background-color: rgba(0, 0, 0, 0.4);
28-
border-radius: 16px;
27+
position: absolute;
28+
z-index: 2;
29+
right: 20px;
30+
top: 20px;
31+
background-color: rgba(0, 0, 0, 0.4);
32+
border-radius: 16px;
2933
}
3034
</style>

0 commit comments

Comments
 (0)