Skip to content

Commit

Permalink
Merge pull request #18 from kcoderhtml/fix-table-formating
Browse files Browse the repository at this point in the history
feat: add analytics and fix table formating
  • Loading branch information
kcoderhtml authored Apr 22, 2024
2 parents c002fe0 + e973bd0 commit a7e0da2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/Layouts/Base.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ const { title } = Astro.props;
<meta name="generator" content={Astro.generator} />
<meta name="slack-app-id" content="A06RK17HUUV" />
<title>{title}</title>
<script
defer
data-domain="magicsnap.org"
src="https://nexus.kieranklukas.com/js/script.js"></script>
</head>
<body>
<main>
Expand Down
5 changes: 3 additions & 2 deletions src/pages/dashboard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -315,12 +315,13 @@ const users = await db.select().from(User).where(like(User.team, session.team));
.events {
text-align: center;
max-width: 76rem;
justify-content: center;
}

table {
border: 0.1rem solid #ddd;
table-layout: auto;
transform: translateX(calc((100% - 76rem) / -1.5));
transform: translateX(min(calc((100% - 76rem) / -1.5), 0px));
}

th,
Expand All @@ -331,7 +332,7 @@ const users = await db.select().from(User).where(like(User.team, session.team));
max-width: 20rem;
}

td:nth-of-type(7), th:nth-of-type(7) { max-width: fit-content; }
td:nth-of-type(7), th:nth-of-type(7) { max-width: fit-content; min-width: 7.5rem; }

.events table th {
text-align: left;
Expand Down

0 comments on commit a7e0da2

Please sign in to comment.