Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix search div size for the desktop #51

Open
wants to merge 1 commit into
base: pintree-old-dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions css/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -1174,10 +1174,6 @@ select {
width: 1.5rem;
}

.w-72 {
width: 18rem;
}

.w-8 {
width: 2rem;
}
Expand Down Expand Up @@ -2314,6 +2310,10 @@ select {
width: 15rem;
}

.lg\:grow {
flex-grow: 1;
}

.lg\:grid-cols-4 {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@
<div
class="items-center justify-between sticky top-0 z-40 flex h-16 shrink-0 gap-x-4 border-b border-gray-200 dark:pintree-border-gray-800 bg-white dark:pintree-bg-gray-900 px-4 shadow-sm sm:gap-x-6 sm:px-6 lg:px-8">
<div class="h-full items-center flex flex-1 gap-x-4 self-stretch lg:gap-x-6 justify-between">
<div class="flex gap-x-4 justify-between">
<div class="flex lg:grow gap-x-4 justify-between">
<img class="pl-2 h-8 w-auto lg:hidden" src="assets/logo.svg" alt="Pintree">
<div class="hidden lg:block relative w-72 h-full items-center justify-between">
<div class="hidden lg:block relative w-full h-full items-center justify-between">
<button id="searchButton" class="absolute h-full text-gray-400 rounded">
<svg class="pointer-events-none absolute inset-y-0 left-0 h-full w-5 text-gray-400" viewBox="0 0 20 20"
fill="currentColor" aria-hidden="true">
Expand All @@ -140,7 +140,7 @@
</svg>
</button>
<input id="searchInput" type="search"
class="text-sm text-gray-900 dark:text-gray-400 pl-8 h-full border-0 focus:outline-none focus:ring-0 dark:pintree-bg-gray-900"
class="text-sm text-gray-900 dark:text-gray-400 pl-8 w-full h-full border-0 focus:outline-none focus:ring-0 dark:pintree-bg-gray-900"
placeholder="Search...">
<button id="clearSearchButton" class="text-sm text-gray-500 mr-4 rounded hidden">Clear</button>
</div>
Expand Down