Refactor Model.vue: clean up unused styles and add back expansion panel buttons

This commit is contained in:
Yeicor
2025-07-19 17:12:30 +02:00
parent 9ef372f576
commit 0c51b614e9

View File

@@ -331,7 +331,7 @@ if (props.viewer) onViewerReady(props.viewer); else watch((() => props.viewer) a
<template>
<v-expansion-panel :value="modelName">
<v-expansion-panel-title collapse-icon="hide-this-icon" expand-icon="hide-this-icon">
<v-expansion-panel-title>
<v-btn-toggle v-model="enabledFeatures" color="surface-light" multiple @click.stop>
<v-btn icon>
<v-tooltip activator="parent">Toggle Faces ({{ faceCount }})</v-tooltip>
@@ -430,10 +430,6 @@ if (props.viewer) onViewerReady(props.viewer); else watch((() => props.viewer) a
}
/* More compact accordions */
.v-expansion-panel {
margin-top: 0 !important;
}
.v-expansion-panel-title {
padding: 0;
}
@@ -444,11 +440,11 @@ if (props.viewer) onViewerReady(props.viewer); else watch((() => props.viewer) a
}
.v-btn {
--v-btn-height: 16px;
--v-btn-height: 12px;
}
.model-name {
width: 179px;
width: 172px;
font-size: 110%;
overflow-x: clip;
overflow-y: visible; /* HACK: bottom of text is lost otherwise (due to buggy -webkit-box bounds?) */
@@ -465,10 +461,6 @@ if (props.viewer) onViewerReady(props.viewer); else watch((() => props.viewer) a
padding: 0 !important;
}
.hide-this-icon {
display: none !important;
}
.mdi-checkbox-blank-outline { /* HACK: mdi is not fully imported, only required icons... */
background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z"/></svg>');
}