Skip to content

Commit

Permalink
fix : Add column shortcut gets hidden when mouse leave the table face…
Browse files Browse the repository at this point in the history
  • Loading branch information
sathishsridhar committed Sep 27, 2023
1 parent 0ec034e commit e04a6c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/lexical-playground/src/nodes/TableComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1716,7 +1716,11 @@ export default function TableComponent({
}

return (
<div style={{position: 'relative'}}>
<div
style={{
position: 'relative',
width: (tableRef.current?.clientWidth || 0) + 'px',
}}>
<table
className={`${theme.table} ${isSelected ? theme.tableSelected : ''}`}
ref={tableRef}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
width: 20px;
background-color: #eee;
height: 100%;
right: 0;
right: -25px;
animation: table-controls 0.2s ease;
border: 0;
cursor: pointer;
Expand Down

0 comments on commit e04a6c9

Please sign in to comment.