File tree Expand file tree Collapse file tree
packages/core/src/client/webcomponents Expand file tree Collapse file tree Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -161,10 +161,34 @@ const panelStyle = computed<CSSProperties>(() => {
161161 return style
162162})
163163
164+ const panelLayoutClass = computed (() => {
165+ switch (store .position ) {
166+ case ' bottom' :
167+ return ' flex flex-col-reverse'
168+ case ' top' :
169+ return ' flex flex-col'
170+ case ' left' :
171+ return ' flex flex-row'
172+ case ' right' :
173+ return ' flex flex-row-reverse'
174+ default :
175+ return ' flex flex-col-reverse'
176+ }
177+ })
178+
164179const toolbarClass = computed (() => {
165- return isVertical .value
166- ? ' flex-col h-full w-[40px] border-r border-base'
167- : ' flex-row w-full border-b border-base'
180+ switch (store .position ) {
181+ case ' bottom' :
182+ return ' flex-row w-full border-t border-base'
183+ case ' top' :
184+ return ' flex-row w-full border-b border-base'
185+ case ' left' :
186+ return ' flex-col h-full w-[40px] border-r border-base'
187+ case ' right' :
188+ return ' flex-col h-full w-[40px] border-l border-base'
189+ default :
190+ return ' flex-row w-full border-t border-base'
191+ }
168192})
169193
170194const contentClass = computed (() => {
@@ -178,7 +202,7 @@ const contentClass = computed(() => {
178202 <div
179203 id =" vite-devtools-edge-panel"
180204 class =" bg-glass:75 border border-base color-base shadow overflow-hidden z-floating-anchor font-sans text-[15px] box-border"
181- :class =" `flex ${isVertical ? 'flex-row' : 'flex-col'}` "
205+ :class =" panelLayoutClass "
182206 :style =" panelStyle"
183207 >
184208 <DockPanelResizer v-if =" hasPanelContent" :panel =" context.panel" edge-mode />
You can’t perform that action at this time.
0 commit comments