Skip to content

Commit 15348c6

Browse files
densumeshskeptrunedev
authored andcommitted
bugfix: fix the max height for the modal
1 parent be2a4dd commit 15348c6

5 files changed

Lines changed: 693 additions & 518 deletions

File tree

clients/search-component/example/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"tailwindcss": "^3.4.10",
3131
"typescript": "^5.5.3",
3232
"typescript-eslint": "^8.0.1",
33-
"vite": "^5.4.1"
33+
"vite": "^5.4.1",
34+
"trieve-ts-sdk": "^0.0.108"
3435
}
3536
}

clients/search-component/example/yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2243,6 +2243,11 @@ to-regex-range@^5.0.1:
22432243
dependencies:
22442244
is-number "^7.0.0"
22452245

2246+
trieve-ts-sdk@^0.0.108:
2247+
version "0.0.108"
2248+
resolved "https://registry.yarnpkg.com/trieve-ts-sdk/-/trieve-ts-sdk-0.0.108.tgz#67b2662803fbd4347a206c45b2b5960029fcf561"
2249+
integrity sha512-USvzFoDnQssRn2gLsfAm/GwsT47tLBAzsWRgJZ94SyinvZ0pSLxQ4BbggSZlkmDDfahqCPlrXwslKBLvf2bzGw==
2250+
22462251
ts-api-utils@^2.0.1:
22472252
version "2.0.1"
22482253
resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-2.0.1.tgz#660729385b625b939aaa58054f45c058f33f10cd"

clients/search-component/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"react-two-thumb-input-range": "^1.0.7",
8888
"remark-gfm": "^4.0.1",
8989
"tailwind-merge": "^3.0.2",
90-
"trieve-ts-sdk": "*"
90+
"trieve-ts-sdk": "^0.0.108"
9191
},
9292
"peerDependencies": {
9393
"react": "^18.3.1 || ^19.0.0-rc",

clients/search-component/src/utils/hooks/useSizing.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useModalState } from "./modal-context";
33

44
const popupClass = cva(
55
[
6-
"tv-max-h-[calc(100vh-48px)]",
6+
"tv-max-h-[calc(100dvh-48px)]",
77
"tv-overflow-x-auto",
88
"mobile-only:tv-min-w-[calc(100vw-32px)]", // mobile
99
"mobile-only:tv-max-w-[calc(100vw-32px)]", // mobile
@@ -16,7 +16,7 @@ const popupClass = cva(
1616
"md:tv-w-[90vw]",
1717
"md:!tv-min-w-auto",
1818
"md:!tv-max-w-[1440px]",
19-
"md:!tv-max-h-[calc(100vh-64px)]",
19+
"md:!tv-max-h-[calc(100dvh-64px)]",
2020
],
2121
{
2222
variants: {
@@ -27,7 +27,7 @@ const popupClass = cva(
2727
},
2828
mode: {
2929
search: [],
30-
chat: ["md:!tv-max-h-[60vh]"],
30+
chat: ["md:!tv-max-h-[60dvh]"],
3131
},
3232
},
3333
},

0 commit comments

Comments
 (0)