mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-07-20 10:41:52 +00:00
Updated tabs in visits section to be sticky
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
@import '../utils/base';
|
||||
|
||||
.visits-stats__nav {
|
||||
position: sticky !important;
|
||||
top: $headerHeight - 1px;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.visits-stats__nav-link {
|
||||
border-radius: 0 !important;
|
||||
padding-bottom: calc(.5rem - 3px) !important;
|
||||
|
||||
@@ -116,8 +116,8 @@ const VisitsStats: FC<VisitsStatsProps> = ({ children, visitsInfo, getVisits, ca
|
||||
|
||||
return (
|
||||
<>
|
||||
<Card className="p-0 mt-4 overflow-hidden" body>
|
||||
<Nav className="visits-stats__nav" pills justified>
|
||||
<Card className="visits-stats__nav p-0 mt-4 overflow-hidden" body>
|
||||
<Nav pills justified>
|
||||
{Object.entries(sections).map(
|
||||
([ section, { title, icon }]) => (
|
||||
<NavLink
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
@media (min-width: $mdMin) {
|
||||
&.visits-table__sticky {
|
||||
top: $headerHeight - 2px;
|
||||
top: $headerHeight + 40px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user