Skip to content

Commit f07a49b

Browse files
authored
chore: updated styling for configuration files (#23781)
1 parent 405e7f7 commit f07a49b

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

packages/frontend-shared/src/components/Collapsible.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
:aria-hidden="!isOpen"
2626
:class="{
2727
'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
2830
}"
2931
>
3032
<slot
@@ -45,12 +47,14 @@ const props = withDefaults(defineProps<{
4547
lazy?: boolean
4648
disable?: boolean
4749
overflow?: boolean
50+
fileRow?: boolean
4851
}>(), {
4952
initiallyOpen: false,
5053
maxHeight: '500px',
5154
lazy: false,
5255
disable: false,
5356
overflow: true,
57+
fileRow: false,
5458
})
5559
5660
const [isOpen, toggle] = useToggle(props.initiallyOpen)

packages/launchpad/src/components/code/FileRow.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<template>
22
<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"
54
max-height="500px"
65
:initially-open="statusInfo.initiallyOpen"
76
:data-cy="status"
7+
:file-row="true"
88
>
99
<template #target="{open}">
1010
<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"
1313
:description="description"
1414
:icon="statusInfo.icon"
1515
>

0 commit comments

Comments
 (0)