Skip to content

Commit

Permalink
fix: ui for invalid image is still usable
Browse files Browse the repository at this point in the history
Fixes #179
  • Loading branch information
petyosi committed Nov 17, 2023
1 parent 690978e commit 48e65dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugins/image/ImageEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function useSuspenseImage(src: string) {
throw new Promise((resolve) => {
const img = new Image()
img.src = src
img.onload = () => {
img.onerror = img.onload = () => {
imageCache.add(src)
resolve(null)
}
Expand Down
8 changes: 7 additions & 1 deletion src/styles/lexical-theme.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,13 @@
}

.nestedListItem {
list-style:none;
list-style: none;
list-style-type: none;
}

.nestedListItem:before,
.nestedListItem:after {
display: none;
}

.listitem {
Expand Down

0 comments on commit 48e65dd

Please sign in to comment.