Fixed short urls dropdown menu not properly located

This commit is contained in:
Alejandro Celaya 2018-10-28 21:51:54 +01:00
parent 4ad8e909d4
commit 6634fc41c5
2 changed files with 4 additions and 4 deletions

View file

@ -15,9 +15,9 @@ import { serverType } from '../../servers/prop-types';
import { shortUrlType } from '../reducers/shortUrlsList'; import { shortUrlType } from '../reducers/shortUrlsList';
import PreviewModal from './PreviewModal'; import PreviewModal from './PreviewModal';
import QrCodeModal from './QrCodeModal'; import QrCodeModal from './QrCodeModal';
import './ShortUrlsRowMenu.scss';
import EditTagsModal from './EditTagsModal'; import EditTagsModal from './EditTagsModal';
import DeleteShortUrlModal from './DeleteShortUrlModal'; import DeleteShortUrlModal from './DeleteShortUrlModal';
import './ShortUrlsRowMenu.scss';
export class ShortUrlsRowMenu extends React.Component { export class ShortUrlsRowMenu extends React.Component {
static propTypes = { static propTypes = {
@ -46,11 +46,11 @@ export class ShortUrlsRowMenu extends React.Component {
const toggleDelete = toggleModal('isDeleteModalOpen'); const toggleDelete = toggleModal('isDeleteModalOpen');
return ( return (
<ButtonDropdown toggle={this.toggle} isOpen={this.state.isOpen} direction="left"> <ButtonDropdown toggle={this.toggle} isOpen={this.state.isOpen}>
<DropdownToggle size="sm" caret className="short-urls-row-menu__dropdown-toggle btn-outline-secondary"> <DropdownToggle size="sm" caret className="short-urls-row-menu__dropdown-toggle btn-outline-secondary">
&nbsp;<FontAwesomeIcon icon={menuIcon} />&nbsp; &nbsp;<FontAwesomeIcon icon={menuIcon} />&nbsp;
</DropdownToggle> </DropdownToggle>
<DropdownMenu> <DropdownMenu right>
<DropdownItem tag={Link} to={`/server/${serverId}/short-code/${shortUrl.shortCode}/visits`}> <DropdownItem tag={Link} to={`/server/${serverId}/short-code/${shortUrl.shortCode}/visits`}>
<FontAwesomeIcon icon={pieChartIcon} /> &nbsp;Visit stats <FontAwesomeIcon icon={pieChartIcon} /> &nbsp;Visit stats
</DropdownItem> </DropdownItem>

View file

@ -1,6 +1,6 @@
@import '../../utils/base'; @import '../../utils/base';
.short-urls-row-menu__dropdown-toggle:before { .short-urls-row-menu__dropdown-toggle:after {
display: none !important; display: none !important;
} }