Skip to content

Commit 8aa9ccd

Browse files
committed
1 img
1 parent dd98675 commit 8aa9ccd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/src/NoteComponents/media/media.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async function getCompressed(uncompressed, type) {
4141
function Media({ setNoteMedia, mediaList = [], style, className, disabled, noteId, sizeData }) {
4242
const { addMedia, removeMedia, getMediaById, getNoteById } = useContext(NotesContext)
4343

44-
const limited = getNoteById(noteId).media.length >= 3
44+
const limited = getNoteById(noteId).media.length >= 1
4545

4646
/**хук состояния формы */
4747
const [showForm, setShowForm] = React.useState(false)
@@ -105,7 +105,7 @@ function Media({ setNoteMedia, mediaList = [], style, className, disabled, noteI
105105
const src = typeof media === "object" && media && media.data
106106
return (
107107
<div className="card p-1 m-1" key={imgId} style={{ position: "relative" }}>
108-
<img style={{ maxWidth: "13em", maxHeight: "13em" }} src={src} alt="note img"></img>
108+
<img className="img-fluid" style={{ maxWidth: "35em", maxHeight: "15em" }} src={src} alt="note img"></img>
109109
<button
110110
style={{ position: "absolute", bottom: "0", right: "0", lineHeight: "1em", padding: "0.05em" }}
111111
className={`btn btn-danger m-1`}

0 commit comments

Comments
 (0)