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
a3a4e37c
Commit
a3a4e37c
authored
Mar 20, 2024
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update memo content styles
parent
76c93635
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
Code.tsx
web/src/components/MemoContent/Code.tsx
+1
-1
MemoView.tsx
web/src/components/MemoView.tsx
+2
-2
UserProfile.tsx
web/src/pages/UserProfile.tsx
+7
-5
No files found.
web/src/components/MemoContent/Code.tsx
View file @
a3a4e37c
...
...
@@ -3,7 +3,7 @@ interface Props {
}
const
Code
:
React
.
FC
<
Props
>
=
({
content
}:
Props
)
=>
{
return
<
code
className=
"inline break-all px-1 rounded bg-gray-100 dark:bg-zinc-700"
>
{
content
}
</
code
>;
return
<
code
className=
"inline break-all px-1
font-mono
rounded bg-gray-100 dark:bg-zinc-700"
>
{
content
}
</
code
>;
};
export
default
Code
;
web/src/components/MemoView.tsx
View file @
a3a4e37c
...
...
@@ -76,13 +76,13 @@ const MemoView: React.FC<Props> = (props: Props) => {
return
(
<
div
className=
{
classNames
(
"group relative flex flex-col justify-start items-start w-full px-4 p
t-4 pb
-3 mb-2 gap-2 bg-white dark:bg-zinc-800 rounded-lg border border-white dark:border-zinc-800 hover:border-gray-200 dark:hover:border-zinc-700"
,
"group relative flex flex-col justify-start items-start w-full px-4 p
y
-3 mb-2 gap-2 bg-white dark:bg-zinc-800 rounded-lg border border-white dark:border-zinc-800 hover:border-gray-200 dark:hover:border-zinc-700"
,
memo
.
pinned
&&
props
.
showPinned
&&
"border-gray-200 border dark:border-zinc-700"
,
className
,
)
}
ref=
{
memoContainerRef
}
>
<
div
className=
"w-full
h-7
flex flex-row justify-between items-center gap-2"
>
<
div
className=
"w-full flex flex-row justify-between items-center gap-2"
>
<
div
className=
"w-auto max-w-[calc(100%-8rem)] grow flex flex-row justify-start items-center"
>
{
creator
&&
(
<
div
className=
"w-full flex flex-row justify-start items-center"
>
...
...
web/src/pages/UserProfile.tsx
View file @
a3a4e37c
...
...
@@ -121,13 +121,15 @@ const UserProfile = () => {
{
t
(
"common.share"
)
}
</
Button
>
</
div
>
<
div
className=
"w-full flex flex-
row justify-start items-center
pt-4 pb-8 px-3"
>
<
UserAvatar
className=
"!w-16 !h-16 drop-shadow
mr-3
rounded-3xl"
avatarUrl=
{
user
?.
avatarUrl
}
/>
<
div
className=
"w-auto max-w-[calc(100%-6rem)] flex flex-col justify-center items-start"
>
<
p
className=
"w-full text-
4
xl text-black leading-tight opacity-80 dark:text-gray-200 truncate"
>
<
div
className=
"w-full flex flex-
col justify-start items-start
pt-4 pb-8 px-3"
>
<
UserAvatar
className=
"!w-16 !h-16 drop-shadow rounded-3xl"
avatarUrl=
{
user
?.
avatarUrl
}
/>
<
div
className=
"
mt-2
w-auto max-w-[calc(100%-6rem)] flex flex-col justify-center items-start"
>
<
p
className=
"w-full text-
3
xl text-black leading-tight opacity-80 dark:text-gray-200 truncate"
>
{
user
.
nickname
||
user
.
username
}
</
p
>
<
p
className=
"w-full text-gray-500 opacity-80 dark:text-gray-400 truncate"
>
{
user
.
description
}
</
p
>
<
p
className=
"w-full text-gray-500 leading-snug opacity-80 dark:text-gray-400 whitespace-pre-wrap truncate line-clamp-6"
>
{
user
.
description
}
</
p
>
</
div
>
</
div
>
<
MemoFilter
className=
"px-2 pb-3"
/>
...
...
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