Skip to content

Commit

Permalink
Corrected styles for NPC Categories
Browse files Browse the repository at this point in the history
  • Loading branch information
WBHarry committed Oct 31, 2024
1 parent 7ef6d10 commit ddb8a55
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 3 additions & 1 deletion styles/pf2e-bestiary-tracking.css
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,11 @@
.pf2e-bestiary-tracking.bestiary .bestiary-main-page .main-page-container .npc-category-handling .npc-category-handling-inner {
display: flex;
flex-direction: column;
text-align: center;
gap: 8px;
}
.pf2e-bestiary-tracking.bestiary .bestiary-main-page .main-page-container .npc-category-handling .npc-category-handling-inner .helper-text {
text-align: center;
}
.pf2e-bestiary-tracking.bestiary .bestiary-main-page .main-page-category-container {
display: flex;
align-items: center;
Expand Down
5 changes: 4 additions & 1 deletion styles/stylesheets/bestiary.less
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,11 @@
.npc-category-handling-inner {
display: flex;
flex-direction: column;
text-align: center;
gap: 8px;

.helper-text {
text-align: center;
}
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions templates/bestiary.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,22 @@
<legend>{{localize "PF2EBestiary.Bestiary.NPC.CategoryHandlingTitle"}}</legend>

<div class="npc-category-handling-inner">
<div>{{localize "PF2EBestiary.Bestiary.NPC.NPCCategoryDescription"}}</div>
<div class="helper-text">{{localize "PF2EBestiary.Bestiary.NPC.NPCCategoryDescription"}}</div>
<div class="category-container">
<div class="category-section flexrow">
<div class="category-label flex0">{{localize "PF2EBestiary.Bestiary.NPC.NewCategory"}}</div>
</div>
<div class="category-body flexrow">
<input class="data-container primary-container" type="text" name="npcData.newCategory.text" value="{{this.npcState.newCategory.text}}" />
<button data-action="addNpcCategory" {{#if (not this.npcState.newCategory.text)}}disabled{{else}}class="primary-container"{{/if}}><i class="fa-solid fa-plus"></i>{{localize "PF2EBestiary.Miscellaneous.Add"}}</button>
<button class="secondary-container" data-action="addNpcCategory" {{#if (not this.npcState.newCategory.text)}}disabled{{else}}class="primary-container"{{/if}}><i class="fa-solid fa-plus"></i>{{localize "PF2EBestiary.Miscellaneous.Add"}}</button>
</div>
</div>
<div class="category-container">
<div class="category-section flexrow">
<div class="category-label flex0">{{localize "PF2EBestiary.Bestiary.NPC.CategorySorting"}}</div>
</div>
<div class="category-body flexrow">
<select class="npcCategorySortSelect" data-dtype="Number">
<select class="npcCategorySortSelect primary-container" data-dtype="Number">
{{selectOptions this.npcCategorySortOptions selected=this.settings.npc.categorySort valueAttr="value" labelAttr="name" localize=true}}
</select>
</div>
Expand Down

0 comments on commit ddb8a55

Please sign in to comment.