|
@@ -8,9 +8,9 @@ import NavigationContainer from '../services/NavigationContainer';
|
|
|
import { withUnstatedContainers } from './UnstatedUtils';
|
|
import { withUnstatedContainers } from './UnstatedUtils';
|
|
|
|
|
|
|
|
|
|
|
|
|
-const logger = loggerFactory('growi:cli:FixedControls');
|
|
|
|
|
|
|
+const logger = loggerFactory('growi:cli:Fab');
|
|
|
|
|
|
|
|
-const FixedControls = (props) => {
|
|
|
|
|
|
|
+const Fab = (props) => {
|
|
|
const { navigationContainer } = props;
|
|
const { navigationContainer } = props;
|
|
|
|
|
|
|
|
const [animateClasses, setAnimateClasses] = useState('invisible');
|
|
const [animateClasses, setAnimateClasses] = useState('invisible');
|
|
@@ -40,18 +40,18 @@ const FixedControls = (props) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
- <div className="grw-fixed-controls d-none d-md-block">
|
|
|
|
|
- <div className={`rounded-circle position-absolute ${animateClasses}`} style={{ bottom: '2.3rem', right: '3rem' }}>
|
|
|
|
|
|
|
+ <div className="grw-fab d-none d-md-block">
|
|
|
|
|
+ <div className={`rounded-circle position-absolute ${animateClasses}`} style={{ bottom: '2.3rem', right: '4rem' }}>
|
|
|
<button
|
|
<button
|
|
|
type="button"
|
|
type="button"
|
|
|
- className="btn btn-lg btn-create-page btn-primary rounded-circle waves-effect waves-light"
|
|
|
|
|
|
|
+ className="btn btn-lg btn-create-page btn-primary rounded-circle p-0 waves-effect waves-light"
|
|
|
onClick={navigationContainer.openPageCreateModal}
|
|
onClick={navigationContainer.openPageCreateModal}
|
|
|
>
|
|
>
|
|
|
<i className="icon-pencil"></i>
|
|
<i className="icon-pencil"></i>
|
|
|
</button>
|
|
</button>
|
|
|
</div>
|
|
</div>
|
|
|
<div className={`rounded-circle position-absolute ${animateClasses}`} style={{ bottom: 0, right: 0 }}>
|
|
<div className={`rounded-circle position-absolute ${animateClasses}`} style={{ bottom: 0, right: 0 }}>
|
|
|
- <button type="button" className="btn btn-light btn-scroll-to-top rounded-circle" onClick={() => navigationContainer.smoothScrollIntoView()}>
|
|
|
|
|
|
|
+ <button type="button" className="btn btn-light btn-scroll-to-top rounded-circle p-0" onClick={() => navigationContainer.smoothScrollIntoView()}>
|
|
|
<i className="icon-control-start"></i>
|
|
<i className="icon-control-start"></i>
|
|
|
</button>
|
|
</button>
|
|
|
</div>
|
|
</div>
|
|
@@ -60,8 +60,8 @@ const FixedControls = (props) => {
|
|
|
|
|
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-FixedControls.propTypes = {
|
|
|
|
|
|
|
+Fab.propTypes = {
|
|
|
navigationContainer: PropTypes.instanceOf(NavigationContainer).isRequired,
|
|
navigationContainer: PropTypes.instanceOf(NavigationContainer).isRequired,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-export default withUnstatedContainers(FixedControls, [NavigationContainer]);
|
|
|
|
|
|
|
+export default withUnstatedContainers(Fab, [NavigationContainer]);
|