Skip to content

Commit 7690f28

Browse files
committed
feat(app): update timeline skeleton
1 parent 411ae0e commit 7690f28

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

apps/web/src/components/hooks/SkeletonSearchBar.tsx renamed to apps/web/src/components/timeline/SkeletonSearchBar.tsx

+13-11
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import React from 'react';
22

33
export function SkeletonSearchBar() {
44
return (
5-
<div className="mb-1 mt-4 w-full sm:mt-6">
6-
<div className="relative flex items-center">
7-
<div className="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3 ">
5+
<div className="mb-1 mt-4 w-full sm:mt-6 flex flex-row">
6+
<div className="relative flex items-center flex-1">
7+
<div className="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3">
88
<svg
99
aria-hidden="true"
1010
className="h-5 w-5 text-gray-800 dark:text-gray-700"
@@ -21,14 +21,16 @@ export function SkeletonSearchBar() {
2121
></path>
2222
</svg>
2323
</div>
24-
<input
25-
tabIndex={1}
26-
type="text"
27-
name="search"
28-
id="search"
29-
placeholder="Search your medical records"
30-
className="focus:border-primary-500 focus:ring-primary-500 block w-full rounded-md border-gray-300 pl-10 pr-12 shadow-md sm:text-sm"
31-
/>
24+
<div className="w-full">
25+
<input
26+
tabIndex={1}
27+
type="text"
28+
name="search"
29+
id="search"
30+
placeholder="Search your medical records"
31+
className="focus:border-primary-500 focus:ring-primary-500 transition-colors block w-full rounded-md border-gray-300 pl-10 pr-10 shadow-sm sm:text-sm"
32+
/>
33+
</div>
3234
</div>
3335
</div>
3436
);

apps/web/src/components/timeline/TimelineSkeleton.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import React, { Fragment, memo } from 'react';
22
import { SkeletonTimelineCard } from './SkeletonTimelineCard';
33
import { SkeletonTimelineYearHeader } from './SkeletonTimelineYearHeader';
4-
import { SkeletonSearchBar } from '../hooks/SkeletonSearchBar';
4+
import { SkeletonSearchBar } from './SkeletonSearchBar';
55
import { JumpToPanel } from './JumpToPanel';
66
import { SkeletonTimelineMonthDayHeader } from './TimelineMonthDayHeader';
77

88
function TimelineSkeletonUnmemoed() {
99
return (
1010
<div className={`relative flex`}>
1111
<JumpToPanel isLoading={true} />
12-
<div className="relative mx-auto flex w-full max-w-4xl flex-col overflow-x-clip px-4 pb-12 sm:px-6 lg:px-8">
12+
<div className="h-max w-full max-w-4xl flex-col px-4 pb-20 sm:px-6 sm:pb-6 lg:px-8">
1313
<SkeletonSearchBar />
1414
{[...Array(2)].map((_, index) => (
1515
<div key={index} className="relative">

apps/web/tsconfig.app.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"./src/components/connection/ButtonLoadingSpinner.tsx",
3232
"./src/components/timeline/SkeletonLoadingText.tsx",
3333
"src/components/timeline/TimelineSkeleton.tsx",
34-
"src/components/hooks/SkeletonSearchBar.tsx",
34+
"src/components/timeline/SkeletonSearchBar.tsx",
3535
"src/components/timeline/SearchBar.tsx",
3636
"src/components/timeline/SkeletonTimelineYearHeader.tsx",
3737
"./src/pages/SkeletonJumpToPanel.tsx",

0 commit comments

Comments
 (0)