Fix CSS in header.

This commit is contained in:
Mike Cao 2022-03-05 09:42:32 -08:00
parent de50109b3e
commit 3e8dd815b7
3 changed files with 5 additions and 4 deletions

View File

@ -6,6 +6,7 @@
} }
.title { .title {
flex: 1;
font-size: var(--font-size-large); font-size: var(--font-size-large);
display: flex; display: flex;
align-items: center; align-items: center;
@ -17,7 +18,7 @@
} }
.links { .links {
flex: 1; flex: 2;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
@ -30,6 +31,7 @@
} }
.buttons { .buttons {
flex: 1;
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
align-items: center; align-items: center;

View File

@ -10,8 +10,7 @@ import useShareToken from 'hooks/useShareToken';
import { EVENT_COLORS, TOKEN_HEADER } from 'lib/constants'; import { EVENT_COLORS, TOKEN_HEADER } from 'lib/constants';
export default function EventsChart({ websiteId, className, token }) { export default function EventsChart({ websiteId, className, token }) {
const [dateRange] = useDateRange(websiteId); const [{ startDate, endDate, unit, modified }] = useDateRange(websiteId);
const { startDate, endDate, unit, modified } = dateRange;
const [timezone] = useTimezone(); const [timezone] = useTimezone();
const { query } = usePageQuery(); const { query } = usePageQuery();
const shareToken = useShareToken(); const shareToken = useShareToken();

View File

@ -68,7 +68,7 @@ export default function TestConsole() {
{show && ( {show && (
<div className={classNames(styles.test, 'row')}> <div className={classNames(styles.test, 'row')}>
<div className="col-4"> <div className="col-4">
<PageHeader>Page links</PageHeader>Nmo <PageHeader>Page links</PageHeader>
<div> <div>
<Link href={`?page=1`}> <Link href={`?page=1`}>
<a>page one</a> <a>page one</a>