Skip to content

Commit b850701

Browse files
committed
Reposition and resize the quick actions command panel
1 parent 8f84370 commit b850701

2 files changed

Lines changed: 9 additions & 18 deletions

File tree

packages/vscode/src/view/frontend/home/HomeView/HomeView.module.scss

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,15 @@
3030
display: flex;
3131
flex-direction: column;
3232
padding: var(--padding-4px) 0 var(--padding-12px) 0;
33-
&--with-commands-tooltip-visible {
34-
padding: var(--padding-4px) 0 92px 0;
35-
}
3633
}
3734

3835
.commands {
3936
position: absolute;
4037
z-index: 1;
4138
bottom: calc(24px + 16px + 1px + 4px);
42-
left: 0;
43-
margin: 0 8px;
39+
right: 8px;
4440
padding: 4px 0;
45-
width: calc(100% - 16px);
41+
width: 65vw;
4642
border-radius: var(--border-radius-4px);
4743
transform: translateY(5px);
4844
transition: all 0.1s ease-in-out;
@@ -90,9 +86,10 @@
9086

9187
&--buy-me-a-coffee {
9288
background-color: #f7d600;
89+
transition: all 0.2s ease-in-out;
9390

9491
&:hover {
95-
background-color: #ebcb00;
92+
transform: scale(1.1) rotate(-7deg);
9693
}
9794

9895
> svg {

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

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,7 @@ export const HomeView: React.FC<Props> = (props) => {
225225
height: '100%'
226226
}}
227227
>
228-
<div
229-
className={cn(styles.inner, {
230-
[styles['inner--with-commands-tooltip-visible']]:
231-
is_showing_commands
232-
})}
233-
>
228+
<div className={styles.inner}>
234229
<div className={styles.top}>
235230
<div ref={switch_container_ref}>
236231
<UiSwitch
@@ -264,11 +259,6 @@ export const HomeView: React.FC<Props> = (props) => {
264259
max_width={dropdown_max_width}
265260
/>
266261
)}
267-
{/* <IconButton
268-
codicon_icon="settings-gear"
269-
title="Settings"
270-
on_click={props.on_settings_click}
271-
/> */}
272262
</div>
273263
</div>
274264

@@ -449,6 +439,7 @@ export const HomeView: React.FC<Props> = (props) => {
449439
styles['footer__button--buy-me-a-coffee']
450440
)}
451441
href="https://buymeacoffee.com/robertpiosik"
442+
title="Support author"
452443
>
453444
<Icon variant="BUY_ME_A_COFFEE" />
454445
</a>
@@ -458,6 +449,7 @@ export const HomeView: React.FC<Props> = (props) => {
458449
styles['footer__button--filled']
459450
)}
460451
href="https://x.com/CodeWebChat"
452+
title="@CodeWebChat"
461453
>
462454
<Icon variant="X" />
463455
</a>
@@ -468,6 +460,7 @@ export const HomeView: React.FC<Props> = (props) => {
468460
)}
469461
href="https://www.reddit.com/r/CodeWebChat/"
470462
style={{ overflow: 'hidden' }}
463+
title="Join /r/CodeWebChat"
471464
>
472465
<Icon variant="REDDIT" />
473466
<span style={{ textOverflow: 'ellipsis', overflow: 'hidden' }}>
@@ -489,6 +482,7 @@ export const HomeView: React.FC<Props> = (props) => {
489482
onClick={() => {
490483
set_is_showing_commands(!is_showing_commands)
491484
}}
485+
title="Important commands at a glance"
492486
>
493487
{is_showing_commands ? (
494488
<span className="codicon codicon-chevron-down" />

0 commit comments

Comments
 (0)