Skip to content

Commit c169575

Browse files
committed
Refactor footer layout and update action button styles
1 parent 6dd7636 commit c169575

3 files changed

Lines changed: 9 additions & 24 deletions

File tree

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

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111
padding: 6px 4px;
1212
}
1313

14-
&__left {
14+
> div {
1515
display: flex;
16-
align-items: center;
1716
gap: 4px;
1817
}
1918

@@ -33,18 +32,13 @@
3332
background-color 0.25s ease,
3433
color 0.25s ease;
3534

36-
&:focus {
37-
outline: none;
38-
}
39-
4035
&:hover {
41-
filter: brightness(1.08);
42-
text-decoration: none;
36+
filter: brightness(0.85);
4337
}
4438

4539
&--discord {
4640
background-color: #5865f2;
47-
color: #ffffff;
41+
color: white;
4842

4943
> svg {
5044
width: 16px;
@@ -54,11 +48,7 @@
5448

5549
&--donate {
5650
background-color: #ffdd00;
57-
color: #000000;
58-
59-
&:hover {
60-
filter: brightness(0.95);
61-
}
51+
color: black;
6252
}
6353

6454
&--alt {
@@ -71,8 +61,4 @@
7161
color 0.5s ease;
7262
}
7363
}
74-
75-
&__right {
76-
display: flex;
77-
}
7864
}

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@ export const Footer: React.FC<Props> = (props) => {
4545
onMouseEnter={clear_leave_timeout}
4646
onMouseLeave={handle_footer_mouse_leave}
4747
>
48-
<div
49-
className={styles.footer__left}
50-
onMouseEnter={handle_left_mouse_enter}
51-
>
48+
<div onMouseEnter={handle_left_mouse_enter}>
5249
<a
5350
href="https://discord.gg/KJySXsrSX5"
5451
className={get_icon_button_class(
@@ -72,7 +69,7 @@ export const Footer: React.FC<Props> = (props) => {
7269
</button>
7370
</div>
7471

75-
<div className={styles.footer__right}>
72+
<div>
7673
<CompactableActionButton
7774
is_compact={compact_step >= 2}
7875
on_click={props.on_history_click}
@@ -90,7 +87,7 @@ export const Footer: React.FC<Props> = (props) => {
9087
is_compact={compact_step >= 3}
9188
on_click={on_commit_click}
9289
disabled={!has_changes_to_commit}
93-
codicon="git-commit"
90+
codicon="source-control"
9491
label={t('footer.action.commit')}
9592
/>
9693
<CompactableActionButton

‎packages/ui/src/components/editor/prompt-view/CompactableActionButton/CompactableActionButton.module.scss‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@
77
height: var(--button-size);
88
padding: 0 6px 0 4px;
99
border-radius: 4px;
10+
border: 1px solid var(--cwc-border-color-dimmed);
1011
color: inherit;
1112

1213
&:hover:not(:disabled) {
1314
background-color: var(--vscode-toolbar-hoverBackground);
15+
border-color: var(--cwc-border-color);
1416
text-decoration: none;
1517
}
1618

0 commit comments

Comments
 (0)