Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Plate Editor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Projekt HeadlessCMS-WS24-25
Plate Editor
Commits
e53d4aa6
Commit
e53d4aa6
authored
2 months ago
by
Leon Jung
Browse files
Options
Downloads
Patches
Plain Diff
fix table-feature
parent
ff853656
Branches
main
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/App.tsx
+2
-0
2 additions, 0 deletions
src/App.tsx
src/components/plate-ui/editor.tsx
+1
-1
1 addition, 1 deletion
src/components/plate-ui/editor.tsx
src/components/plate-ui/table-cell-element.tsx
+1
-1
1 addition, 1 deletion
src/components/plate-ui/table-cell-element.tsx
with
4 additions
and
2 deletions
src/App.tsx
+
2
−
0
View file @
e53d4aa6
...
...
@@ -2,7 +2,9 @@ import { PlateEditor } from "./components/editor/plate-editor";
function
App
()
{
return
(
<
div
className
=
"bg-blue-800 h-screen flex items-center justify-center z-10 relative"
>
<
PlateEditor
/>
</
div
>
);
}
...
...
This diff is collapsed.
Click to expand it.
src/components/plate-ui/editor.tsx
+
1
−
1
View file @
e53d4aa6
...
...
@@ -14,7 +14,7 @@ import {
import
{
cva
}
from
'
class-variance-authority
'
;
const
editorContainerVariants
=
cva
(
'
relative w-[40rem] h-[20rem] cursor-text border border-slate-300 rounded-md
p-1
select-text caret-primary overflow-y-auto selection:bg-brand/25 focus-visible:outline-none [&_.slate-selection-area]:border [&_.slate-selection-area]:border-brand/25 [&_.slate-selection-area]:bg-brand/15
'
,
'
relative w-[40rem] h-[20rem]
bg-white
cursor-text border border-slate-300 rounded-md select-text caret-primary overflow-y-auto selection:bg-brand/25 focus-visible:outline-none [&_.slate-selection-area]:border [&_.slate-selection-area]:border-brand/25 [&_.slate-selection-area]:bg-brand/15
'
,
{
defaultVariants
:
{
variant
:
'
default
'
,
...
...
This diff is collapsed.
Click to expand it.
src/components/plate-ui/table-cell-element.tsx
+
1
−
1
View file @
e53d4aa6
...
...
@@ -65,7 +65,7 @@ export const TableCellElement = withRef<
isHeader
&&
'
text-left [&_>_*]:m-0
'
,
'
before:size-full
'
,
selected
&&
'
before:z-10 before:bg-zinc-100 dark:before:bg-zinc-800
'
,
'
before:absolute before:box-border before:select-none before:content-[]
'
,
'
before:absolute before:box-border before:select-none before:content-[
""
]
'
,
borders
&&
cn
(
borders
.
bottom
?.
size
&&
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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