Skip to content

Commit 0823d56

Browse files
Sprites tab: add drag-onto-scene helper text at the top
The arrow points at the viewport to the left of the sidebar. New .drag-hint class since .hint uses margin-top:auto and would sink to the bottom of the tab.
1 parent 56959f4 commit 0823d56

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/App.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,13 @@
557557
margin: 0;
558558
}
559559

560+
/* sprites tab: the arrow points at the viewport left of the sidebar */
561+
.drag-hint {
562+
margin: 0;
563+
font-size: 12px;
564+
color: #8b93a5;
565+
}
566+
560567
.hint {
561568
margin-top: auto;
562569
font-size: 11px;

src/ui/SpritesTab.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export function SpritesTab({ onChanged }: SpritesTabProps) {
5757

5858
return (
5959
<div className="asset-tab">
60+
<p className="drag-hint">← Drag onto scene</p>
6061
<div className="layer-panel-head">
6162
<h2>Your sprites</h2>
6263
<span className="add-buttons">

0 commit comments

Comments
 (0)