Skip to content

Commit

Permalink
tweak: assorted changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tabarra committed Mar 16, 2024
1 parent 3fe32a1 commit c20da1f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion panel/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
rules: {
'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'no-unused-vars': ['warn', { args: 'none' }],
'@typescript-eslint/no-unused-vars': 'off',
'react-refresh/only-export-components': [
'warn',
Expand Down
4 changes: 3 additions & 1 deletion panel/src/layout/PlayerlistSidebar/PlayerlistSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ export function PlayerlistSidebar({ isSheet }: PlayerSidebarProps) {
: 'calc(100vh - 3.5rem - 1px - 2rem)',
}}
>
<div className="rounded-xl border border-border bg-card text-card-foreground shadow-sm shrink-0">
<div className="rounded-xl border border-border bg-card text-card-foreground shadow-sm shrink-0 p-4">
{/* <div className="rounded-xl border border-border bg-cardx text-card-foreground shadow-sm shrink-0 p-4"> */}
<PlayerlistSummary />
</div>
<div
className={cn(
'min-h-[480px]',
!isSheet && 'rounded-xl border border-border bg-card text-card-foreground shadow-sm',
// !isSheet && 'rounded-xl border border-border bg-cardx text-card-foreground shadow-sm',
'flex flex-col gap-2 flex-grow overflow-hidden',
)}
>
Expand Down
2 changes: 1 addition & 1 deletion panel/src/layout/PlayerlistSidebar/PlayerlistSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function PlayerlistSummary() {
const playerCountFormatted = playerCount.toLocaleString("en-US");

return (
<div className="w-full flex justify-between items-center p-4">
<div className="w-full flex justify-between items-center">
<div className="w-16 h-16 dark:bg-zinc-600/50 bg-zinc-300/75 rounded-full flex items-center justify-center">
<UsersIcon className="w-10 h-10 dark:text-zinc-400 text-zinc-500 text-opacity-80 stroke-1" />
</div>
Expand Down
5 changes: 5 additions & 0 deletions panel/src/layout/ServerSidebar/ServerSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,19 @@ export function ServerSidebar({ isSheet }: ServerSidebarProps) {
>
<div className={cn(
!isSheet && 'rounded-xl border border-border bg-card text-card-foreground shadow-sm p-4',
// !isSheet && 'rounded-xl borderx border-border bg-cardx text-card-foreground shadow-sm px-2',
)}>
<ServerMenu />
</div>
<hr className={isSheet ? 'block' : 'hidden'} />
<div className={cn(
!isSheet && 'rounded-xl border border-border bg-card text-card-foreground shadow-sm p-4',
// !isSheet && 'rounded-xl borderx border-border bg-cardx text-card-foreground shadow-sm px-2',
'flex flex-col gap-4'
)}>
{/* <h2 className="text-lg font-semibold tracking-tight overflow-hidden text-ellipsis">
Controls & Status
</h2> */}
<ServerControls />
<ServerStatus />
<ServerSchedule />
Expand Down
1 change: 1 addition & 0 deletions panel/src/lib/humanizeDuration.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable */
//@ts-nocheck
// HumanizeDuration.js - https://git.io/j0HgmQ
// NOTE: removed all locales except en, and added shortEn
Expand Down
1 change: 1 addition & 0 deletions web/main/dashboard.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
<!-- Title & outdated message: -->

<% if (discordEvent) { %>
<br>
<div class="row justify-content-md-center">
<div class="col-md-6 text-center">
<div class="alert <%= (discordEvent.isLive ? 'alert-success border-success' : 'alert-warning border-warning') %> event-live-glow" role="alert">
Expand Down

0 comments on commit c20da1f

Please sign in to comment.