diff --git a/web/components/comments/dropdown-menu.tsx b/web/components/comments/dropdown-menu.tsx index 532fa516..bbde2a30 100644 --- a/web/components/comments/dropdown-menu.tsx +++ b/web/components/comments/dropdown-menu.tsx @@ -1,7 +1,7 @@ -import { DotsHorizontalIcon } from '@heroicons/react/solid' -import { Fragment, ReactNode, useState } from 'react' -import { usePopper } from 'react-popper' -import { Popover, Transition } from '@headlessui/react' +import {DotsHorizontalIcon} from '@heroicons/react/solid' +import {Fragment, ReactNode, useState} from 'react' +import {usePopper} from 'react-popper' +import {Popover, Transition} from '@headlessui/react' import clsx from 'clsx' export type DropdownItem = { @@ -51,7 +51,7 @@ export default function DropdownMenu(props: { { diff --git a/web/components/filters/desktop-filters.tsx b/web/components/filters/desktop-filters.tsx index cf95435e..8eb125d5 100644 --- a/web/components/filters/desktop-filters.tsx +++ b/web/components/filters/desktop-filters.tsx @@ -561,7 +561,7 @@ export function DesktopFilters(props: { /> } popoverClassName="bg-canvas-50" - menuWidth="w-50 max-h-[400px] overflow-y-auto" + menuWidth="w-100 max-h-[400px] overflow-y-auto" /> {/* POLITICS */} @@ -643,7 +643,7 @@ export function DesktopFilters(props: { } popoverClassName="bg-canvas-50" - menuWidth="w-[350px] grid-cols-2" + menuWidth="w-[400px]" /> {/* EDUCATION */} diff --git a/web/components/filters/interest-filter.tsx b/web/components/filters/interest-filter.tsx index 54781231..51753a98 100644 --- a/web/components/filters/interest-filter.tsx +++ b/web/components/filters/interest-filter.tsx @@ -66,6 +66,7 @@ export function InterestFilter(props: { selected={filters[label] ?? []} choices={sortedChoices as any} onChange={(c) => updateFilter({[label]: c})} + optionsClassName={'w-[200px] sm:w-[400px]'} /> ) } diff --git a/web/components/filters/language-filter.tsx b/web/components/filters/language-filter.tsx index 72411f31..fef9ebf2 100644 --- a/web/components/filters/language-filter.tsx +++ b/web/components/filters/language-filter.tsx @@ -66,6 +66,7 @@ export function LanguageFilter(props: { onChange={(c) => { updateFilter({languages: c}) }} + optionsClassName={'w-[200px] sm:w-[400px]'} /> ) } diff --git a/web/components/filters/mbti-filter.tsx b/web/components/filters/mbti-filter.tsx index 8e8ccb2a..c5f7f52a 100644 --- a/web/components/filters/mbti-filter.tsx +++ b/web/components/filters/mbti-filter.tsx @@ -57,7 +57,7 @@ export function MbtiFilter(props: { return ( + setYourFilters(e.target.checked)} /> diff --git a/web/components/filters/religion-filter.tsx b/web/components/filters/religion-filter.tsx index bbe125be..6be3b4a0 100644 --- a/web/components/filters/religion-filter.tsx +++ b/web/components/filters/religion-filter.tsx @@ -70,7 +70,7 @@ export function ReligionFilter(props: { onChange={(c) => { updateFilter({religion: c}) }} - className={className} + optionsClassName={className} /> ) diff --git a/web/components/filters/short-bio-toggle.tsx b/web/components/filters/short-bio-toggle.tsx index fbcfdd56..0e6107d8 100644 --- a/web/components/filters/short-bio-toggle.tsx +++ b/web/components/filters/short-bio-toggle.tsx @@ -19,11 +19,11 @@ export function ShortBioToggle(props: { const on = filters.shortBio || false return ( - + updateFilter({shortBio: e.target.checked ? true : undefined})} /> diff --git a/web/components/multi-checkbox.tsx b/web/components/multi-checkbox.tsx index 52bd021c..2f7a0047 100644 --- a/web/components/multi-checkbox.tsx +++ b/web/components/multi-checkbox.tsx @@ -14,6 +14,7 @@ export const MultiCheckbox = (props: { selected: string[] onChange: (selected: string[]) => void className?: string + optionsClassName?: string // If provided, enables adding a new option and should persist it (e.g. to DB) // Return value can be: // - string: the stored value for the new option; label will be the input text @@ -23,7 +24,7 @@ export const MultiCheckbox = (props: { addPlaceholder?: string translationPrefix?: string }) => { - const {choices, selected, onChange, className, addOption, addPlaceholder, translationPrefix} = props + const {choices, selected, onChange, className, optionsClassName, addOption, addPlaceholder, translationPrefix} = props // Keep a local merged copy to allow optimistic adds while remaining in sync with props const [localChoices, setLocalChoices] = useState<{ [key: string]: string }>(choices) @@ -125,7 +126,7 @@ export const MultiCheckbox = (props: { )} - + {filteredEntries.map(([key, value]) => ( -
-
- toggle(e.target.checked)} - disabled={disabled} - /> -
-
- -
-
+
+
) } diff --git a/web/components/widgets/customizeable-dropdown.tsx b/web/components/widgets/customizeable-dropdown.tsx index 3769d93b..5453dd70 100644 --- a/web/components/widgets/customizeable-dropdown.tsx +++ b/web/components/widgets/customizeable-dropdown.tsx @@ -46,7 +46,7 @@ export function CustomizeableDropdown(props: { <> { e.stopPropagation() }} diff --git a/web/styles/globals.css b/web/styles/globals.css index 95b5cdf4..3538c0f4 100644 --- a/web/styles/globals.css +++ b/web/styles/globals.css @@ -533,3 +533,18 @@ ol > li::marker { opacity: 0.55; font-size: 14px; } + +input { + transition: background-color 0.2s ease-in-out; +} + +.hover-bold { + transition: text-shadow 0.2s ease; +} + +.hover-bold:hover { + text-shadow: 0.01em 0 currentColor, + -0.01em 0 currentColor, + 0 0.01em currentColor, + 0 -0.01em currentColor; +}