Move SpellList above CharacterSheet so it's visible without scrolling
Also delete stale compiled .js files that were shadowing the .tsx source and causing Vite to serve the old pre-spells versions of all components. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
7cde985a21
commit
80eb50d359
3 changed files with 20 additions and 19 deletions
|
|
@ -97,7 +97,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.restRow {
|
.restRow {
|
||||||
margin-top: 1rem;
|
margin-top: 0.5rem;
|
||||||
|
margin-bottom: 1.25rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -80,21 +80,6 @@ export default function CharacterDetail({
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<CharacterSheet
|
|
||||||
character={character}
|
|
||||||
mode={mode}
|
|
||||||
campaignId={campaignId}
|
|
||||||
critKeys={critKeys}
|
|
||||||
onUpdate={onUpdate}
|
|
||||||
onStatChange={onStatChange}
|
|
||||||
onAddGearFromItem={onAddGearFromItem}
|
|
||||||
onAddGearCustom={onAddGearCustom}
|
|
||||||
onRemoveGear={onRemoveGear}
|
|
||||||
onAddTalent={onAddTalent}
|
|
||||||
onRemoveTalent={onRemoveTalent}
|
|
||||||
onDelete={onDelete}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<SpellList
|
<SpellList
|
||||||
characterId={character.id}
|
characterId={character.id}
|
||||||
characterClass={character.class}
|
characterClass={character.class}
|
||||||
|
|
@ -116,6 +101,21 @@ export default function CharacterDetail({
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
<CharacterSheet
|
||||||
|
character={character}
|
||||||
|
mode={mode}
|
||||||
|
campaignId={campaignId}
|
||||||
|
critKeys={critKeys}
|
||||||
|
onUpdate={onUpdate}
|
||||||
|
onStatChange={onStatChange}
|
||||||
|
onAddGearFromItem={onAddGearFromItem}
|
||||||
|
onAddGearCustom={onAddGearCustom}
|
||||||
|
onRemoveGear={onRemoveGear}
|
||||||
|
onAddTalent={onAddTalent}
|
||||||
|
onRemoveTalent={onRemoveTalent}
|
||||||
|
onDelete={onDelete}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{castResult && (
|
{castResult && (
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
.container {
|
.container {
|
||||||
margin-top: 1.5rem;
|
margin-bottom: 1.25rem;
|
||||||
padding-top: 1rem;
|
padding-bottom: 0.5rem;
|
||||||
border-top: 1px solid rgba(var(--gold-rgb), 0.15);
|
border-bottom: 1px solid rgba(var(--gold-rgb), 0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue