mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-08-08 07:07:15 +02:00
Merge pull request #195 from arthur322/fix-zindex-problem
Fix some z-index problem with CoverCard and titles
This commit is contained in:
@@ -13,6 +13,7 @@ const Cover: React.FC<{}> = () => {
|
|||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
padding: '1.5rem',
|
padding: '1.5rem',
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
|
zIndex: 0,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
@@ -32,7 +32,6 @@ const Cover: React.FC<{}> = () => {
|
|||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
transform: 'translate(-50%, 4px)',
|
transform: 'translate(-50%, 4px)',
|
||||||
width: 0,
|
width: 0,
|
||||||
zIndex: 10,
|
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
@@ -45,7 +44,6 @@ const Cover: React.FC<{}> = () => {
|
|||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
transform: 'translate(-50%, -4px)',
|
transform: 'translate(-50%, -4px)',
|
||||||
width: '80px',
|
width: '80px',
|
||||||
zIndex: 10,
|
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Rectangle height={16} />
|
<Rectangle height={16} />
|
||||||
|
Reference in New Issue
Block a user