Skip to content

Commit ade6b44

Browse files
project drop zone is now the whole page
1 parent 8e43e31 commit ade6b44

File tree

2 files changed

+20
-15
lines changed

2 files changed

+20
-15
lines changed

src/lib/components/CommentPanel.svelte

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -644,10 +644,7 @@
644644
645645
.markdown-preview {
646646
min-height: 60px;
647-
padding: var(--space-sm);
648-
border: 1px solid var(--color-border);
649-
border-radius: var(--border-radius);
650-
background-color: var(--color-bg-secondary);
647+
padding: 0;
651648
}
652649
653650
.markdown-content :global(h1),
@@ -752,11 +749,13 @@
752749
font-weight: 600;
753750
}
754751
755-
.markdown-preview :global(*:first-child) {
752+
.markdown-preview :global(*:first-child),
753+
.markdown-content :global(*:first-child) {
756754
margin-top: 0;
757755
}
758756
759-
.markdown-preview :global(*:last-child) {
757+
.markdown-preview :global(*:last-child),
758+
.markdown-content :global(*:last-child) {
760759
margin-bottom: 0;
761760
}
762761
</style>

src/routes/+page.svelte

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -332,15 +332,17 @@
332332

333333
<!-- Main Content -->
334334
{#if !projectName}
335-
<div class="welcome-screen">
335+
<div
336+
class="welcome-screen"
337+
class:dragging={isDragging}
338+
ondragover={handleDragOver}
339+
ondragleave={handleDragLeave}
340+
ondrop={handleDrop}
341+
>
336342
<div class="welcome-content">
337343
<h2>Select a project folder to get started.</h2>
338344
<div
339345
class="drop-zone"
340-
class:dragging={isDragging}
341-
ondragover={handleDragOver}
342-
ondragleave={handleDragLeave}
343-
ondrop={handleDrop}
344346
onclick={handleSelectFolder}
345347
onkeypress={(e) => {
346348
if (e.key === "Enter" || e.key === " ") {
@@ -365,7 +367,7 @@
365367
d="M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"
366368
/>
367369
</svg>
368-
<p class="drop-zone-text">Drag and drop a folder here</p>
370+
<p class="drop-zone-text">Drag and drop a folder anywhere</p>
369371
<p class="drop-zone-subtext">
370372
Or click to browse. Files added here will never leave your
371373
browser.
@@ -495,6 +497,11 @@
495497
justify-content: center;
496498
padding: var(--space-xl);
497499
background-color: var(--color-bg-secondary);
500+
transition: background-color 0.2s ease;
501+
}
502+
503+
.welcome-screen.dragging {
504+
background-color: var(--color-bg-primary);
498505
}
499506
500507
.welcome-content {
@@ -525,10 +532,9 @@
525532
background-color: var(--color-bg-secondary);
526533
}
527534
528-
.drop-zone.dragging {
535+
.welcome-screen.dragging .drop-zone {
529536
border-color: var(--color-primary);
530-
background-color: var(--color-bg-secondary);
531-
transform: scale(1.02);
537+
transform: scale(1.05);
532538
}
533539
534540
.drop-zone-content {

0 commit comments

Comments
 (0)