Skip to content

Commit ddd97f0

Browse files
committed
Add chevron to show whether row is expanded
1 parent 32d8968 commit ddd97f0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

extensions/ql-vscode/src/view/data-extensions-editor/LibraryRow.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { pluralize } from "../../pure/word";
77
import { ModeledMethodDataGrid } from "./ModeledMethodDataGrid";
88
import { calculateModeledPercentage } from "./modeled";
99
import { decimalFormatter, percentFormatter } from "./formatters";
10+
import { Codicon } from "../common";
1011

1112
const LibraryContainer = styled.div`
1213
margin-bottom: 1rem;
@@ -69,6 +70,11 @@ export const LibraryRow = ({
6970
return (
7071
<LibraryContainer>
7172
<TitleContainer onClick={toggleExpanded} aria-expanded={isExpanded}>
73+
{isExpanded ? (
74+
<Codicon name="chevron-down" label="Collapse" />
75+
) : (
76+
<Codicon name="chevron-right" label="Expand" />
77+
)}
7278
{libraryName}
7379
{isExpanded ? null : (
7480
<>

0 commit comments

Comments
 (0)