mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-16 10:19:10 +00:00
fix firefox randomly throwing roles into space
This commit is contained in:
parent
ce348e268b
commit
b2139c6a24
3 changed files with 11 additions and 5 deletions
|
@ -5,7 +5,9 @@ import Role from '../role/demo'
|
|||
import demoRoles from '../../config/demo'
|
||||
|
||||
const DemoWrapper = styled.div`
|
||||
text-align: center;
|
||||
justify-content: center;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
`
|
||||
|
||||
export default () => <DemoWrapper>
|
||||
|
|
|
@ -9,7 +9,7 @@ export default styled.div`
|
|||
cursor: pointer;
|
||||
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
|
@ -73,7 +73,7 @@ export default styled.div`
|
|||
border: 1px solid var(--role-color-base);
|
||||
border-radius: 100%;
|
||||
|
||||
clip-path: border-box circle(50.2% at 50% 50%); /* firefox fix */
|
||||
clip-path: border-box circle(50.2% at 50% 50%); /* this is just for you, firefox. */
|
||||
|
||||
transform: rotateZ(0);
|
||||
${(props: any) => (props.active) ? `
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue