mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 10:37:01 +00:00
fix: image can not be previewed
This commit is contained in:
parent
6c75950b6a
commit
1bf32c7f7e
@ -446,11 +446,7 @@ export function AttachmentFieldItem(props: any) {
|
||||
<a
|
||||
onClick={e => {
|
||||
e.stopPropagation();
|
||||
if (
|
||||
testUrl(url, {
|
||||
exclude: ['.png', '.jpg', '.jpeg', '.gif'],
|
||||
})
|
||||
) {
|
||||
if (testUrl(url)) {
|
||||
props.onClick && props.onClick();
|
||||
// setVisible(true);
|
||||
e.preventDefault();
|
||||
|
@ -1,7 +1,5 @@
|
||||
.ant-drawer-body {
|
||||
> div {
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
padding-bottom: 50px;
|
||||
.form-button-group {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
|
Loading…
Reference in New Issue
Block a user