Skip to content

Commit a03eb45

Browse files
committed
Update footer action button icons and reorder elements
- show icons at all times - show icons on the left side
1 parent 1d7c7a4 commit a03eb45

2 files changed

Lines changed: 11 additions & 19 deletions

File tree

‎apps/editor/src/views/panel/frontend/components/Layout/Footer/Footer.module.scss‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
flex-shrink: 0;
7070
gap: 4px;
7171
height: var(--button-size);
72-
padding: 0 7px;
72+
padding: 0 7px 0 4px;
7373
border-radius: 4px;
7474
border: 1px solid var(--cwc-border-color);
7575

@@ -89,14 +89,6 @@
8989
display: none;
9090
}
9191

92-
&__icon {
93-
display: none !important;
94-
}
95-
96-
&--compact &__icon {
97-
display: inline !important;
98-
}
99-
10092
&--compact {
10193
padding: 0;
10294
width: var(--button-size);

‎apps/editor/src/views/panel/frontend/components/Layout/Footer/Footer.tsx‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,18 +75,18 @@ export const Footer: React.FC = () => {
7575
title={'Integrate copied chat response or a single code block'}
7676
disabled={is_apply_disabled_temporarily}
7777
>
78-
<span className={styles['footer__action-button__text']}>
79-
{compact_step == 0
80-
? t('action.apply-from-clipboard')
81-
: t('action.apply')}
82-
</span>
8378
<span
8479
className={cn(
8580
styles['footer__action-button__icon'],
8681
'codicon',
87-
'codicon-check'
82+
'codicon-clippy'
8883
)}
8984
/>
85+
<span className={styles['footer__action-button__text']}>
86+
{compact_step == 0
87+
? t('action.apply-from-clipboard')
88+
: t('action.apply')}
89+
</span>
9090
</button>
9191
<button
9292
className={cn(styles['footer__action-button'], {
@@ -98,16 +98,16 @@ export const Footer: React.FC = () => {
9898
}
9999
disabled={!can_undo}
100100
>
101-
<span className={styles['footer__action-button__text']}>
102-
{t('action.undo')}
103-
</span>
104101
<span
105102
className={cn(
106103
styles['footer__action-button__icon'],
107104
'codicon',
108-
'codicon-redo'
105+
'codicon-discard'
109106
)}
110107
/>
108+
<span className={styles['footer__action-button__text']}>
109+
{t('action.undo')}
110+
</span>
111111
</button>
112112
</div>
113113
</div>

0 commit comments

Comments
 (0)