diff --git a/src/Components/AppShell/AppShell.tsx b/src/Components/AppShell/AppShell.tsx index 6a9cf4bf..71146b26 100644 --- a/src/Components/AppShell/AppShell.tsx +++ b/src/Components/AppShell/AppShell.tsx @@ -24,7 +24,7 @@ export function AppShell({ }) { return ( -
+
handleChange(e)} tabIndex='-1' onKeyDown={handleKeyDown} + className='tw:border-none tw:focus:outline-none tw:focus:ring-0 tw:mt-5' />
    0 && 'tw:bg-base-100 tw:rounded-xl tw:p-2'}`} diff --git a/src/Components/Profile/ProfileForm.tsx b/src/Components/Profile/ProfileForm.tsx index 932eb724..03eefc5b 100644 --- a/src/Components/Profile/ProfileForm.tsx +++ b/src/Components/Profile/ProfileForm.tsx @@ -203,9 +203,9 @@ export function ProfileForm() { > )} -
    +
    -
    +
    Support{' '} {data.account.name} {' '} - on Open Collective + on Open Collective
    diff --git a/src/Components/Profile/Subcomponents/FormHeader.tsx b/src/Components/Profile/Subcomponents/FormHeader.tsx index 55eced5f..f72cef13 100644 --- a/src/Components/Profile/Subcomponents/FormHeader.tsx +++ b/src/Components/Profile/Subcomponents/FormHeader.tsx @@ -10,52 +10,54 @@ import { ColorPicker } from './ColorPicker' export const FormHeader = ({ item, state, setState }) => { return ( -
    - - setState((prevState) => ({ - ...prevState, - image: i, - })) - } - /> - - setState((prevState) => ({ - ...prevState, - color: c, - })) - } - className={'tw:-left-6 tw:top-14 tw:-mr-6'} - /> -
    - +
    +
    + setState((prevState) => ({ ...prevState, - name: v, + image: i, })) } - containerStyle='tw:grow tw:px-4' - inputStyle='tw:input-md' /> - + setState((prevState) => ({ ...prevState, - subname: v, + color: c, })) } - containerStyle='tw:grow tw:px-4 tw:mt-1' - inputStyle='tw:input-sm' + className={'tw:-left-6 tw:top-14 tw:-mr-6'} /> +
    + + setState((prevState) => ({ + ...prevState, + name: v, + })) + } + containerStyle='tw:grow tw:px-4' + inputStyle='tw:input-md' + /> + + setState((prevState) => ({ + ...prevState, + subname: v, + })) + } + containerStyle='tw:grow tw:px-4 tw:mt-1' + inputStyle='tw:input-sm' + /> +
    ) diff --git a/src/Components/Profile/Subcomponents/TagsWidget.tsx b/src/Components/Profile/Subcomponents/TagsWidget.tsx index 6636faee..0faa26bc 100644 --- a/src/Components/Profile/Subcomponents/TagsWidget.tsx +++ b/src/Components/Profile/Subcomponents/TagsWidget.tsx @@ -107,7 +107,7 @@ export const TagsWidget = ({ placeholder, containerStyle, defaultTags, onUpdate setFocusInput(false) }, 200) }} - className={`tw:input tw:input-bordered tw:cursor-text ${containerStyle}`} + className={`tw:textarea tw:cursor-text ${containerStyle}`} >
    {defaultTags.map((tag) => ( diff --git a/src/Components/Profile/Templates/TabsForm.tsx b/src/Components/Profile/Templates/TabsForm.tsx index a38fa6ae..0a735955 100644 --- a/src/Components/Profile/Templates/TabsForm.tsx +++ b/src/Components/Profile/Templates/TabsForm.tsx @@ -53,55 +53,55 @@ export const TabsForm = ({ }, [location.search]) return ( -
    - updateActiveTab(1)} - /> -
    +
    +
    + updateActiveTab(1)} + />
    - {item.layer.itemType.show_start_end_input && ( - - setState((prevState) => ({ - ...prevState, - end: e, - })) - } - updateStartValue={(s) => - setState((prevState) => ({ - ...prevState, - start: s, - })) - } - > - )} +
    + {item.layer.itemType.show_start_end_input && ( + + setState((prevState) => ({ + ...prevState, + end: e, + })) + } + updateStartValue={(s) => + setState((prevState) => ({ + ...prevState, + start: s, + })) + } + > + )} - - setState((prevState) => ({ - ...prevState, - text: v, - })) - } - containerStyle='tw:grow' - inputStyle={`tw:h-full ${!item.layer.itemType.show_start_end_input && 'tw:border-t-0 tw:rounded-tl-none'}`} - /> -
    + + setState((prevState) => ({ + ...prevState, + text: v, + })) + } + containerStyle='tw:grow' + inputStyle={`tw:h-full ${!item.layer.itemType.show_start_end_input && 'tw:border-t-0 tw:rounded-tl-none'}`} + />
    -
    - {item.layer?.itemType.offers_and_needs && ( - <> - updateActiveTab(3)} - /> -
    -
    -
    - - setState((prevState) => ({ - ...prevState, - offers: v, - })) - } - placeholder='enter your offers' - containerStyle='tw:bg-transparent tw:w-full tw:h-full tw:mt-3 tw:text-xs tw:h-[calc(100%-1rem)] tw:min-h-[5em] tw:pb-2 tw:overflow-auto' - /> -
    -
    - - setState((prevState) => ({ - ...prevState, - needs: v, - })) - } - placeholder='enter your needs' - containerStyle='tw:bg-transparent tw:w-full tw:h-full tw:mt-3 tw:text-xs tw:h-[calc(100%-1rem)] tw:min-h-[5em] tw:pb-2 tw:overflow-auto' - /> + {item.layer?.itemType.offers_and_needs && ( + <> + updateActiveTab(3)} + /> +
    +
    +
    + + setState((prevState) => ({ + ...prevState, + offers: v, + })) + } + placeholder='enter your offers' + containerStyle='tw:bg-transparent tw:w-full tw:h-full tw:mt-3 tw:text-xs tw:h-[calc(100%-1rem)] tw:min-h-[5em] tw:pb-2 tw:overflow-auto' + /> +
    +
    + + setState((prevState) => ({ + ...prevState, + needs: v, + })) + } + placeholder='enter your needs' + containerStyle='tw:bg-transparent tw:w-full tw:h-full tw:mt-3 tw:text-xs tw:h-[calc(100%-1rem)] tw:min-h-[5em] tw:pb-2 tw:overflow-auto' + /> +
    -
    - - )} - {item.layer?.itemType.relations && ( - <> - updateActiveTab(7)} - /> -
    -
    -
    - {state.relations && - state.relations.map((i) => ( -
    navigate('/item/' + i.id)} - > - unlinkItem(id, item, updateItem)} - loading={loading} - /> -
    - + + )} + {item.layer?.itemType.relations && ( + <> + updateActiveTab(7)} + /> +
    +
    +
    + {state.relations && + state.relations.map((i) => ( +
    navigate('/item/' + i.id)} + > + unlinkItem(id, item, updateItem)} + loading={loading} + /> +
    + +
    -
    - ))} - {updatePermission && ( - linkItem(id, item, updateItem)} - > - )} + ))} + {updatePermission && ( + linkItem(id, item, updateItem)} + > + )} +
    -
    - - )} + + )} +
    ) } diff --git a/src/Components/Profile/Templates/TabsView.tsx b/src/Components/Profile/Templates/TabsView.tsx index 26768d6f..c14ca054 100644 --- a/src/Components/Profile/Templates/TabsView.tsx +++ b/src/Components/Profile/Templates/TabsView.tsx @@ -97,7 +97,7 @@ export const TabsView = ({ />
    {item.layer?.itemType.show_start_end && (
    @@ -121,7 +121,7 @@ export const TabsView = ({ />
    @@ -257,7 +257,7 @@ export const TabsView = ({ />