Skip to content

Commit 5cb0476

Browse files
committed
make the annotations view panel a little more compact
1 parent 1c31bf4 commit 5cb0476

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

client/src/components/Annotation.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default function Annotation({
4444
if (isEditing && !readonly) {
4545
return (
4646
<div className="group relative">
47-
<div className="flex items-start gap-4 p-4 bg-background dark:bg-card border border-border rounded-xl shadow-sm">
47+
<div className="flex items-start gap-4 px-4 py-3 bg-background dark:bg-card border border-border rounded-xl shadow-sm">
4848
{/* Avatar */}
4949
<div className={`w-8 h-8 rounded-full flex items-center justify-center flex-shrink-0 ${isAI
5050
? 'bg-blue-200 dark:bg-blue-800'
@@ -105,7 +105,7 @@ export default function Annotation({
105105
onMouseEnter={() => setIsHovered(true)}
106106
onMouseLeave={() => setIsHovered(false)}
107107
>
108-
<div className="relative flex items-start gap-4 p-4 rounded-xl border bg-background dark:bg-card border-border hover:border-border/80 dark:hover:border-border hover:shadow-sm dark:hover:shadow-lg transition-all duration-300">
108+
<div className="relative flex items-start gap-4 px-4 py-3 rounded-xl border bg-background dark:bg-card border-border hover:border-border/80 dark:hover:border-border hover:shadow-sm dark:hover:shadow-lg transition-all duration-300">
109109

110110
{/* Avatar */}
111111
<div className="relative">

client/src/components/AnnotationsView.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function HighlightThread({
130130

131131
return (
132132
<Card
133-
className={`transition-colors cursor-pointer rounded-lg p-2 ${activeBgColor}`}
133+
className={`transition-colors cursor-pointer rounded-lg px-2 ${activeBgColor}`}
134134
onClick={onClick}
135135
>
136136
<CardContent className="p-0">
@@ -214,7 +214,7 @@ function AnnotationsToolbar({
214214
readonly,
215215
}: AnnotationsToolbarProps) {
216216
return (
217-
<div className="flex items-center gap-3 p-3 border-b border-border bg-muted/20">
217+
<div className="flex items-center gap-3 px-3 border-b border-border bg-muted/20">
218218
<Select value={selectedHighlightType} onValueChange={onHighlightTypeFilter}>
219219
<SelectTrigger className="w-[140px] h-8">
220220
<SelectValue placeholder="All types" />
@@ -340,7 +340,7 @@ export function AnnotationsView(
340340

341341
if (sortedHighlights.length === 0) {
342342
return (
343-
<div className="flex flex-col gap-4 p-4 text-center">
343+
<div className="flex flex-col gap-4 text-center">
344344
<p className="text-secondary-foreground text-sm">
345345
{readonly ? "There are no annotations for this paper." : "Highlight text in the document to begin annotating."}
346346
</p>

client/src/components/SidePanelContent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ export function SidePanelContent({
815815
<div className="flex-grow h-full overflow-hidden">
816816
{
817817
rightSideFunction === 'Notes' && (
818-
<div className='p-2 w-full h-full flex flex-col'>
818+
<div className='p-4 w-full h-full flex flex-col'>
819819
<div className="flex justify-between items-center mb-2 flex-shrink-0">
820820
<div className="flex items-center gap-2">
821821
<TooltipProvider>
@@ -890,7 +890,7 @@ export function SidePanelContent({
890890
}
891891
{
892892
rightSideFunction === 'Annotations' && user && (
893-
<div className={`flex flex-col ${heightClass} md:px-2 overflow-y-auto`}>
893+
<div className={`flex flex-col ${heightClass} overflow-y-auto`}>
894894
<AnnotationsView
895895
annotations={annotations}
896896
highlights={highlights}

0 commit comments

Comments
 (0)