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
921d4b99
Unverified
Commit
921d4b99
authored
May 13, 2023
by
boojack
Committed by
GitHub
May 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update help button style (#1656)
parent
96021e51
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
15 deletions
+15
-15
SSOSection.tsx
web/src/components/Settings/SSOSection.tsx
+3
-3
StorageSection.tsx
web/src/components/Settings/StorageSection.tsx
+3
-3
SystemSection.tsx
web/src/components/Settings/SystemSection.tsx
+5
-5
HelpButton.tsx
web/src/components/kit/HelpButton.tsx
+4
-4
No files found.
web/src/components/Settings/SSOSection.tsx
View file @
921d4b99
...
@@ -43,11 +43,11 @@ const SSOSection = () => {
...
@@ -43,11 +43,11 @@ const SSOSection = () => {
return
(
return
(
<
div
className=
"section-container"
>
<
div
className=
"section-container"
>
<
div
className=
"mb-2 w-full flex flex-row justify-start items-center"
>
<
div
className=
"mb-2 w-full flex flex-row justify-start items-center
gap-1
"
>
<
span
className=
"font-mono text-sm text-gray-400
mr-2
"
>
{
t
(
"setting.sso-section.sso-list"
)
}
</
span
>
<
span
className=
"font-mono text-sm text-gray-400"
>
{
t
(
"setting.sso-section.sso-list"
)
}
</
span
>
<
HelpButton
icon=
"help"
url=
"https://usememos.com/docs/keycloak"
/>
<
HelpButton
icon=
"help"
url=
"https://usememos.com/docs/keycloak"
/>
<
button
<
button
className=
"btn-normal px-2 py-0
leading-7
"
className=
"btn-normal px-2 py-0
ml-1
"
onClick=
{
()
=>
showCreateIdentityProviderDialog
(
undefined
,
fetchIdentityProviderList
)
}
onClick=
{
()
=>
showCreateIdentityProviderDialog
(
undefined
,
fetchIdentityProviderList
)
}
>
>
{
t
(
"common.create"
)
}
{
t
(
"common.create"
)
}
...
...
web/src/components/Settings/StorageSection.tsx
View file @
921d4b99
...
@@ -76,10 +76,10 @@ const StorageSection = () => {
...
@@ -76,10 +76,10 @@ const StorageSection = () => {
))
}
))
}
</
Select
>
</
Select
>
<
Divider
/>
<
Divider
/>
<
div
className=
"mt-4 mb-2 w-full flex flex-row justify-start items-center"
>
<
div
className=
"mt-4 mb-2 w-full flex flex-row justify-start items-center
gap-1
"
>
<
span
className=
"font-mono text-sm text-gray-400
mr-2
"
>
{
t
(
"setting.storage-section.storage-services-list"
)
}
</
span
>
<
span
className=
"font-mono text-sm text-gray-400"
>
{
t
(
"setting.storage-section.storage-services-list"
)
}
</
span
>
<
HelpButton
className=
"btn"
icon=
"info"
url=
"https://usememos.com/docs/storage"
/>
<
HelpButton
className=
"btn"
icon=
"info"
url=
"https://usememos.com/docs/storage"
/>
<
button
className=
"btn-normal px-2 py-0
leading-7
"
onClick=
{
()
=>
showCreateStorageServiceDialog
(
undefined
,
fetchStorageList
)
}
>
<
button
className=
"btn-normal px-2 py-0
ml-1
"
onClick=
{
()
=>
showCreateStorageServiceDialog
(
undefined
,
fetchStorageList
)
}
>
{
t
(
"common.create"
)
}
{
t
(
"common.create"
)
}
</
button
>
</
button
>
</
div
>
</
div
>
...
...
web/src/components/Settings/SystemSection.tsx
View file @
921d4b99
...
@@ -231,9 +231,9 @@ const SystemSection = () => {
...
@@ -231,9 +231,9 @@ const SystemSection = () => {
<
Switch
checked=
{
state
.
disablePublicMemos
}
onChange=
{
(
event
)
=>
handleDisablePublicMemosChanged
(
event
.
target
.
checked
)
}
/>
<
Switch
checked=
{
state
.
disablePublicMemos
}
onChange=
{
(
event
)
=>
handleDisablePublicMemosChanged
(
event
.
target
.
checked
)
}
/>
</
div
>
</
div
>
<
div
className=
"form-label"
>
<
div
className=
"form-label"
>
<
div
className=
"flex flex-row"
>
<
div
className=
"flex flex-row
items-center
"
>
<
span
className=
"normal-text"
>
{
t
(
"setting.system-section.max-upload-size"
)
}
</
span
>
<
span
className=
"normal-text
mr-1
"
>
{
t
(
"setting.system-section.max-upload-size"
)
}
</
span
>
<
HelpButton
icon=
"info"
hint=
{
t
(
"setting.system-section.max-upload-size-hint"
)
}
hintPlacement=
"left"
/>
<
HelpButton
icon=
"info"
hint=
{
t
(
"setting.system-section.max-upload-size-hint"
)
}
/>
</
div
>
</
div
>
<
Input
<
Input
className=
"w-16"
className=
"w-16"
...
@@ -247,8 +247,8 @@ const SystemSection = () => {
...
@@ -247,8 +247,8 @@ const SystemSection = () => {
</
div
>
</
div
>
<
Divider
className=
"!mt-3 !my-4"
/>
<
Divider
className=
"!mt-3 !my-4"
/>
<
div
className=
"form-label"
>
<
div
className=
"form-label"
>
<
div
className=
"flex flex-row"
>
<
div
className=
"flex flex-row
items-center
"
>
<
span
className=
"normal-text"
>
{
t
(
"setting.system-section.openai-api-key"
)
}
</
span
>
<
span
className=
"normal-text
mr-1
"
>
{
t
(
"setting.system-section.openai-api-key"
)
}
</
span
>
<
HelpButton
hint=
{
t
(
"setting.system-section.openai-api-key-description"
)
}
url=
"https://platform.openai.com/account/api-keys"
/>
<
HelpButton
hint=
{
t
(
"setting.system-section.openai-api-key-description"
)
}
url=
"https://platform.openai.com/account/api-keys"
/>
</
div
>
</
div
>
<
Button
onClick=
{
handleSaveOpenAIConfig
}
>
{
t
(
"common.save"
)
}
</
Button
>
<
Button
onClick=
{
handleSaveOpenAIConfig
}
>
{
t
(
"common.save"
)
}
</
Button
>
...
...
web/src/components/kit/HelpButton.tsx
View file @
921d4b99
...
@@ -174,7 +174,7 @@ const HelpButton = (props: HelpProps): JSX.Element => {
...
@@ -174,7 +174,7 @@ const HelpButton = (props: HelpProps): JSX.Element => {
const
{
t
}
=
useTranslation
();
const
{
t
}
=
useTranslation
();
const
color
=
props
.
color
??
"neutral"
;
const
color
=
props
.
color
??
"neutral"
;
const
variant
=
props
.
variant
??
"plain"
;
const
variant
=
props
.
variant
??
"plain"
;
const
className
=
props
.
className
??
"
!-mt-1
"
;
const
className
=
props
.
className
??
""
;
const
hintPlacement
=
props
.
hintPlacement
??
"top"
;
const
hintPlacement
=
props
.
hintPlacement
??
"top"
;
const
iconButtonSize
=
"sm"
;
const
iconButtonSize
=
"sm"
;
...
@@ -232,12 +232,12 @@ const HelpButton = (props: HelpProps): JSX.Element => {
...
@@ -232,12 +232,12 @@ const HelpButton = (props: HelpProps): JSX.Element => {
const
sizePx
=
(()
=>
{
const
sizePx
=
(()
=>
{
switch
(
props
.
size
)
{
switch
(
props
.
size
)
{
case
"sm"
:
case
"sm"
:
return
1
6
;
return
1
4
;
case
"lg"
:
case
"lg"
:
return
4
8
;
return
1
8
;
case
"md"
:
case
"md"
:
default
:
default
:
return
24
;
return
16
;
}
}
})();
})();
...
...
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