Skip to content

Commit 7955c52

Browse files
committed
Update Donations panel styling, remove collapsible About section, and adjust modal overlay opacity
1 parent 55ec777 commit 7955c52

3 files changed

Lines changed: 10 additions & 15 deletions

File tree

‎packages/ui/src/components/editor/panel/Donations/Donations.module.scss‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
}
77

88
.about {
9-
padding: 0 12px;
9+
margin: 0 12px;
10+
background-color: var(--vscode-list-hoverBackground);
11+
padding: 6px 8px;
12+
border-radius: 8px;
13+
user-select: text;
1014
}
1115

1216
.sponsors {
@@ -118,7 +122,7 @@
118122

119123
&__note {
120124
background-color: var(--vscode-list-hoverBackground);
121-
padding: 5px 8px;
125+
padding: 6px 8px;
122126
border-radius: 8px;
123127
}
124128
}

‎packages/ui/src/components/editor/panel/Donations/Donations.tsx‎

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ export type DonationsProps = {
8484

8585
export const Donations: React.FC<DonationsProps> = (props) => {
8686
const observer_target = useRef<HTMLDivElement>(null)
87-
const [is_about_collapsed, set_about_collapsed] = useState(false)
8887
const [is_sponsors_collapsed, set_sponsors_collapsed] = useState(true)
8988
const [is_links_collapsed, set_links_collapsed] = useState(true)
9089
const [is_wallets_collapsed, set_wallets_collapsed] = useState(true)
@@ -148,17 +147,9 @@ export const Donations: React.FC<DonationsProps> = (props) => {
148147
<Scrollable>
149148
<div className={styles.container}>
150149
<div className={styles.about}>
151-
<Fieldset
152-
is_collapsed={is_about_collapsed}
153-
label="About"
154-
on_toggle_collapsed={() =>
155-
set_about_collapsed(!is_about_collapsed)
156-
}
157-
>
158-
Hi there! Your donation supports my mission to help build a
159-
sustainable future for AI coding, providing free, prompt caching
160-
friendly tooling for everyone. Thank you.
161-
</Fieldset>
150+
Hi there! Your donation supports my mission to help build a
151+
sustainable future for AI coding, providing free, prompt caching
152+
friendly tooling for everyone. Thank you.
162153
</div>
163154
<div className={styles.sponsors}>
164155
<Fieldset

‎packages/ui/src/components/editor/panel/modals/Modal/Modal.module.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
top: 0;
1818
left: 0;
1919
background-color: var(--vscode-sideBar-background);
20-
opacity: 0.4;
20+
opacity: 0.5;
2121
}
2222
}
2323

0 commit comments

Comments
 (0)