mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-29 17:07:57 +03:00
fix(core): fix window cannot be dragged on the collection page (#5269)
close #5268 close TOV-162 https://github.com/toeverything/AFFiNE/assets/102217452/d8f606c0-4c18-4a7e-be3f-d2e611ffecbf
This commit is contained in:
parent
31dc1f5e00
commit
7d32ddf539
@ -111,7 +111,13 @@ const Placeholder = ({ collection }: { collection: Collection }) => {
|
||||
}, []);
|
||||
const t = useAFFiNEI18N();
|
||||
return (
|
||||
<div style={{ display: 'flex', flexDirection: 'column', height: '100%' }}>
|
||||
<div
|
||||
style={{
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
height: '100%',
|
||||
}}
|
||||
>
|
||||
<div
|
||||
style={{
|
||||
display: 'flex',
|
||||
@ -119,6 +125,7 @@ const Placeholder = ({ collection }: { collection: Collection }) => {
|
||||
gap: 8,
|
||||
padding: '12px 24px',
|
||||
fontSize: 'var(--affine-font-xs)',
|
||||
['WebkitAppRegion' as string]: 'drag',
|
||||
}}
|
||||
>
|
||||
<div
|
||||
@ -127,6 +134,7 @@ const Placeholder = ({ collection }: { collection: Collection }) => {
|
||||
alignItems: 'center',
|
||||
gap: 4,
|
||||
color: 'var(--affine-text-secondary-color)',
|
||||
['WebkitAppRegion' as string]: 'no-drag',
|
||||
}}
|
||||
>
|
||||
<ViewLayersIcon
|
||||
@ -138,7 +146,11 @@ const Placeholder = ({ collection }: { collection: Collection }) => {
|
||||
</div>
|
||||
<div
|
||||
data-testid="collection-name"
|
||||
style={{ fontWeight: 600, color: 'var(--affine-text-primary-color)' }}
|
||||
style={{
|
||||
fontWeight: 600,
|
||||
color: 'var(--affine-text-primary-color)',
|
||||
['WebkitAppRegion' as string]: 'no-drag',
|
||||
}}
|
||||
>
|
||||
{collection.name}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user