categories,18popup,clear.TextEditorSwap,GameCardHover #177

Merged
freakoverse merged 64 commits from staging into master 2024-12-24 19:44:30 +00:00
2 changed files with 45 additions and 48 deletions
Showing only changes of commit 41cfc57cf9 - Show all commits

View File

@ -1100,23 +1100,14 @@ export const CategoryAutocomplete = ({
{Row} {Row}
</VariableSizeList> </VariableSizeList>
) : ( ) : (
<FixedSizeList
height={500}
width={'100%'}
itemCount={1}
itemSize={35}
>
{({ index, style }) => (
<div <div
style={style}
className='dropdown-item dropdownMainMenuItem' className='dropdown-item dropdownMainMenuItem'
onClick={handleAddNew} onClick={handleAddNew}
> >
{inputValue && {inputValue &&
!filteredOptions?.find( !filteredOptions?.find(
(option) => (option) =>
option.hierarchy.toLowerCase() === option.hierarchy.toLowerCase() === inputValue.toLowerCase()
inputValue.toLowerCase()
) ? ( ) ? (
<> <>
Add "{inputValue}" Add "{inputValue}"
@ -1137,8 +1128,6 @@ export const CategoryAutocomplete = ({
)} )}
</div> </div>
)} )}
</FixedSizeList>
)}
</div> </div>
</div> </div>
</div> </div>
@ -1147,9 +1136,11 @@ export const CategoryAutocomplete = ({
{LTags.map((hierarchy) => { {LTags.map((hierarchy) => {
const heirarchicalCategories = hierarchy.split(`:`) const heirarchicalCategories = hierarchy.split(`:`)
const categories = heirarchicalCategories const categories = heirarchicalCategories
.map<React.ReactNode>((c, i) => ( .map<React.ReactNode>((c, i) =>
game ? (
<Link <Link
key={`category-${i}`} key={`category-${i}`}
target='_blank'
to={{ to={{
pathname: getGamePageRoute(game), pathname: getGamePageRoute(game),
search: `l=${c}` search: `l=${c}`
@ -1158,7 +1149,12 @@ export const CategoryAutocomplete = ({
> >
<p>{capitalizeEachWord(c)}</p> <p>{capitalizeEachWord(c)}</p>
</Link> </Link>
)) ) : (
<p className='IBMSMSMBSSCategoriesBoxItem'>
{capitalizeEachWord(c)}
</p>
)
)
.reduce((prev, curr, i) => [ .reduce((prev, curr, i) => [
prev, prev,
<div <div

View File

@ -548,6 +548,7 @@ const Body = ({
.map<React.ReactNode>((c: string) => ( .map<React.ReactNode>((c: string) => (
<ReactRouterLink <ReactRouterLink
className='IBMSMSMBSSCategoriesBoxItem' className='IBMSMSMBSSCategoriesBoxItem'
target='_blank'
to={{ to={{
pathname: getGamePageRoute(game), pathname: getGamePageRoute(game),
search: `l=${c}` search: `l=${c}`