mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14:40:50 +01:00
Fix avatar spotlight
This commit is contained in:
parent
fcd22a7e9e
commit
d3c3d4b048
@ -251,9 +251,11 @@
|
|||||||
z-index: 4;
|
z-index: 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.spotlight {
|
.avatar-spotlight {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -10px;
|
top: -10px;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
opacity: 0.3;
|
opacity: 0.3;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
@ -293,7 +293,7 @@ export const AvatarEditorView: FC<{}> = props =>
|
|||||||
</Column>
|
</Column>
|
||||||
<Column size={ 3 } overflow="hidden">
|
<Column size={ 3 } overflow="hidden">
|
||||||
<AvatarEditorFigurePreviewView figureData={ figureData } />
|
<AvatarEditorFigurePreviewView figureData={ figureData } />
|
||||||
<Column grow gap={ 2 }>
|
<Column grow gap={ 1 }>
|
||||||
<ButtonGroup>
|
<ButtonGroup>
|
||||||
<Button variant="secondary" size="sm" onClick={ event => processAction(AvatarEditorAction.ACTION_RESET) }>
|
<Button variant="secondary" size="sm" onClick={ event => processAction(AvatarEditorAction.ACTION_RESET) }>
|
||||||
<FontAwesomeIcon icon="undo" />
|
<FontAwesomeIcon icon="undo" />
|
||||||
|
@ -51,7 +51,7 @@ export const AvatarEditorFigurePreviewView: FC<AvatarEditorFigurePreviewViewProp
|
|||||||
return (
|
return (
|
||||||
<Column className="figure-preview-container" overflow="hidden" position="relative">
|
<Column className="figure-preview-container" overflow="hidden" position="relative">
|
||||||
<AvatarImageView figure={ figureData.getFigureString() } direction={ figureData.direction } scale={ 2 } />
|
<AvatarImageView figure={ figureData.getFigureString() } direction={ figureData.direction } scale={ 2 } />
|
||||||
<AvatarEditorIcon icon="spotlight" />
|
<AvatarEditorIcon className="avatar-spotlight" icon="spotlight" />
|
||||||
<Base className="avatar-shadow" />
|
<Base className="avatar-shadow" />
|
||||||
<Base className="arrow-container">
|
<Base className="arrow-container">
|
||||||
<AvatarEditorIcon pointer icon="arrow-left" onClick={ event => rotateFigure(figureData.direction + 1) } />
|
<AvatarEditorIcon pointer icon="arrow-left" onClick={ event => rotateFigure(figureData.direction + 1) } />
|
||||||
|
Loading…
Reference in New Issue
Block a user