Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Commit

Permalink
feat: enable pasting files while editing
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeIlLeone committed Sep 26, 2023
1 parent 56c2c03 commit 55eb4cf
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 93 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
"author": "FedeIlLeone",
"license": "MIT",
"devDependencies": {
"@types/node": "^20.6.2",
"@types/react": "^18.2.21",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
"@types/node": "^20.7.0",
"@types/react": "^18.2.23",
"@typescript-eslint/eslint-plugin": "^6.7.3",
"@typescript-eslint/parser": "^6.7.3",
"discord-types": "^1.3.3",
"eslint": "^8.49.0",
"eslint": "^8.50.0",
"eslint-config-dmitmel": "github:dmitmel/eslint-config-dmitmel",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-react": "^7.33.2",
Expand Down
148 changes: 74 additions & 74 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions src/components/ComposerUploadButton.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@
color: var(--interactive-active);
}

.editMessageAttachments-fileInput {
position: relative;
width: 0;
height: 0;
}

.editMessageAttachments-uploadIcon {
color: var(--interactive-normal);
}
Expand Down
1 change: 0 additions & 1 deletion src/components/ComposerUploadButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export default (props: ComposerUploadButtonProps): React.ReactElement | null =>
}
}}>
<FileInput
className="editMessageAttachments-fileInput"
ref={ref}
onChange={(event) => {
const count = event.currentTarget.files?.length ?? 0;
Expand Down
Loading

0 comments on commit 55eb4cf

Please sign in to comment.