feat: 改变添加到分组按钮位置
This commit is contained in:
78
app/page.jsx
78
app/page.jsx
@@ -4248,45 +4248,6 @@ export default function HomePage() {
|
||||
navbarHeight={navbarHeight}
|
||||
/>
|
||||
|
||||
{currentTab !== 'all' && currentTab !== 'fav' && (
|
||||
<motion.button
|
||||
initial={{ opacity: 0 }}
|
||||
animate={{ opacity: 1 }}
|
||||
className="button-dashed"
|
||||
onClick={() => setAddFundToGroupOpen(true)}
|
||||
style={{
|
||||
width: '100%',
|
||||
height: '48px',
|
||||
border: '2px dashed var(--border)',
|
||||
background: 'transparent',
|
||||
borderRadius: '12px',
|
||||
color: 'var(--muted)',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
gap: '8px',
|
||||
marginBottom: '16px',
|
||||
cursor: 'pointer',
|
||||
transition: 'all 0.2s ease',
|
||||
fontSize: '14px',
|
||||
fontWeight: 500
|
||||
}}
|
||||
onMouseEnter={(e) => {
|
||||
e.currentTarget.style.borderColor = 'var(--primary)';
|
||||
e.currentTarget.style.color = 'var(--primary)';
|
||||
e.currentTarget.style.background = 'rgba(34, 211, 238, 0.05)';
|
||||
}}
|
||||
onMouseLeave={(e) => {
|
||||
e.currentTarget.style.borderColor = 'var(--border)';
|
||||
e.currentTarget.style.color = 'var(--muted)';
|
||||
e.currentTarget.style.background = 'transparent';
|
||||
}}
|
||||
>
|
||||
<PlusIcon width="18" height="18" />
|
||||
<span>添加基金到此分组</span>
|
||||
</motion.button>
|
||||
)}
|
||||
|
||||
<AnimatePresence mode="wait">
|
||||
<motion.div
|
||||
key={viewMode}
|
||||
@@ -4499,6 +4460,45 @@ export default function HomePage() {
|
||||
</div>
|
||||
</motion.div>
|
||||
</AnimatePresence>
|
||||
|
||||
{currentTab !== 'all' && currentTab !== 'fav' && (
|
||||
<motion.button
|
||||
initial={{ opacity: 0 }}
|
||||
animate={{ opacity: 1 }}
|
||||
className="button-dashed"
|
||||
onClick={() => setAddFundToGroupOpen(true)}
|
||||
style={{
|
||||
width: '100%',
|
||||
height: '48px',
|
||||
border: '2px dashed var(--border)',
|
||||
background: 'transparent',
|
||||
borderRadius: '12px',
|
||||
color: 'var(--muted)',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
gap: '8px',
|
||||
marginTop: '16px',
|
||||
cursor: 'pointer',
|
||||
transition: 'all 0.2s ease',
|
||||
fontSize: '14px',
|
||||
fontWeight: 500
|
||||
}}
|
||||
onMouseEnter={(e) => {
|
||||
e.currentTarget.style.borderColor = 'var(--primary)';
|
||||
e.currentTarget.style.color = 'var(--primary)';
|
||||
e.currentTarget.style.background = 'rgba(34, 211, 238, 0.05)';
|
||||
}}
|
||||
onMouseLeave={(e) => {
|
||||
e.currentTarget.style.borderColor = 'var(--border)';
|
||||
e.currentTarget.style.color = 'var(--muted)';
|
||||
e.currentTarget.style.background = 'transparent';
|
||||
}}
|
||||
>
|
||||
<PlusIcon width="18" height="18" />
|
||||
<span>添加基金到此分组</span>
|
||||
</motion.button>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user