Merge pull request #260 from acelaya-forks/feature/responsive-visits-table

Feature/responsive visits table
This commit is contained in:
Alejandro Celaya 2020-04-28 19:08:20 +02:00 committed by GitHub
commit 85dc1d0825
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 5 deletions

View file

@ -31,8 +31,12 @@ const MenuLayout = (TagsList, ShortUrls, AsideMenu, CreateShortUrl, ShortUrlVisi
const burgerClasses = classNames('menu-layout__burger-icon', {
'menu-layout__burger-icon--active': sidebarVisible,
});
const swipeMenuIfNoModalExists = (callback) => () => {
if (document.querySelector('.modal')) {
const swipeMenuIfNoModalExists = (callback) => (e) => {
const swippedOnVisitsTable = e.event.path.some(
({ classList }) => classList && classList.contains('visits-table')
);
if (swippedOnVisitsTable || document.querySelector('.modal')) {
return;
}

View file

@ -88,7 +88,7 @@ const VisitsTable = ({
}, [ searchTerm ]);
return (
<table className="table table-striped table-bordered table-hover table-sm visits-table">
<table className="table table-striped table-bordered table-hover table-sm table-responsive-sm visits-table">
<thead className="visits-table__header">
<tr>
<th

View file

@ -12,10 +12,12 @@
@include sticky-cell();
@media (min-width: $mdMin) {
&.visits-table__sticky {
top: $headerHeight - 2px;
}
}
}
.visits-table__header-icon {
float: right;