-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscraps.txt
More file actions
48 lines (40 loc) · 1.29 KB
/
scraps.txt
File metadata and controls
48 lines (40 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
scraps
.artwork-item {
width: 150px; /* Fixed width */
height: 150px; /* Fixed height to match the width, creating a square */
overflow: hidden; /* Ensures content does not spill outside the circular boundary */
display: flex; /* Optional: To center the image inside the item */
justify-content: center; /* Optional: Centers the content horizontally */
align-items: center; /* Optional: Centers the content vertically */
}
.artwork-item img {
width: 100%;
height: 100%;
object-fit: cover; /* Adjust how the image fits within the container */
border-radius: 50%; /* Also make the image itself circular */
}
<div
key={artwork.id}
className={styles["artwork-item"]}
onClick={() => setSelectedArtwork(artwork)}
>
<img src={artwork.imageUrl} alt={artwork.title} />
</div>
.chatContainer input[type="text"] {
border: 1px solid #ccc;
border-radius: 4px;
padding: 8px;
font-size: 16px;
width: 50%;
}
.chatContainer button {
background-color: #4CAF50;
color: white;
border: none;
border-radius: 4px;
padding: 8px 16px;
font-size: 16px;
margin-top: 5px;
cursor: pointer;
}
<div className={styles["modal-content"]} onClick={(e) => e.stopPropagation()}> {/* Prevent click inside modal from closing it */}