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
a2a095bc
Commit
a2a095bc
authored
4 years ago
by
chris
Browse files
Options
Downloads
Patches
Plain Diff
grid cell
parent
246cec9e
No related branches found
No related tags found
1 merge request
!161
Connect ui
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
wax-prosemirror-components/src/components/tables/CreateTable.js
+3
-3
3 additions, 3 deletions
...osemirror-components/src/components/tables/CreateTable.js
wax-prosemirror-components/src/ui/tables/InsertTableTool.js
+15
-17
15 additions, 17 deletions
wax-prosemirror-components/src/ui/tables/InsertTableTool.js
with
18 additions
and
20 deletions
wax-prosemirror-components/src/components/tables/CreateTable.js
+
3
−
3
View file @
a2a095bc
...
...
@@ -20,11 +20,11 @@ const ButtonStyled = styled.button`
`
;
const
InsertTableToolContainer
=
styled
.
div
`
display: block !important;
height: auto;
top: 53px;
left: 556px;
position: absolute;
height: auto;
width: 167px;
display: block !important;
`
;
const
CreateTable
=
({
view
=
{},
item
})
=>
{
...
...
This diff is collapsed.
Click to expand it.
wax-prosemirror-components/src/ui/tables/InsertTableTool.js
+
15
−
17
View file @
a2a095bc
...
...
@@ -76,24 +76,22 @@ const GUTTER_SIZE = 5;
const
CELL_SIZE
=
16
;
const
MAX_SIZE
=
20
;
class
GridCell
extends
React
.
PureComponent
{
render
()
{
const
{
x
,
y
,
selected
}
=
this
.
props
;
const
style
=
{
left
:
x
+
'
px
'
,
top
:
y
+
'
px
'
,
width
:
CELL_SIZE
+
'
px
'
,
height
:
CELL_SIZE
+
'
px
'
,
border
:
'
1px solid gray
'
,
boxSizing
:
'
border-box
'
,
position
:
'
absolute
'
,
zIndex
:
2
,
};
const
GridCell
=
props
=>
{
const
{
x
,
y
,
selected
}
=
props
;
const
style
=
{
left
:
x
+
'
px
'
,
top
:
y
+
'
px
'
,
width
:
CELL_SIZE
+
'
px
'
,
height
:
CELL_SIZE
+
'
px
'
,
border
:
'
1px solid gray
'
,
boxSizing
:
'
border-box
'
,
position
:
'
absolute
'
,
zIndex
:
2
,
};
if
(
selected
)
style
.
background
=
'
skyblue
'
;
return
<
div
style
=
{
style
}
/>
;
}
}
if
(
selected
)
style
.
background
=
'
skyblue
'
;
return
<
div
style
=
{
style
}
/>
;
};
GridCell
.
propTypes
=
{
x
:
PropTypes
.
number
.
isRequired
,
...
...
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