Skip to content

Commit 7bda763

Browse files
Changes buttons to avoid custom styling
1 parent 261f11e commit 7bda763

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

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

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,6 @@ const UnsavedLabel = styled.span`
6060
border-radius: 0.2em;
6161
`;
6262

63-
const TitleButton = styled(VSCodeButton)`
64-
background-color: transparent;
65-
66-
&:hover {
67-
pointer: cursor;
68-
background-color: var(--vscode-button-secondaryBackground);
69-
}
70-
`;
71-
7263
const ButtonsContainer = styled.div`
7364
display: flex;
7465
gap: 0.4em;
@@ -144,14 +135,14 @@ export const LibraryRow = ({
144135
</ModeledPercentage>
145136
{hasUnsavedChanges ? <UnsavedLabel>UNSAVED</UnsavedLabel> : null}
146137
</NameContainer>
147-
<TitleButton onClick={handleModelWithAI}>
138+
<VSCodeButton appearance="icon" onClick={handleModelWithAI}>
148139
<Codicon name="lightbulb-autofix" label="Model with AI" />
149140
&nbsp;Model with AI
150-
</TitleButton>
151-
<TitleButton onClick={handleModelFromSource}>
141+
</VSCodeButton>
142+
<VSCodeButton appearance="icon" onClick={handleModelFromSource}>
152143
<Codicon name="code" label="Model from source" />
153144
&nbsp;Model from source
154-
</TitleButton>
145+
</VSCodeButton>
155146
</TitleContainer>
156147
{isExpanded && (
157148
<>

0 commit comments

Comments
 (0)