mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-19 08:52:25 +01:00
(bug) switch display is broken
This commit is contained in:
parent
20e50bda13
commit
83fb4f11ff
@ -92,7 +92,10 @@ export const FormImageUpload = <TFieldValues extends FieldValues, TContext exten
|
||||
return (
|
||||
<div className={`form-image-upload form-image-upload--${size} ${label ? 'with-label' : ''} ${classNames}`}>
|
||||
<div className={`image image--${size}`}>
|
||||
<img src={hasImage() ? image : noImage} alt={file?.attachment_name || 'no image'} />
|
||||
<img src={hasImage() ? image : noImage} alt={file?.attachment_name || 'no image'} onError={({ currentTarget }) => {
|
||||
currentTarget.onerror = null;
|
||||
currentTarget.src = noImage;
|
||||
}} />
|
||||
</div>
|
||||
<div className="actions">
|
||||
{mainOption &&
|
||||
|
@ -5,7 +5,6 @@
|
||||
&-header {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
margin-bottom: 0.8rem;
|
||||
|
@ -13,7 +13,6 @@
|
||||
|
||||
.form-item-field {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
padding: 16px;
|
||||
background-color: white;
|
||||
& > *:not(:first-child) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user