Replace svg-pan-zoom by react-svg-pan-zoom
This commit is contained in:
parent
d4a89f7f9d
commit
6db63d5a47
8 changed files with 95 additions and 41 deletions
|
@ -9,7 +9,7 @@ export class SVGSidebar extends React.Component<ISVGSidebarProps> {
|
|||
public render() {
|
||||
const isOpenClasses = this.props.isOpen ? 'right-0' : '-right-64';
|
||||
return (
|
||||
<div className={`fixed bg-slate-400 text-white transition-all h-screen w-64 overflow-y-auto z-10 ${isOpenClasses}`}>
|
||||
<div className={`fixed bg-slate-400 text-white transition-all h-screen w-64 overflow-y-auto z-20 ${isOpenClasses}`}>
|
||||
<div className='w-full h-auto p-4 flex justify-start' onClick={this.props.onClick}>
|
||||
<button className='text-lg'>×</button>
|
||||
</div>
|
||||
|
|
|
@ -17,7 +17,7 @@ export default class Sidebar extends React.Component<ISidebarProps> {
|
|||
|
||||
const isOpenClasses = this.props.isOpen ? 'left-0' : '-left-64';
|
||||
return (
|
||||
<div className={`fixed bg-blue-500 dark:bg-blue-500 text-white transition-all h-screen w-64 overflow-y-auto z-10 ${isOpenClasses}`}>
|
||||
<div className={`fixed bg-blue-500 dark:bg-blue-500 text-white transition-all h-screen w-64 overflow-y-auto z-20 ${isOpenClasses}`}>
|
||||
<div className='w-full h-auto p-4 flex justify-end' onClick={this.props.onClick}>
|
||||
<button className='text-lg'>×</button>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue