Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
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
ai-tech
dify
Commits
0fc76f7e
Unverified
Commit
0fc76f7e
authored
Aug 02, 2023
by
Rhon Joe
Committed by
GitHub
Aug 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(web): fix style override issue (#713)
parent
41d33ee8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
28 deletions
+25
-28
index.module.css
web/app/components/datasets/create/step-two/index.module.css
+25
-23
use-copy-to-clipboard.ts
web/hooks/use-copy-to-clipboard.ts
+0
-5
No files found.
web/app/components/datasets/create/step-two/index.module.css
View file @
0fc76f7e
...
@@ -13,29 +13,6 @@
...
@@ -13,29 +13,6 @@
z-index
:
10
;
z-index
:
10
;
}
}
.fixed
{
padding-top
:
12px
;
font-size
:
12px
;
line-height
:
18px
;
background
:
rgba
(
255
,
255
,
255
,
0.9
);
border-bottom
:
0.5px
solid
#EAECF0
;
backdrop-filter
:
blur
(
4px
);
animation
:
fix
0.5s
;
}
@keyframes
fix
{
from
{
padding-top
:
42px
;
font-size
:
18px
;
line-height
:
28px
;
}
to
{
padding-top
:
12px
;
font-size
:
12px
;
line-height
:
18px
;
}
}
.form
{
.form
{
@apply
px-16
pb-8;
@apply
px-16
pb-8;
}
}
...
@@ -416,3 +393,28 @@
...
@@ -416,3 +393,28 @@
color
:
#101828
;
color
:
#101828
;
z-index
:
10
;
z-index
:
10
;
}
}
/*
* `fixed` must under `previewHeader` because of style override would not work
*/
.fixed
{
padding-top
:
12px
;
font-size
:
12px
;
line-height
:
18px
;
background
:
rgba
(
255
,
255
,
255
,
0.9
);
border-bottom
:
0.5px
solid
#EAECF0
;
backdrop-filter
:
blur
(
4px
);
animation
:
fix
0.5s
;
}
@keyframes
fix
{
from
{
padding-top
:
42px
;
font-size
:
18px
;
line-height
:
28px
;
}
to
{
padding-top
:
12px
;
font-size
:
12px
;
line-height
:
18px
;
}
}
web/hooks/use-copy-to-clipboard.ts
View file @
0fc76f7e
...
@@ -8,11 +8,6 @@ function useCopyToClipboard(): [CopiedValue, CopyFn] {
...
@@ -8,11 +8,6 @@ function useCopyToClipboard(): [CopiedValue, CopyFn] {
const
[
copiedText
,
setCopiedText
]
=
useState
<
CopiedValue
>
(
null
)
const
[
copiedText
,
setCopiedText
]
=
useState
<
CopiedValue
>
(
null
)
const
copy
:
CopyFn
=
useCallback
(
async
(
text
:
string
)
=>
{
const
copy
:
CopyFn
=
useCallback
(
async
(
text
:
string
)
=>
{
if
(
!
navigator
?.
clipboard
)
{
console
.
warn
(
'Clipboard not supported'
)
return
false
}
try
{
try
{
writeText
(
text
)
writeText
(
text
)
setCopiedText
(
text
)
setCopiedText
(
text
)
...
...
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