|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
|
|
|
import path from 'path';
|
|
|
|
|
|
+
|
|
|
import { useTranslation } from 'next-i18next';
|
|
|
import PropTypes from 'prop-types';
|
|
|
import {
|
|
|
@@ -24,6 +25,8 @@ import SearchTypeahead from '../SearchTypeahead';
|
|
|
|
|
|
import Preview from './Preview';
|
|
|
|
|
|
+import styles from './LinkEditPreview.module.scss';
|
|
|
+
|
|
|
|
|
|
class LinkEditModal extends React.PureComponent {
|
|
|
|
|
|
@@ -302,13 +305,13 @@ class LinkEditModal extends React.PureComponent {
|
|
|
autoFocus
|
|
|
/>
|
|
|
<div className="d-none d-sm-block input-group-append">
|
|
|
- <button type="button" id="preview-btn" className="btn btn-info btn-page-preview">
|
|
|
+ <button type="button" id="preview-btn" className={`btn btn-info btn-page-preview ${styles['btn-page-preview']}`}>
|
|
|
<PagePreviewIcon />
|
|
|
</button>
|
|
|
<Popover trigger="focus" placement="right" isOpen={this.state.isPreviewOpen} target="preview-btn" toggle={this.toggleIsPreviewOpen}>
|
|
|
<PopoverBody>
|
|
|
{this.state.markdown != null && pagePath != null
|
|
|
- && <div className="linkedit-preview">
|
|
|
+ && <div className={`linkedit-preview ${styles['linkedit-preview']}`}>
|
|
|
<Preview markdown={this.state.markdown} pagePath={pagePath} />
|
|
|
</div>
|
|
|
}
|