chore(format): run prettier over src/ and scripts/
Formatting was configured but never enforced: `bun run format:check` reported 199 unformatted files and ran in no workflow and in no git hook, so .prettierrc (printWidth 100, trailing commas) described an intention rather than the tree. This is the one-time sweep that makes the check gateable. Whitespace and token-reflow only -- no behavioural change: `bun run check` reports 0 errors and all 1053 frontend tests pass before and after. Kept out of every other commit on purpose. A 199-file diff mixed with real changes is unreviewable, and the next commit turns format:check into a hard CI gate so this cannot silently accumulate again.
This commit is contained in:
@@ -21,8 +21,7 @@
|
||||
if (!scrollContainer) return;
|
||||
showLeftArrow = scrollContainer.scrollLeft > 0;
|
||||
showRightArrow =
|
||||
scrollContainer.scrollLeft <
|
||||
scrollContainer.scrollWidth - scrollContainer.clientWidth - 10;
|
||||
scrollContainer.scrollLeft < scrollContainer.scrollWidth - scrollContainer.clientWidth - 10;
|
||||
}
|
||||
|
||||
function scrollLeft() {
|
||||
@@ -39,10 +38,7 @@
|
||||
<div class="flex items-center justify-between px-4">
|
||||
<h2 class="text-2xl font-semibold text-white">{title}</h2>
|
||||
{#if showAll}
|
||||
<button
|
||||
onclick={showAll}
|
||||
class="text-sm text-gray-400 hover:text-white transition-colors"
|
||||
>
|
||||
<button onclick={showAll} class="text-sm text-gray-400 hover:text-white transition-colors">
|
||||
See all
|
||||
</button>
|
||||
{/if}
|
||||
@@ -74,7 +70,7 @@
|
||||
aria-label="Scroll left"
|
||||
>
|
||||
<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 24 24">
|
||||
<path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/>
|
||||
<path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z" />
|
||||
</svg>
|
||||
</button>
|
||||
{/if}
|
||||
@@ -86,7 +82,7 @@
|
||||
aria-label="Scroll right"
|
||||
>
|
||||
<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 24 24">
|
||||
<path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>
|
||||
<path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" />
|
||||
</svg>
|
||||
</button>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user