File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
frontend-shared/src/components
launchpad/src/components/code Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 25
25
:aria-hidden =" !isOpen"
26
26
:class =" {
27
27
'overflow-auto': isOpen && overflow,
28
+ 'border rounded rounded-t-none bg-light-50 border-gray-100 mb-4 w-full block': isOpen && fileRow,
29
+ 'overflow-hidden': !isOpen && fileRow
28
30
}"
29
31
>
30
32
<slot
@@ -45,12 +47,14 @@ const props = withDefaults(defineProps<{
45
47
lazy? : boolean
46
48
disable? : boolean
47
49
overflow? : boolean
50
+ fileRow? : boolean
48
51
}>(), {
49
52
initiallyOpen: false ,
50
53
maxHeight: ' 500px' ,
51
54
lazy: false ,
52
55
disable: false ,
53
56
overflow: true ,
57
+ fileRow: false ,
54
58
})
55
59
56
60
const [isOpen, toggle] = useToggle (props .initiallyOpen )
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<Collapsible
3
- class =" border rounded bg-light-50 border-gray-100 mb-4 w-full block
4
- overflow-hidden hocus-default"
3
+ class =" rounded bg-light-50 border-gray-100 mb-4 w-full block"
5
4
max-height =" 500px"
6
5
:initially-open =" statusInfo.initiallyOpen"
7
6
:data-cy =" status"
7
+ :file-row =" true"
8
8
>
9
9
<template #target =" {open } " >
10
10
<ListRowHeader
11
- :class =" { 'border-b border-b-gray-100 rounded-b-none ': open }"
12
- class =" cursor-pointer font-medium"
11
+ :class =" { 'rounded-b-none mb-0.1em default-ring': open, 'overflow-hidden ': ! open }"
12
+ class =" border hocus-default cursor-pointer font-medium"
13
13
:description =" description"
14
14
:icon =" statusInfo.icon"
15
15
>
You can’t perform that action at this time.
0 commit comments