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
bedf3b30
Commit
bedf3b30
authored
Apr 02, 2024
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: tweak embedded memo styles
parent
09ffa7b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
10 deletions
+23
-10
EmbeddedMemo.tsx
...c/components/MemoContent/EmbeddedContent/EmbeddedMemo.tsx
+2
-2
MyAccountSection.tsx
web/src/components/Settings/MyAccountSection.tsx
+21
-8
No files found.
web/src/components/MemoContent/EmbeddedContent/EmbeddedMemo.tsx
View file @
bedf3b30
...
...
@@ -53,10 +53,10 @@ const EmbeddedMemo = ({ resourceId, params: paramsStr }: Props) => {
}
return
(
<
div
className=
"relative flex flex-col justify-start items-start w-full p
-4 pt-3 !m
y-2 bg-white dark:bg-zinc-800 rounded-lg border border-gray-200 dark:border-zinc-700 hover:shadow"
>
<
div
className=
"relative flex flex-col justify-start items-start w-full p
x-3 p
y-2 bg-white dark:bg-zinc-800 rounded-lg border border-gray-200 dark:border-zinc-700 hover:shadow"
>
<
div
className=
"w-full mb-1 flex flex-row justify-between items-center"
>
<
div
className=
"text-sm leading-6 text-gray-400 select-none"
>
<
relative
-
time
datetime=
{
memo
.
displayTime
?.
toISOString
()
}
tense=
"past"
></
relative
-
time
>
<
relative
-
time
datetime=
{
memo
.
displayTime
?.
toISOString
()
}
format=
"datetime"
tense=
"past"
></
relative
-
time
>
</
div
>
<
Link
className=
"hover:opacity-80"
to=
{
`/m/${memo.uid}`
}
unstable_viewTransition
>
<
Icon
.
ArrowUpRight
className=
"w-5 h-auto opacity-80 text-gray-400"
/>
...
...
web/src/components/Settings/MyAccountSection.tsx
View file @
bedf3b30
import
{
Button
}
from
"@mui/joy"
;
import
{
Button
,
Dropdown
,
Menu
,
MenuButton
,
MenuItem
}
from
"@mui/joy"
;
import
{
memoServiceClient
}
from
"@/grpcweb"
;
import
{
downloadFileFromUrl
}
from
"@/helpers/utils"
;
import
useCurrentUser
from
"@/hooks/useCurrentUser"
;
import
{
useTranslate
}
from
"@/utils/i18n"
;
import
showChangePasswordDialog
from
"../ChangePasswordDialog"
;
import
Icon
from
"../Icon"
;
import
showUpdateAccountDialog
from
"../UpdateAccountDialog"
;
import
UserAvatar
from
"../UserAvatar"
;
import
AccessTokenSection
from
"./AccessTokenSection"
;
...
...
@@ -33,15 +34,27 @@ const MyAccountSection = () => {
</
div
>
</
div
>
<
div
className=
"w-full flex flex-row justify-start items-center mt-2 space-x-2"
>
<
Button
variant=
"outlined"
onClick=
{
showUpdateAccountDialog
}
>
<
Button
variant=
"outlined"
color=
"neutral"
size=
"sm"
onClick=
{
showUpdateAccountDialog
}
>
<
Icon
.
PenLine
className=
"w-4 h-4 mx-auto mr-1"
/>
{
t
(
"common.edit"
)
}
</
Button
>
<
Button
variant=
"outlined"
onClick=
{
showChangePasswordDialog
}
>
{
t
(
"setting.account-section.change-password"
)
}
</
Button
>
<
Button
variant=
"outlined"
onClick=
{
()
=>
downloadExportedMemos
(
user
)
}
>
{
t
(
"setting.account-section.export-memos"
)
}
</
Button
>
<
Dropdown
>
<
MenuButton
slots=
{
{
root
:
"div"
}
}
>
<
Button
variant=
"outlined"
color=
"neutral"
size=
"sm"
>
<
Icon
.
MoreVertical
className=
"w-4 h-4 mx-auto"
/>
</
Button
>
</
MenuButton
>
<
Menu
className=
"text-sm"
size=
"sm"
placement=
"bottom"
>
<
MenuItem
onClick=
{
showChangePasswordDialog
}
>
<
Icon
.
ArchiveRestore
className=
"w-4 h-auto"
/>
{
t
(
"setting.account-section.change-password"
)
}
</
MenuItem
>
<
MenuItem
onClick=
{
()
=>
downloadExportedMemos
(
user
)
}
>
<
Icon
.
Trash
className=
"w-4 h-auto"
/>
{
t
(
"setting.account-section.export-memos"
)
}
</
MenuItem
>
</
Menu
>
</
Dropdown
>
</
div
>
<
AccessTokenSection
/>
...
...
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