Skip to content

Commit

Permalink
UX on filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codes committed Feb 6, 2024
1 parent 69357f2 commit bd6f81f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/playnite-web/src/domain/filters/playnite/MatchName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { IGame, IMatchA } from '../../types'
class MatchName implements IMatchA<IGame> {
private nameMatcher: RegExp
constructor(name: string) {
this.nameMatcher = new RegExp(name, 'i')
this.nameMatcher = new RegExp(`\\b${name}\\b`, 'i')
}

matches(item: IGame): boolean {
Expand Down
4 changes: 2 additions & 2 deletions apps/playnite-web/src/entry.server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function handleBotRequest(
)

body.write(
`<!DOCTYPE html><html lang="en-US"><head>${head}</head><body><div id="root">`,
`<!DOCTYPE html><html lang="en-US"><head>${head}</head><body style="overflow-y: scroll;"><div id="root">`,
)
pipe(body)
body.write(`</div></body></html>`)
Expand Down Expand Up @@ -139,7 +139,7 @@ function handleBrowserRequest(
}),
)
body.write(
`<!DOCTYPE html><html lang="en-US"><head>${head}${helmet.link.toString()}</head><body><div id="root">`,
`<!DOCTYPE html><html lang="en-US"><head>${head}${helmet.link.toString()}</head><body style="overflow-y: scroll;"><div id="root">`,
)
pipe(body)
body.write(`</div></body></html>`)
Expand Down

0 comments on commit bd6f81f

Please sign in to comment.