Skip to content

Let's use AI to Earn!

guolv

bulaienaofutuojiesenzhangcdeb8b912fd4
diff --git a/src/app/[lng]/accounts/components/CalendarTiming/index.tsx b/src/app/[lng]/accounts/components/CalendarTiming/index.tsx
index 13b88271..b492e9d3 100644
--- a/src/app/[lng]/accounts/components/CalendarTiming/index.tsx
+++ b/src/app/[lng]/accounts/components/CalendarTiming/index.tsx
@@ -95,47 +95,80 @@ const CalendarTiming = memo(
// Channel 筛选器下拉菜单内容
const channelDropdownContent = (
- <div className={styles.channelDropdown}>
- <div className={styles.searchContainer}>
+ <div style={{
+ width: '280px',
+ background: 'white',
+ borderRadius: '8px',
+ boxShadow: '0 4px 12px rgba(0, 0, 0, 0.15)',
+ overflow: 'hidden'
+ }}>
+ <div style={{ padding: '16px 16px 0 16px' }}>
<Input
placeholder={t('listMode.searchChannels' as any)}
prefix={<SearchOutlined />}
value={channelSearchText}
onChange={(e) => setChannelSearchText(e.target.value)}
- className={styles.searchInput}
+ style={{ width: '100%' }}
/>
</div>
- <div className={styles.channelList}>
- {filteredAccounts.map(account => {
- const platInfo = AccountPlatInfoMap.get(account.type);
- return (
- <div
- key={account.id}
- className={`${styles.channelItem} ${accountActive?.id === account.id ? styles.channelItemActive : ''}`}
- onClick={() => handleChannelSelect(account)}
- >
- <div className={styles.channelInfo}>
- <Avatar
- src={getOssUrl(account.avatar)}
- size={32}
- className={styles.channelAvatar}
- >
- {account.nickname?.[0] || account.account?.[0]}
- </Avatar>
- <div className={styles.channelDetails}>
- <span className={styles.channelName}>{account.nickname || account.account}</span>
- <div className={styles.channelPlatform}>
- <img src={platInfo?.icon} alt={platInfo?.name} />
- <span>{platInfo?.name}</span>
+ <div style={{ maxHeight: '300px', overflowY: 'auto', padding: '8px 0' }}>
+ {filteredAccounts.length > 0 ? (
+ filteredAccounts.map(account => {
+ const platInfo = AccountPlatInfoMap.get(account.type);
+ return (
+ <div
+ key={account.id}
+ style={{
+ padding: '8px 16px',
+ cursor: 'pointer',
+ transition: 'all 0.2s ease',
+ borderBottom: '1px solid #f5f5f5',
+ backgroundColor: accountActive?.id === account.id ? '#e6f7ff' : 'transparent'
+ }}
+ onClick={() => handleChannelSelect(account)}
+ onMouseEnter={(e) => {
+ if (accountActive?.id !== account.id) {
+ e.currentTarget.style.backgroundColor = '#f5f5f5';
+ }
+ }}
+ onMouseLeave={(e) => {
+ if (accountActive?.id !== account.id) {
+ e.currentTarget.style.backgroundColor = 'transparent';
+ }
+ }}
+ >
+ <div style={{ display: 'flex', alignItems: 'center', gap: '12px' }}>
+ <Avatar
+ src={getOssUrl(account.avatar)}
+ size={32}
+ style={{ flexShrink: 0, border: '1px solid #f0f0f0' }}
+ >
+ {account.nickname?.[0] || account.account?.[0]}
+ </Avatar>
+ <div style={{ flex: 1, minWidth: 0 }}>
+ <div style={{
+ fontSize: '14px',
+ color: '#333',
+ fontWeight: 500,
+ marginBottom: '4px',
+ overflow: 'hidden',
+ textOverflow: 'ellipsis',
+ whiteSpace: 'nowrap'
+ }}>
+ {account.nickname || account.account}
+ </div>
+ <div style={{ display: 'flex', alignItems: 'center', gap: '6px', fontSize: '12px', color: '#666' }}>
+ <img src={platInfo?.icon} alt={platInfo?.name} style={{ width: '16px', height: '16px', borderRadius: '2px' }} />
+ <span >{platInfo?.name}</span>
+ </div>
</div>
</div>
</div>
- </div>
- );
- })}
- {filteredAccounts.length === 0 && (
- <div className={styles.noChannels}>
- {t('listMode.noChannelsFound' as any)}
+ );
+ })
+ ) : (
+ <div style={{ textAlign: 'center', color: '#999', fontSize: '14px', padding: '40px 16px' }}>
+ {accountList.length === 0 ? '暂无账户' : t('listMode.noChannelsFound' as any)}
</div>
)}
</div>
@@ -144,34 +177,54 @@ const CalendarTiming = memo(
// Channel 筛选器按钮
const channelFilter = (
- <div className={styles.channelFilterButton}>
+ <div style={{ display: 'flex', alignItems: 'center', marginTop: '-15px' }}>
<Dropdown
overlay={channelDropdownContent}
trigger={['click']}
placement="bottomRight"
- overlayClassName={styles.channelDropdownOverlay}
>
- <Button className={styles.filterButton}>
- <div className={styles.filterButtonContent}>
+ <Button style={{
+ height: '32px',
+ padding: '0 12px',
+ borderRadius: '6px',
+ border: 'none',
+ background: 'white',
+ transition: 'all 0.2s ease'
+ }}>
+ <div style={{ display: 'flex', alignItems: 'center', gap: '8px', paddingBottom: '2px' }}>
{accountActive ? (
<>
<Avatar
src={getOssUrl(accountActive.avatar)}
size={20}
- className={styles.filterButtonAvatar}
+ style={{ flexShrink: 0 }}
>
{accountActive.nickname?.[0] || accountActive.account?.[0]}
</Avatar>
- <span className={styles.filterButtonText}>
+ <span style={{
+ fontSize: '14px',
+ color: '#333',
+ width: '52px',
+ overflow: 'hidden',
+ textOverflow: 'ellipsis',
+ whiteSpace: 'nowrap'
+ }}>
{accountActive.nickname || accountActive.account}
</span>
</>
) : (
- <span className={styles.filterButtonText}>
+ <span style={{
+ fontSize: '14px',
+ color: '#333',
+ width: '80px',
+ overflow: 'hidden',
+ textOverflow: 'ellipsis',
+ whiteSpace: 'nowrap'
+ }}>
{t('listMode.selectChannel' as any)}
</span>
)}
- <DownOutlined className={styles.filterButtonIcon} />
+ <DownOutlined style={{ fontSize: '12px', color: '#666', flexShrink: 0 }} />
</div>
</Button>
</Dropdown>