Skip to content

Commit

Permalink
Solved overflow issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sertxudev committed Jul 5, 2022
1 parent 5c06d6a commit f03c5a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sertxudeveloper/markdown-editor",
"exportName": "MarkdownEditor",
"version": "0.1.1",
"version": "0.1.2",
"description": "A customizable markdown editor for your projects",
"main": "./build/MarkdownEditor.js",
"module": "./build/MarkdownEditor.js",
Expand Down
1 change: 1 addition & 0 deletions src/plugins/image/ImageBrowser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export default class ImageBrowser {
renderImage(image: Image): HTMLDivElement {
const container = document.createElement("div")
container.classList.add("browser-grid-item")
container.setAttribute('role', 'button')

const img = document.createElement("img")
img.src = image.url
Expand Down
6 changes: 3 additions & 3 deletions src/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@
@apply absolute bg-gray-800 bg-opacity-50 h-full left-0 top-0 w-full z-30 p-12;

.browser-container {
@apply bg-white divide-gray-300 divide-y h-full shadow-xl w-full rounded-lg;
@apply flex flex-col bg-white divide-gray-300 divide-y h-full shadow-xl w-full rounded-lg;

.browser-header {
@apply flex justify-between px-5 py-4 text-gray-900;
@apply shrink-0 flex justify-between px-5 py-4 text-gray-900;

> span {
@apply block font-medium;
Expand All @@ -168,7 +168,7 @@
}

.browser-grid {
@apply gap-4 grid grid-cols-6 p-4;
@apply shrink-0 grow gap-4 grid grid-cols-6 p-4;

.browser-grid-item {
@apply flex flex-col;
Expand Down

0 comments on commit f03c5a7

Please sign in to comment.