Skip to content

Commit

Permalink
Svelte: fix css selector (sourcegraph#63896)
Browse files Browse the repository at this point in the history
Fixes a couple of small style changes after rolling out the mobile version.
  • Loading branch information
camdencheek authored Jul 18, 2024
1 parent dbf420b commit dfb55a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
</Popover>

<style lang="scss">
div[data-repo-rev-picker-trigger] > :global(*) {
span[data-repo-rev-picker-trigger] > :global(*) {
width: 100%;
height: 100%;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@

<GlobalHeaderPortal>
{#if $isViewportMobile}
<Button variant="secondary" outline on:click={() => (showSearchInput = true)}>
<Button id="mobile-search-button" variant="secondary" outline on:click={() => (showSearchInput = true)}>
<Icon icon={ILucideSearch} inline aria-hidden /> Search
</Button>
{/if}
Expand Down Expand Up @@ -213,6 +213,10 @@
--repo-header-height: 2rem;
}
:global(#mobile-search-button) {
width: 100%;
}
.search-header {
width: 100%;
z-index: 1;
Expand Down

0 comments on commit dfb55a2

Please sign in to comment.