1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-07 22:56:51 +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:
phuoc-ng
2021-10-01 21:14:32 +07:00
committed by GitHub
2 changed files with 1 additions and 2 deletions

View File

@@ -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

View File

@@ -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} />