Commit facb617
fix: position copy button top-right and always visible in code blocks
- Override EC's large --button-spacing for untitled terminal frames,
which was pushing the copy button into/past the bottom of short blocks
- Directly set inset-block-start and inset-inline-end on .copy for all
untitled frames (0.5rem each) so the button sits cleanly inside the
top-right corner regardless of frame type
- Always show the button at 0.4 opacity via @media(hover:hover) override
so users can discover it without having to hover first; EC's existing
higher-specificity rules step it up to 0.75 on frame hover and 1.0
on button hover
Co-Authored-By: Oz <oz-agent@warp.dev>1 parent d91c1b7 commit facb617
1 file changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
212 | 223 | | |
213 | 224 | | |
214 | 225 | | |
| |||
247 | 258 | | |
248 | 259 | | |
249 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
250 | 272 | | |
251 | 273 | | |
252 | 274 | | |
| |||
0 commit comments