mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-22 03:05:19 -04:00
Don't show "create table" overlay if modal is showing (#942)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
ec41448867
commit
cb5283b1bf
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ export const TablePicker: React.FC<TablePickerProps> = ({ show, onDismiss, onTab
|
||||||
}, [onTablePicked, tableSize])
|
}, [onTablePicked, tableSize])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={`position-absolute table-picker-container p-2 ${!show ? 'd-none' : ''} bg-light`} ref={containerRef} role="grid">
|
<div className={`position-absolute table-picker-container p-2 ${!show || showDialog ? 'd-none' : ''} bg-light`} ref={containerRef} role="grid">
|
||||||
<p className={'lead'}>
|
<p className={'lead'}>
|
||||||
{ tableSize
|
{ tableSize
|
||||||
? t('editor.editorToolbar.table.size', { cols: tableSize?.columns, rows: tableSize.rows })
|
? t('editor.editorToolbar.table.size', { cols: tableSize?.columns, rows: tableSize.rows })
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue