Commit b268372
authored
🤖 fix: make image delete button visible (#568)
The delete button on pasted images was rendering behind the image and
wasn't visible or clickable.
## Problem
The button existed in the code but was completely hidden - the image
element was rendering on top of it despite attempts to use z-index and
absolute positioning.
## Solution
Switched from absolute positioning to CSS Grid layout. Both the image
and button are now placed in the same grid cell (`col-start-1
row-start-1`), which naturally creates proper layering without z-index
conflicts. The button is positioned in the top-right corner using
`self-start justify-self-end`.
## Visual Design
- Semi-transparent black circular button (bg-black/70)
- White × character
- Becomes more opaque on hover (bg-black/90)
- Small and unobtrusive in the corner
<img width="155" height="153" alt="image"
src="https://github.com/user-attachments/assets/1f5607f4-c934-4f17-a526-52bb7374d436"
/>
_Generated with `cmux`_1 parent 3a00c83 commit b268372
1 file changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
28 | | - | |
| 32 | + | |
| 33 | + | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
| |||
0 commit comments