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
96a7d0eb
Commit
96a7d0eb
authored
Mar 19, 2024
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: tweak line height
parent
ed89cb83
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
18 deletions
+16
-18
Code.tsx
web/src/components/MemoContent/Code.tsx
+1
-1
MemoView.tsx
web/src/components/MemoView.tsx
+6
-8
MyAccountSection.tsx
web/src/components/Settings/MyAccountSection.tsx
+3
-3
Timeline.tsx
web/src/pages/Timeline.tsx
+1
-1
UserProfile.tsx
web/src/pages/UserProfile.tsx
+5
-5
No files found.
web/src/components/MemoContent/Code.tsx
View file @
96a7d0eb
...
@@ -3,7 +3,7 @@ interface Props {
...
@@ -3,7 +3,7 @@ interface Props {
}
}
const
Code
:
React
.
FC
<
Props
>
=
({
content
}:
Props
)
=>
{
const
Code
:
React
.
FC
<
Props
>
=
({
content
}:
Props
)
=>
{
return
<
code
className=
"inline break-all px-1
py-0.5 leading-none text-sm
rounded bg-gray-100 dark:bg-zinc-700"
>
{
content
}
</
code
>;
return
<
code
className=
"inline break-all px-1 rounded bg-gray-100 dark:bg-zinc-700"
>
{
content
}
</
code
>;
};
};
export
default
Code
;
export
default
Code
;
web/src/components/MemoView.tsx
View file @
96a7d0eb
...
@@ -90,16 +90,14 @@ const MemoView: React.FC<Props> = (props: Props) => {
...
@@ -90,16 +90,14 @@ const MemoView: React.FC<Props> = (props: Props) => {
<
UserAvatar
className=
"mr-2 shrink-0"
avatarUrl=
{
creator
.
avatarUrl
}
/>
<
UserAvatar
className=
"mr-2 shrink-0"
avatarUrl=
{
creator
.
avatarUrl
}
/>
</
Link
>
</
Link
>
<
div
className=
"w-full flex flex-col justify-center items-start"
>
<
div
className=
"w-full flex flex-col justify-center items-start"
>
<
Link
<
Link
className=
"w-auto hover:opacity-80"
to=
{
`/u/${encodeURIComponent(creator.username)}`
}
unstable_viewTransition
>
className=
"w-auto leading-none hover:opacity-80"
<
span
className=
"text-gray-600 text-lg leading-tight max-w-[80%] truncate dark:text-gray-400"
>
to=
{
`/u/${encodeURIComponent(creator.username)}`
}
unstable_viewTransition
>
<
span
className=
"text-gray-600 text-lg leading-none max-w-[80%] truncate dark:text-gray-400"
>
{
creator
.
nickname
||
creator
.
username
}
{
creator
.
nickname
||
creator
.
username
}
</
span
>
</
span
>
</
Link
>
</
Link
>
<
span
className=
"text-gray-400 text-sm leading-none max-w-[80%] truncate dark:text-gray-500"
>
{
creator
.
description
}
</
span
>
<
span
className=
"-mt-1 text-gray-400 text-sm leading-tight max-w-[80%] truncate dark:text-gray-500"
>
{
creator
.
description
}
</
span
>
</
div
>
</
div
>
</
div
>
</
div
>
)
}
)
}
...
@@ -146,7 +144,7 @@ const MemoView: React.FC<Props> = (props: Props) => {
...
@@ -146,7 +144,7 @@ const MemoView: React.FC<Props> = (props: Props) => {
/>
/>
<
MemoResourceListView
resources=
{
memo
.
resources
}
/>
<
MemoResourceListView
resources=
{
memo
.
resources
}
/>
<
div
className=
"w-full flex flex-row justify-between items-center"
>
<
div
className=
"w-full flex flex-row justify-between items-center"
>
<
div
className=
"text-sm leading-
none
text-gray-400 select-none"
>
<
div
className=
"text-sm leading-
tight
text-gray-400 select-none"
>
<
relative
-
time
datetime=
{
memo
.
displayTime
?.
toISOString
()
}
tense=
"past"
onClick=
{
handleGotoMemoDetailPage
}
></
relative
-
time
>
<
relative
-
time
datetime=
{
memo
.
displayTime
?.
toISOString
()
}
tense=
"past"
onClick=
{
handleGotoMemoDetailPage
}
></
relative
-
time
>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
web/src/components/Settings/MyAccountSection.tsx
View file @
96a7d0eb
...
@@ -26,10 +26,10 @@ const MyAccountSection = () => {
...
@@ -26,10 +26,10 @@ const MyAccountSection = () => {
<
UserAvatar
className=
"mr-2 shrink-0 w-10 h-10"
avatarUrl=
{
user
.
avatarUrl
}
/>
<
UserAvatar
className=
"mr-2 shrink-0 w-10 h-10"
avatarUrl=
{
user
.
avatarUrl
}
/>
<
div
className=
"max-w-[calc(100%-3rem)] flex flex-col justify-center items-start"
>
<
div
className=
"max-w-[calc(100%-3rem)] flex flex-col justify-center items-start"
>
<
p
className=
"w-full"
>
<
p
className=
"w-full"
>
<
span
className=
"text-xl leading-
none
font-medium"
>
{
user
.
nickname
}
</
span
>
<
span
className=
"text-xl leading-
tight
font-medium"
>
{
user
.
nickname
}
</
span
>
<
span
className=
"ml-1 text-base leading-
none
text-gray-500 dark:text-gray-400"
>
(
{
user
.
username
}
)
</
span
>
<
span
className=
"ml-1 text-base leading-
tight
text-gray-500 dark:text-gray-400"
>
(
{
user
.
username
}
)
</
span
>
</
p
>
</
p
>
<
p
className=
"w-4/5 leading-
none
text-sm truncate"
>
{
user
.
description
}
</
p
>
<
p
className=
"w-4/5 leading-
tight
text-sm truncate"
>
{
user
.
description
}
</
p
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
className=
"w-full flex flex-row justify-start items-center mt-2 space-x-2"
>
<
div
className=
"w-full flex flex-row justify-start items-center mt-2 space-x-2"
>
...
...
web/src/pages/Timeline.tsx
View file @
96a7d0eb
...
@@ -153,7 +153,7 @@ const Timeline = () => {
...
@@ -153,7 +153,7 @@ const Timeline = () => {
<
div
className=
{
classNames
(
"flex flex-col justify-start items-start w-full mt-2 last:mb-4"
)
}
>
<
div
className=
{
classNames
(
"flex flex-col justify-start items-start w-full mt-2 last:mb-4"
)
}
>
<
div
className=
{
classNames
(
"flex shrink-0 flex-row w-full pl-1 mt-2 mb-2"
)
}
>
<
div
className=
{
classNames
(
"flex shrink-0 flex-row w-full pl-1 mt-2 mb-2"
)
}
>
<
div
className=
{
classNames
(
"w-full flex flex-col"
)
}
>
<
div
className=
{
classNames
(
"w-full flex flex-col"
)
}
>
<
span
className=
"font-medium text-3xl leading-
none
mb-1"
>
<
span
className=
"font-medium text-3xl leading-
tight
mb-1"
>
{
new
Date
(
group
.
month
).
toLocaleString
(
i18n
.
language
,
{
month
:
"short"
,
timeZone
:
"UTC"
})
}
{
new
Date
(
group
.
month
).
toLocaleString
(
i18n
.
language
,
{
month
:
"short"
,
timeZone
:
"UTC"
})
}
</
span
>
</
span
>
<
span
className=
"opacity-60"
>
{
new
Date
(
group
.
month
).
getUTCFullYear
()
}
</
span
>
<
span
className=
"opacity-60"
>
{
new
Date
(
group
.
month
).
getUTCFullYear
()
}
</
span
>
...
...
web/src/pages/UserProfile.tsx
View file @
96a7d0eb
...
@@ -118,16 +118,16 @@ const UserProfile = () => {
...
@@ -118,16 +118,16 @@ const UserProfile = () => {
endDecorator=
{
<
Icon
.
ExternalLink
className=
"w-4 h-auto opacity-60"
/>
}
endDecorator=
{
<
Icon
.
ExternalLink
className=
"w-4 h-auto opacity-60"
/>
}
onClick=
{
handleCopyProfileLink
}
onClick=
{
handleCopyProfileLink
}
>
>
Share
{
t
(
"common.share"
)
}
</
Button
>
</
Button
>
</
div
>
</
div
>
<
div
className=
"w-full flex flex-row justify-start items-center pt-4 pb-8 px-
4
"
>
<
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"
avatarUrl=
{
user
?.
avatarUrl
}
/>
<
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"
>
<
div
className=
"w-auto max-w-[calc(100%-6rem)] flex flex-col justify-center items-start"
>
<
p
className=
"w-full text-4xl text-black leading-
none
opacity-80 dark:text-gray-200 truncate"
>
<
p
className=
"w-full text-4xl text-black leading-
tight
opacity-80 dark:text-gray-200 truncate"
>
{
user
.
nickname
||
user
.
username
}
{
user
.
nickname
||
user
.
username
}
</
p
>
</
p
>
<
p
className=
"w-full
mt-1 text-gray-500 leading-none
opacity-80 dark:text-gray-400 truncate"
>
{
user
.
description
}
</
p
>
<
p
className=
"w-full
text-gray-500
opacity-80 dark:text-gray-400 truncate"
>
{
user
.
description
}
</
p
>
</
div
>
</
div
>
</
div
>
</
div
>
<
MemoFilter
className=
"px-2 pb-3"
/>
<
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