Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wax-prosemirror
Manage
Activity
Members
Labels
Plan
Issues
34
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wax
wax-prosemirror
Commits
9d7f08c8
Commit
9d7f08c8
authored
3 years ago
by
chris
Browse files
Options
Downloads
Patches
Plain Diff
find-component
parent
2fe5b419
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!268
Fixes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wax-prosemirror-components/src/components/findAndReplace/FindComponent.js
+40
-31
40 additions, 31 deletions
...components/src/components/findAndReplace/FindComponent.js
with
40 additions
and
31 deletions
wax-prosemirror-components/src/components/findAndReplace/FindComponent.js
+
40
−
31
View file @
9d7f08c8
...
...
@@ -27,10 +27,11 @@ const Wrapper = styled.div`
const
SingleRow
=
styled
.
div
`
display: flex;
flex-direction: row;
width: 100%;
`
;
const
SearchInputWrapper
=
styled
.
div
`
width:
75%
;
width:
266px
;
`
;
const
SearchInput
=
styled
.
input
`
...
...
@@ -40,7 +41,7 @@ const SearchInput = styled.input`
font-size: 15px;
font-weight: 400;
padding:
${
grid
(
1
)}
${
grid
(
10
)}
${
grid
(
1
)}
${
grid
(
1
)}
;
width:
78%
;
width:
calc(100% -
${
grid
(
10
)}
)
;
::placeholder {
color: #d8dae0;
...
...
@@ -51,10 +52,16 @@ const SearchInput = styled.input`
}
`
;
const
ControlsWrapper
=
styled
.
div
`
display: flex;
margin-left: auto;
width: 126px;
`
;
const
CounterInput
=
styled
.
span
`
font-size: 12px;
position: absolute;
right: 1
5
5px;
right: 1
4
5px;
-webkit-text-fill-color: rgba(27, 43, 75, 0.28);
top: 13px;
z-index: 1;
...
...
@@ -230,34 +237,36 @@ const FindComponent = ({
/
>
<
CounterInput
>
{
counterText
}
<
/CounterInput
>
<
/SearchInputWrapper
>
<
IconWrapper
onClick
=
{
matchCase
}
role
=
"
button
"
tabIndex
=
"
0
"
>
<
Svg
active
=
{
matchCaseSearch
}
fill
=
"
none
"
viewBox
=
"
0 0 24 24
"
>
<
title
>
Match
Case
<
/title
>
<
path
d
=
"
M2.5,4v3h5v12h3V7h5V4H2.5z M21.5,9h-9v3h3v7h3v-7h3V9z
"
/>
<
/Svg
>
<
/IconWrapper
>
<
IconWrapper
onClick
=
{()
=>
findPreviousMatch
(
searchValue
,
matchCaseSearch
)}
role
=
"
button
"
tabIndex
=
"
0
"
>
<
StyledIcon
name
=
"
navigatePrevious
"
/>
<
/IconWrapper
>
<
IconWrapper
onClick
=
{()
=>
findNextMatch
(
searchValue
,
matchCaseSearch
)}
role
=
"
button
"
tabIndex
=
"
0
"
>
<
StyledIcon
name
=
"
navigateNext
"
/>
<
/IconWrapper
>
<
ExpandedWrapper
onClick
=
{
showExpanded
}
>
<
StyledIcon
name
=
"
more
"
/>
<
/ExpandedWrapper
>
<
CloseWrapper
onClick
=
{
closeFind
}
>
<
StyledIcon
name
=
"
close
"
/>
<
/CloseWrapper
>
<
ControlsWrapper
>
<
IconWrapper
onClick
=
{
matchCase
}
role
=
"
button
"
tabIndex
=
"
0
"
>
<
Svg
active
=
{
matchCaseSearch
}
fill
=
"
none
"
viewBox
=
"
0 0 24 24
"
>
<
title
>
Match
Case
<
/title
>
<
path
d
=
"
M2.5,4v3h5v12h3V7h5V4H2.5z M21.5,9h-9v3h3v7h3v-7h3V9z
"
/>
<
/Svg
>
<
/IconWrapper
>
<
IconWrapper
onClick
=
{()
=>
findPreviousMatch
(
searchValue
,
matchCaseSearch
)}
role
=
"
button
"
tabIndex
=
"
0
"
>
<
StyledIcon
name
=
"
navigatePrevious
"
/>
<
/IconWrapper
>
<
IconWrapper
onClick
=
{()
=>
findNextMatch
(
searchValue
,
matchCaseSearch
)}
role
=
"
button
"
tabIndex
=
"
0
"
>
<
StyledIcon
name
=
"
navigateNext
"
/>
<
/IconWrapper
>
<
ExpandedWrapper
onClick
=
{
showExpanded
}
>
<
StyledIcon
name
=
"
more
"
/>
<
/ExpandedWrapper
>
<
CloseWrapper
onClick
=
{
closeFind
}
>
<
StyledIcon
name
=
"
close
"
/>
<
/CloseWrapper
>
<
/ControlsWrapper
>
<
/SingleRow
>
<
/Wrapper
>
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment