Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
97b23f46
Commit
97b23f46
authored
Apr 09, 2025
by
Johnny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: remove resource title
parent
ebf13c4d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
16 deletions
+8
-16
MemoResourceListView.tsx
web/src/components/MemoResourceListView.tsx
+2
-13
PreviewImageDialog.tsx
web/src/components/PreviewImageDialog.tsx
+6
-3
No files found.
web/src/components/MemoResourceListView.tsx
View file @
97b23f46
...
...
@@ -60,20 +60,9 @@ const MemoResourceListView = ({ resources = [] }: { resources: Resource[] }) =>
};
const
MediaList
=
({
resources
=
[]
}:
{
resources
:
Resource
[]
})
=>
{
if
(
resources
.
length
===
1
)
{
const
resource
=
mediaResources
[
0
];
return
(
<
div
className=
"max-w-full flex flex-col justify-start items-start overflow-hidden hide-scrollbar"
>
<
MediaCard
className=
"max-h-64"
resource=
{
resource
}
/>
<
span
className=
"max-w-full text-xs pl-1 text-gray-400 dark:text-zinc-500 truncate"
>
{
resource
.
filename
}
</
span
>
</
div
>
);
}
const
cards
=
resources
.
map
((
resource
)
=>
(
<
div
key=
{
resource
.
name
}
className=
"max-w-[70%] flex flex-col justify-start items-start shrink-0"
>
<
MediaCard
className=
"max-h-64"
resource=
{
resource
}
/>
<
span
className=
"max-w-full text-xs pl-1 text-gray-400 dark:text-zinc-500 truncate"
>
{
resource
.
filename
}
</
span
>
<
div
key=
{
resource
.
name
}
className=
"max-w-[70%] grow flex flex-col justify-start items-start shrink-0"
>
<
MediaCard
className=
"max-h-64 grow"
resource=
{
resource
}
/>
</
div
>
));
...
...
web/src/components/PreviewImageDialog.tsx
View file @
97b23f46
...
...
@@ -162,14 +162,17 @@ const PreviewImageDialog: React.FC<Props> = ({ destroy, imgUrls, initialIndex }:
return
(
<>
<
div
className=
"fixed top-8 right-8 flex flex-col justify-start items-center"
>
<
div
className=
"fixed top-8 right-8
z-1
flex flex-col justify-start items-center"
>
<
Button
onClick=
{
handleCloseBtnClick
}
>
<
XIcon
className=
"w-6 h-auto"
/>
</
Button
>
</
div
>
<
div
className=
"w-full h-full p-4 sm:p-20 flex flex-col justify-center items-center hide-scrollbar"
onClick=
{
handleImgContainerClick
}
>
<
div
className=
"w-full h-screen p-4 sm:p-8 flex flex-col justify-center items-center hide-scrollbar"
onClick=
{
handleImgContainerClick
}
>
<
img
className=
"h-auto w-auto m
ax-w-full max-h-full shad
ow"
className=
"h-auto w-auto m
in-w-16 max-w-full max-h-full gr
ow"
style=
{
imageComputedStyle
}
src=
{
imgUrls
[
currentIndex
]
}
onClick=
{
(
e
)
=>
e
.
stopPropagation
()
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment