File tree Expand file tree Collapse file tree
packages/devtools/src/app/components/display Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ const props = withDefaults(
88 id? : string
99 badges? : boolean
1010 icon? : boolean
11- module? : boolean
1211 }>(),
1312 {
1413 icon: true ,
@@ -32,30 +31,8 @@ const relativePath = computed(() => {
3231 return id
3332})
3433
35- const gridStyles = computed (() => {
36- if (! props .module )
37- return ' '
38-
39- const gridColumns: string [] = []
40- if (props .icon )
41- gridColumns .push (' min-content' )
42-
43- if (props .module )
44- gridColumns .push (' minmax(0,1fr)' )
45- else
46- gridColumns .push (' 100%' )
47-
48- // todo: handle slot, not being used
49-
50- // if (isVirtual.value)
51- // gridColumns.push('min-content')
52-
53- return ` grid-template-columns: ${gridColumns .join (' ' )}; `
54- })
5534const containerClass = computed (() => {
56- return props .module
57- ? ' grid grid-rows-1 items-center gap-1'
58- : ' flex items-center'
35+ return ' flex items-center'
5936})
6037 </script >
6138
@@ -65,18 +42,15 @@ const containerClass = computed(() => {
6542 v-tooltip.bottom-start =" {
6643 content: props.id,
6744 triggers: ['hover', 'focus'],
68- disabled: !module,
6945 }"
7046 my-auto text-sm font-mono
7147 :class =" containerClass"
72- :style =" gridStyles"
7348 >
7449 <DisplayFileIcon v-if =" icon " :filename =" id " mr1.5 />
75- <span :class = " { 'overflow-hidden': module, 'text-truncate': module } " >
50+ <span >
7651 <DisplayHighlightedPath :path =" relativePath " />
7752 </span >
7853 <slot />
79-
8054 <!-- <DisplayBadge
8155 v-if="isVirtual"
8256 class="ml1"
You can’t perform that action at this time.
0 commit comments