Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 81fe556

Browse files
authored
svelte: Fix search result header alignment (#62140)
Currently the title for repository search results is split over multiple lines. That's because the `RepoRev` component is rendered as a block component. This commit changes the root element to a `span` to emphasize that this component should be an inline component, and uses `inline-flex` instead of `flex`.
1 parent a47018c commit 81fe556

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client/web-sveltekit/src/routes/search/RepoRev.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
}
1818
</script>
1919

20-
<div class="root">
20+
<span class="root">
2121
<CodeHostIcon repository={repoName} />
2222
<!-- #key is needed here to recreate the link because use:highlightRanges changes the DOM -->
2323
{#key highlights}
@@ -28,11 +28,11 @@
2828
{/if}
2929
</a>
3030
{/key}
31-
</div>
31+
</span>
3232

3333
<style lang="scss">
3434
.root {
35-
display: flex;
35+
display: inline-flex;
3636
align-items: center;
3737
gap: 0.375rem;
3838

0 commit comments

Comments
 (0)