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
2e126c71
Commit
2e126c71
authored
Jul 10, 2022
by
boojack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update button elements
parent
46d7ecca
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
22 deletions
+24
-22
DailyReviewDialog.tsx
web/src/components/DailyReviewDialog.tsx
+8
-8
MemoCardDialog.tsx
web/src/components/MemoCardDialog.tsx
+0
-1
MemoEditor.tsx
web/src/components/MemoEditor.tsx
+9
-6
ShortcutList.tsx
web/src/components/ShortcutList.tsx
+2
-2
UserBanner.tsx
web/src/components/UserBanner.tsx
+2
-2
tag-list.less
web/src/less/tag-list.less
+3
-3
No files found.
web/src/components/DailyReviewDialog.tsx
View file @
2e126c71
...
...
@@ -63,18 +63,18 @@ const DailyReviewDialog: React.FC<Props> = (props: Props) => {
<
span
className=
"icon-text"
>
📅
</
span
>
Daily Review
</
p
>
<
div
className=
"btns-container"
>
<
spa
n
className=
"btn-text"
onClick=
{
()
=>
setCurrentDateStamp
(
currentDateStamp
-
DAILY_TIMESTAMP
)
}
>
<
butto
n
className=
"btn-text"
onClick=
{
()
=>
setCurrentDateStamp
(
currentDateStamp
-
DAILY_TIMESTAMP
)
}
>
<
img
className=
"icon-img"
src=
"/icons/arrow-left.svg"
/>
</
spa
n
>
<
spa
n
className=
"btn-text"
onClick=
{
()
=>
setCurrentDateStamp
(
currentDateStamp
+
DAILY_TIMESTAMP
)
}
>
</
butto
n
>
<
butto
n
className=
"btn-text"
onClick=
{
()
=>
setCurrentDateStamp
(
currentDateStamp
+
DAILY_TIMESTAMP
)
}
>
<
img
className=
"icon-img"
src=
"/icons/arrow-right.svg"
/>
</
spa
n
>
<
spa
n
className=
"btn-text share-btn"
onClick=
{
handleShareBtnClick
}
>
</
butto
n
>
<
butto
n
className=
"btn-text share-btn"
onClick=
{
handleShareBtnClick
}
>
<
img
className=
"icon-img"
src=
"/icons/share.svg"
/>
</
spa
n
>
<
spa
n
className=
"btn-text"
onClick=
{
()
=>
props
.
destroy
()
}
>
</
butto
n
>
<
butto
n
className=
"btn-text"
onClick=
{
()
=>
props
.
destroy
()
}
>
<
img
className=
"icon-img"
src=
"/icons/close.svg"
/>
</
spa
n
>
</
butto
n
>
</
div
>
<
DatePicker
className=
{
`date-picker ${showDatePicker ? "" : "!hidden"}`
}
...
...
web/src/components/MemoCardDialog.tsx
View file @
2e126c71
...
...
@@ -9,7 +9,6 @@ import { showDialog } from "./Dialog";
import
Image
from
"./Image"
;
import
{
formatMemoContent
}
from
"./Memo"
;
import
"../less/memo-card-dialog.less"
;
import
"../less/memo-content.less"
;
interface
LinkedMemo
extends
Memo
{
createdAtStr
:
string
;
...
...
web/src/components/MemoEditor.tsx
View file @
2e126c71
...
...
@@ -127,15 +127,14 @@ const MemoEditor: React.FC<Props> = () => {
[
state
]
);
const
handleSaveBtnClick
=
useCallback
(
async
(
content
:
string
)
=>
{
const
handleSaveBtnClick
=
async
(
content
:
string
)
=>
{
if
(
content
===
""
)
{
toastHelper
.
error
(
"Content can't be empty"
);
return
;
}
const
{
editMemoId
}
=
editorStateService
.
getState
();
try
{
const
{
editMemoId
}
=
editorStateService
.
getState
();
if
(
editMemoId
&&
editMemoId
!==
UNKNOWN_ID
)
{
const
prevMemo
=
memoService
.
getMemoById
(
editMemoId
??
UNKNOWN_ID
);
...
...
@@ -156,8 +155,12 @@ const MemoEditor: React.FC<Props> = () => {
toastHelper
.
error
(
error
.
message
);
}
setState
({
...
state
,
fullscreen
:
false
,
});
setEditorContentCache
(
""
);
}
,
[])
;
};
const
handleCancelBtnClick
=
useCallback
(()
=>
{
editorStateService
.
clearEditMemo
();
...
...
@@ -235,10 +238,10 @@ const MemoEditor: React.FC<Props> = () => {
})
}
</
div
>
</
div
>
<
div
className=
"action-btn"
>
<
button
className=
"action-btn"
>
<
img
className=
"icon-img"
src=
"/icons/image.svg"
onClick=
{
handleUploadFileBtnClick
}
/>
<
span
className=
{
`tip-text ${state.isUploadingResource ? "!block" : ""}`
}
>
Uploading
</
span
>
</
div
>
</
button
>
<
button
className=
"action-btn"
onClick=
{
handleFullscreenBtnClick
}
>
<
img
className=
"icon-img"
src=
{
`/icons/${state.fullscreen ? "close" : "open"}-fullscreen.svg`
}
alt=
""
/>
</
button
>
...
...
web/src/components/ShortcutList.tsx
View file @
2e126c71
...
...
@@ -38,9 +38,9 @@ const ShortcutList: React.FC<Props> = () => {
<
div
className=
"shortcuts-wrapper"
>
<
p
className=
"title-text"
>
<
span
className=
"normal-text"
>
Shortcuts
</
span
>
<
spa
n
className=
"btn"
onClick=
{
()
=>
showCreateShortcutDialog
()
}
>
<
butto
n
className=
"btn"
onClick=
{
()
=>
showCreateShortcutDialog
()
}
>
<
img
src=
"/icons/add.svg"
alt=
"add shortcut"
/>
</
spa
n
>
</
butto
n
>
</
p
>
<
div
className=
"shortcuts-container"
>
{
sortedShortcuts
.
map
((
s
)
=>
{
...
...
web/src/components/UserBanner.tsx
View file @
2e126c71
...
...
@@ -44,9 +44,9 @@ const UserBanner: React.FC<Props> = () => {
<
span
className=
"username-text"
>
{
username
}
</
span
>
{
!
isVisitorMode
&&
user
?.
role
===
"HOST"
?
<
span
className=
"tag"
>
MOD
</
span
>
:
null
}
</
div
>
<
spa
n
className=
"action-btn menu-popup-btn"
onClick=
{
handlePopupBtnClick
}
>
<
butto
n
className=
"action-btn menu-popup-btn"
onClick=
{
handlePopupBtnClick
}
>
<
img
src=
"/icons/more.svg"
className=
"icon-img"
/>
</
spa
n
>
</
butto
n
>
<
MenuBtnsPopup
shownStatus=
{
shouldShowPopupBtns
}
setShownStatus=
{
setShouldShowPopupBtns
}
/>
</
div
>
<
div
className=
"status-text-container"
>
...
...
web/src/less/tag-list.less
View file @
2e126c71
...
...
@@ -12,7 +12,7 @@
@apply flex flex-col justify-start items-start relative w-full h-auto flex-nowrap mb-2 mt-1;
.subtags-container {
@apply flex flex-col justify-start items-start h-auto mt-1 ml-
4
pl-1;
@apply flex flex-col justify-start items-start h-auto mt-1 ml-
5
pl-1;
width: calc(100% - 18px);
min-width: 80px;
border-left: 2px solid @bg-gray;
...
...
@@ -32,7 +32,7 @@
}
> .tag-text-container {
@apply flex flex-row justify-start items-center overflow-hidden
text-ellipsis
shrink-0 leading-5 text-black;
@apply flex flex-row justify-start items-center overflow-hidden shrink-0 leading-5 text-black;
max-width: calc(100% - 24px);
> .icon-text {
...
...
@@ -40,7 +40,7 @@
}
> .tag-text {
@apply
shrink-0
;
@apply
truncate
;
}
}
...
...
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