File tree Expand file tree Collapse file tree
packages/ui/src/components/editor/panel Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ import styles from './Donations.module.scss'
22import { useEffect , useRef , useState } from 'react'
33import cn from 'classnames'
44import { Scrollable } from '../Scrollable'
5- import { Button } from '../../common/Button/Button'
65import { Fieldset } from '../Fieldset'
6+ import { TextButton } from '../TextButton'
77
88const get_href_from_url_like_string = ( text : string ) : string | null => {
99 if ( / \s / . test ( text ) ) {
@@ -136,7 +136,8 @@ export const Donations: React.FC<DonationsProps> = (props) => {
136136 < div className = { styles . container } >
137137 < div className = { styles . about } >
138138 Hi there! By donating to Code Web Chat, you’re supporting my mission
139- to independently build the world’s best free and open-source AI coding tools.
139+ to independently build the world’s best free and open-source AI
140+ coding tools.
140141 < br />
141142 Thank you for your support!
142143 </ div >
@@ -179,12 +180,9 @@ export const Donations: React.FC<DonationsProps> = (props) => {
179180 < span className = { styles . wallets__wallet__hash } >
180181 { wallet . address }
181182 </ span >
182- < Button
183- is_small
184- on_click = { ( ) => props . on_show_qr_code ( wallet ) }
185- >
183+ < TextButton on_click = { ( ) => props . on_show_qr_code ( wallet ) } >
186184 Scan QR
187- </ Button >
185+ </ TextButton >
188186 </ div >
189187 </ div >
190188 ) ) }
Original file line number Diff line number Diff line change 55 border-radius : 10px ;
66
77 & __label {
8- padding : 8px 12 px 8px 12 px ;
8+ padding : 8px 10 px 8px 10 px ;
99 font-size : 11px ;
1010 font-weight : 600 ;
1111 color : var (--cwc-text-color-dimmed );
2929 display : flex ;
3030 flex-direction : column ;
3131 gap : 8px ;
32- padding : 2px 12 px 12 px 12 px ;
32+ padding : 2px 10 px 10 px 10 px ;
3333 }
3434}
Original file line number Diff line number Diff line change 11.button {
2- font-size : 12px ;
32 color : var (--vscode-textLink-foreground );
3+ white-space : nowrap ;
44
55 & :disabled {
66 opacity : 0.5 ;
Original file line number Diff line number Diff line change 2424.icon {
2525 font-size : 30px !important ;
2626 text-align : center ;
27- margin -top : 24 px ;
27+ padding -top : 16 px ;
2828 display : flex ;
2929 justify-content : center ;
3030
4242 font-weight : 500 ;
4343 font-size : 14px ;
4444 padding : 12px 12px 0 12px ;
45+
46+ & --with-icon {
47+ padding-top : 6px ;
48+ }
4549}
4650
4751.scrollable {
Original file line number Diff line number Diff line change @@ -37,7 +37,15 @@ export const Modal: React.FC<Props> = (props) => {
3737 />
3838 ) }
3939
40- { props . title && < div className = { styles . title } > { props . title } </ div > }
40+ { props . title && (
41+ < div
42+ className = { cn ( styles . title , {
43+ [ styles [ 'title--with-icon' ] ] : ! ! props . icon
44+ } ) }
45+ >
46+ { props . title }
47+ </ div >
48+ ) }
4149
4250 { props . content_slot &&
4351 ( props . content_max_height ? (
You can’t perform that action at this time.
0 commit comments