2026-10-21 08:09:43 +00:00
|
|
|
<script setup lang="ts">
|
R Top bar like the parts bar, no left panel
The parts panel on the left is gone: pinned parts sit at the start of the
bottom bar, components open from the pencil in its Components list (or a
double-click), examples load from there too. The side panel moved to the
left. The top bar floats across the whole width: menu with the project,
Main and the way into the open component instead of the circuit
selector, Challenges in a drop-down, clock, search, undo, settings,
share and account. / and the bar's search open quick add.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 18:17:41 +00:00
|
|
|
// The side panel, hidden, shrinks to this strip; its buttons bring it back.
|
2026-10-21 08:09:43 +00:00
|
|
|
const ed = useEditor()
|
|
|
|
|
|
|
|
|
|
const TABS = [
|
|
|
|
|
{ id: 'selection', label: 'Selection', icon: 'lucide:mouse-pointer-2' },
|
|
|
|
|
{ id: 'circuit', label: 'Circuit', icon: 'lucide:cpu' },
|
|
|
|
|
{ id: 'pins', label: 'Pins', icon: 'lucide:list' },
|
|
|
|
|
{ id: 'test', label: 'Test', icon: 'lucide:table' },
|
|
|
|
|
] as const
|
|
|
|
|
|
|
|
|
|
function openTab(id: (typeof TABS)[number]['id']) {
|
|
|
|
|
ed.rightTab.value = id
|
|
|
|
|
ed.toggleSidebar('right', true)
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
R Top bar like the parts bar, no left panel
The parts panel on the left is gone: pinned parts sit at the start of the
bottom bar, components open from the pencil in its Components list (or a
double-click), examples load from there too. The side panel moved to the
left. The top bar floats across the whole width: menu with the project,
Main and the way into the open component instead of the circuit
selector, Challenges in a drop-down, clock, search, undo, settings,
share and account. / and the bar's search open quick add.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 18:17:41 +00:00
|
|
|
<aside class="rail">
|
|
|
|
|
<button class="rail-btn" title="Show the side panel ([)" @click="ed.toggleSidebar('right', true)">
|
|
|
|
|
<Icon name="lucide:panel-left-open" class="size-4" />
|
|
|
|
|
</button>
|
|
|
|
|
<button v-for="t in TABS" :key="t.id" class="rail-btn" :title="t.label" @click="openTab(t.id)">
|
|
|
|
|
<Icon :name="t.icon" class="size-4" />
|
2026-10-21 08:09:43 +00:00
|
|
|
</button>
|
|
|
|
|
</aside>
|
|
|
|
|
</template>
|