2026-05-08-01-19-42 优化融合视角和模型位姿控制
This commit is contained in:
@@ -1111,7 +1111,7 @@ export default function ProjectLibrary({
|
||||
|
||||
<div className="flex-1 bg-white rounded-3xl border border-slate-100 shadow-sm overflow-hidden p-8">
|
||||
{viewMode === 'dicom' && (
|
||||
<div className="h-full flex gap-8">
|
||||
<div className="h-full min-h-0 flex gap-8">
|
||||
{/* Left: DICOM Viewer */}
|
||||
<div className="flex-1 bg-slate-950 rounded-2xl relative border border-slate-800 flex items-center justify-center p-12">
|
||||
<div className="absolute top-4 right-4 z-10 flex rounded-lg bg-white/5 p-1 backdrop-blur-sm border border-white/10">
|
||||
@@ -1270,8 +1270,8 @@ export default function ProjectLibrary({
|
||||
</div>
|
||||
</div>
|
||||
{/* Right: Sub-module List */}
|
||||
<div className="w-80 h-full flex flex-col overflow-hidden">
|
||||
<div className="shrink-0 space-y-4 pb-4">
|
||||
<div className="w-80 h-full min-h-0 overflow-y-auto pr-1 scrollbar-hide">
|
||||
<div className="space-y-4 pb-4">
|
||||
<div className="rounded-2xl bg-slate-50 border border-slate-100 p-4">
|
||||
<div className="flex items-center justify-between mb-3">
|
||||
<p className="text-xs font-bold text-slate-700">模型显示</p>
|
||||
@@ -1360,7 +1360,7 @@ export default function ProjectLibrary({
|
||||
<Eye size={16} />
|
||||
</button>
|
||||
</div>
|
||||
<div className="flex-1 overflow-y-auto space-y-2 pr-1 scrollbar-hide">
|
||||
<div className="space-y-2 pb-4">
|
||||
{stlFiles.map((fileName, i) => {
|
||||
const name = fileName.replace(/\.stl$/i, '');
|
||||
const style = moduleStyles[fileName] ?? { visible: true, color: defaultModuleColors[i % defaultModuleColors.length], opacity: 0.72, partId: i + 1 };
|
||||
|
||||
Reference in New Issue
Block a user