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
5f8aae69
Unverified
Commit
5f8aae69
authored
Apr 16, 2023
by
boojack
Committed by
GitHub
Apr 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update save button style (#1542)
parent
73b8d1dd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
BaseDialog.tsx
web/src/components/Dialog/BaseDialog.tsx
+4
-0
LocaleSelect.tsx
web/src/components/LocaleSelect.tsx
+1
-1
memo-editor.less
web/src/less/memo-editor.less
+1
-1
No files found.
web/src/components/Dialog/BaseDialog.tsx
View file @
5f8aae69
...
...
@@ -25,6 +25,7 @@ const BaseDialog: React.FC<Props> = (props: Props) => {
const
dialogIndex
=
dialogStore
.
state
.
dialogStack
.
findIndex
((
item
)
=>
item
===
dialogName
);
useEffect
(()
=>
{
document
.
body
.
classList
.
add
(
"overflow-hidden"
);
dialogStore
.
pushDialogStack
(
dialogName
);
const
handleKeyDown
=
(
event
:
KeyboardEvent
)
=>
{
if
(
event
.
code
===
"Escape"
)
{
...
...
@@ -39,6 +40,9 @@ const BaseDialog: React.FC<Props> = (props: Props) => {
return
()
=>
{
document
.
body
.
removeEventListener
(
"keydown"
,
handleKeyDown
);
dialogStore
.
removeDialog
(
dialogName
);
if
(
dialogStore
.
state
.
dialogStack
.
length
===
0
)
{
document
.
body
.
classList
.
remove
(
"overflow-hidden"
);
}
};
},
[]);
...
...
web/src/components/LocaleSelect.tsx
View file @
5f8aae69
...
...
@@ -18,7 +18,7 @@ const LocaleSelect: FC<Props> = (props: Props) => {
return
(
<
Select
className=
{
`!min-w-[1
2
rem] w-auto whitespace-nowrap ${className ?? ""}`
}
className=
{
`!min-w-[1
0
rem] w-auto whitespace-nowrap ${className ?? ""}`
}
startDecorator=
{
<
Icon
.
Globe
className=
"w-4 h-auto"
/>
}
value=
{
value
}
onChange=
{
(
_
,
value
)
=>
handleSelectChange
(
value
as
Locale
)
}
...
...
web/src/less/memo-editor.less
View file @
5f8aae69
...
...
@@ -137,7 +137,7 @@
}
> .confirm-btn {
@apply border-none select-none rounded
flex flex-row justify-center items-center shadow cursor-pointer px-3
py-0 leading-8 bg-green-600 text-white text-sm hover:opacity-80 disabled:cursor-not-allowed disabled:opacity-60;
@apply border-none select-none rounded
-full flex flex-row justify-center items-center shadow cursor-pointer px-4
py-0 leading-8 bg-green-600 text-white text-sm hover:opacity-80 disabled:cursor-not-allowed disabled:opacity-60;
}
}
}
...
...
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