Skip to content

Commit 3c19103

Browse files
committed
Standardize the response preview file list appearance by applying borders and fixed height to file items
1 parent f3b5c7a commit 3c19103

2 files changed

Lines changed: 12 additions & 9 deletions

File tree

‎packages/ui/src/components/editor/panel/ResponsePreview/ResponsePreview.module.scss‎

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.container {
22
display: flex;
33
flex-direction: column;
4-
padding: var(--padding-4px) 0 var(--padding-8px) 0;
4+
padding: var(--padding-4px) 0 var(--padding-12px) 0;
55
gap: var(--padding-8px);
66
}
77

@@ -42,7 +42,9 @@
4242
}
4343

4444
.list {
45-
display: block;
45+
display: flex;
46+
flex-direction: column;
47+
gap: var(--padding-4px);
4648

4749
> div:first-child {
4850
margin-top: 0;
@@ -57,10 +59,15 @@
5759
align-items: center;
5860
justify-content: space-between;
5961
gap: var(--padding-8px);
60-
padding: 0 var(--padding-12px);
61-
height: var(--list-item-height);
62+
border: 1px solid var(--cwc-border-color-dimmed);
63+
padding: 0 var(--padding-8px);
64+
margin: 0 var(--padding-12px);
65+
height: 34px;
66+
border-radius: 8px;
67+
6268
&:hover {
6369
background-color: var(--vscode-list-hoverBackground);
70+
border-color: var(--cwc-border-color);
6471

6572
.list__file__actions {
6673
display: flex;
@@ -69,10 +76,6 @@
6976

7077
&--selected {
7178
background-color: var(--vscode-list-inactiveSelectionBackground);
72-
73-
&:hover {
74-
background-color: var(--vscode-list-inactiveSelectionBackground);
75-
}
7679
}
7780

7881
&__left {

‎packages/ui/src/components/editor/panel/ResponsePreview/components/TextItem.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const TextItem: FC<Props> = ({ content, is_expanded, on_toggle }) => {
2626
<div ref={ref} className={styles.hidden}>
2727
<div className={styles.line} />
2828
<IconButton
29-
codicon_icon="add"
29+
codicon_icon="list-flat"
3030
on_click={() => ref.current && on_toggle(ref.current)}
3131
title="Show text"
3232
/>

0 commit comments

Comments
 (0)