Skip to content

Commit a863b52

Browse files
committed
Restrict the 'APPLY' button to web mode in the HomeView and refine general button styling
1 parent 9bc9886 commit a863b52

3 files changed

Lines changed: 22 additions & 20 deletions

File tree

packages/ui/src/components/editor/Enter/Enter.module.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
display: flex;
33
align-items: center;
44
justify-content: space-between;
5-
padding: var(--padding-10px) var(--padding-16px);
5+
padding: var(--padding-8px) var(--padding-12px);
66
background-color: var(--vscode-button-background);
77
color: var(--vscode-button-foreground);
8-
border-radius: var(--border-radius-10px);
8+
border-radius: var(--border-radius-6px);
99

1010
&:hover {
1111
background-color: var(--vscode-button-hoverBackground);

packages/vscode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "gemini-coder",
33
"displayName": "Code Web Chat (CWC)",
44
"description": "Free AI pair programming",
5-
"version": "1.301.0",
5+
"version": "1.302.0",
66
"scripts": {
77
"build": "npx vsce package --no-dependencies",
88
"vscode:prepublish": "rimraf out && npm run compile",

packages/vscode/src/view/frontend/home/HomeView/HomeView.tsx

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -543,23 +543,25 @@ export const HomeView: React.FC<Props> = (props) => {
543543
</a>
544544
</div>
545545
<div className={styles.footer__right}>
546-
<button
547-
className={cn(
548-
styles.footer__button,
549-
styles['footer__button--outlined']
550-
)}
551-
onClick={handle_apply_click}
552-
title={
553-
props.can_apply_clipboard
554-
? 'Integrate copied message or a code block'
555-
: 'Nothing applicable found in clipboard'
556-
}
557-
disabled={
558-
!props.can_apply_clipboard || is_apply_disabled_temporarily
559-
}
560-
>
561-
APPLY
562-
</button>
546+
{props.home_view_type == HOME_VIEW_TYPES.WEB && (
547+
<button
548+
className={cn(
549+
styles.footer__button,
550+
styles['footer__button--outlined']
551+
)}
552+
onClick={handle_apply_click}
553+
title={
554+
props.can_apply_clipboard
555+
? 'Integrate copied message or a code block'
556+
: 'Nothing applicable found in clipboard'
557+
}
558+
disabled={
559+
!props.can_apply_clipboard || is_apply_disabled_temporarily
560+
}
561+
>
562+
APPLY
563+
</button>
564+
)}
563565
<button
564566
className={cn(
565567
styles.footer__button,

0 commit comments

Comments
 (0)