Skip to content

Commit

Permalink
[Backport 5.6.x] fix(svelte): Improve hovercard UI for search based i…
Browse files Browse the repository at this point in the history
…nfo (#64391)

I don't know why but having `overflow-x` causes the content of the
hovercard to not fully expand to the edges. It has something to do with
the sizing of the `hr` element.

| Before | After |
|--------|--------|
|
![2024-08-07_23-39_1](https://github.com/user-attachments/assets/5e02f369-bc33-49db-b69d-ec63afe5de17)
|
![2024-08-07_23-39](https://github.com/user-attachments/assets/04c71fff-a232-4c8d-b0a5-3ea1d1659e29)
|

## Test plan

Manual testing. <br> Backport cf54671
from #64350

Co-authored-by: Felix Kling <felix@felix-kling.de>
  • Loading branch information
sourcegraph-release-bot and fkling committed Aug 9, 2024
1 parent 1a8db00 commit bd1b133
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion client/web-sveltekit/src/lib/repo/HovercardContent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
font-size: 0.75rem;
line-height: (16/12);
color: var(--hover-overlay-content-color);
overflow-x: auto;
word-wrap: normal;
> :global(*:first-child) {
Expand Down

0 comments on commit bd1b133

Please sign in to comment.