mirror of
https://github.com/yeicor-3d/yet-another-cad-viewer.git
synced 2025-12-19 22:24:17 +01:00
Fix frontend style issues
This commit is contained in:
@@ -462,20 +462,18 @@ window.addEventListener('keydown', (event) => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="select-parent">
|
<v-btn icon @click="toggleSelection" :color="selectionEnabled ? 'surface-light' : ''">
|
||||||
<v-btn icon @click="toggleSelection" :color="selectionEnabled ? 'surface-light' : ''">
|
<v-tooltip activator="parent">{{ selectionEnabled ? 'Disable (s)election mode' : 'Enable (s)election mode' }}
|
||||||
<v-tooltip activator="parent">{{ selectionEnabled ? 'Disable (s)election mode' : 'Enable (s)election mode' }}
|
|
||||||
</v-tooltip>
|
|
||||||
<svg-icon type="mdi" :path="mdiCursorDefaultClick"/>
|
|
||||||
</v-btn>
|
|
||||||
<v-tooltip :text="'Select only ' + selectFilter.toString().toLocaleLowerCase()" :open-on-click="false">
|
|
||||||
<template v-slot:activator="{ props }">
|
|
||||||
<v-select v-bind="props" class="select-only" variant="underlined"
|
|
||||||
:items="['Any (S)', '(F)aces', '(E)dges', '(V)ertices']"
|
|
||||||
v-model="selectFilter"/>
|
|
||||||
</template>
|
|
||||||
</v-tooltip>
|
</v-tooltip>
|
||||||
</div>
|
<svg-icon type="mdi" :path="mdiCursorDefaultClick"/>
|
||||||
|
</v-btn>
|
||||||
|
<v-tooltip :text="'Select only ' + selectFilter.toString().toLocaleLowerCase()" :open-on-click="false">
|
||||||
|
<template v-slot:activator="{ props }">
|
||||||
|
<v-select v-bind="props" class="select-only" variant="underlined"
|
||||||
|
:items="['Any (S)', '(F)aces', '(E)dges', '(V)ertices']"
|
||||||
|
v-model="selectFilter"/>
|
||||||
|
</template>
|
||||||
|
</v-tooltip>
|
||||||
<v-btn icon @click="toggleHighlightNextSelection" :color="highlightNextSelection[0] ? 'surface-light' : ''">
|
<v-btn icon @click="toggleHighlightNextSelection" :color="highlightNextSelection[0] ? 'surface-light' : ''">
|
||||||
<v-tooltip activator="parent">(H)ighlight the next clicked element in the models list</v-tooltip>
|
<v-tooltip activator="parent">(H)ighlight the next clicked element in the models list</v-tooltip>
|
||||||
<svg-icon type="mdi" :path="mdiFeatureSearch"/>
|
<svg-icon type="mdi" :path="mdiFeatureSearch"/>
|
||||||
@@ -494,20 +492,11 @@ window.addEventListener('keydown', (event) => {
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
/* Very hacky styling... */
|
|
||||||
.select-parent {
|
|
||||||
height: 48px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select-parent .v-btn {
|
|
||||||
position: relative;
|
|
||||||
top: -20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select-only {
|
.select-only {
|
||||||
display: inline-block;
|
float: right;
|
||||||
width: calc(100% - 48px);
|
height: 36px;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: -12px;
|
top: -12px;
|
||||||
|
width: calc(100% - 48px);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user