Remove certain fieldsets and adjust scrollsbars

This commit is contained in:
Carlos Fernandez 2026-07-03 00:58:48 -04:00
parent 53ed9fc792
commit 7409a577f6
28 changed files with 283 additions and 285 deletions

View file

@ -7,7 +7,7 @@ export default class AdversarySheet extends DHBaseActorSheet {
/** @inheritDoc */ /** @inheritDoc */
static DEFAULT_OPTIONS = { static DEFAULT_OPTIONS = {
classes: ['adversary'], classes: ['adversary'],
position: { width: 645, height: 760 }, position: { width: 645, height: 750 },
window: { resizable: true }, window: { resizable: true },
actions: { actions: {
toggleHitPoints: AdversarySheet.#toggleHitPoints, toggleHitPoints: AdversarySheet.#toggleHitPoints,

View file

@ -261,7 +261,7 @@
fieldset { fieldset {
align-items: center; align-items: center;
margin-top: 5px; margin: 5px 0 0 0;
border-radius: 6px; border-radius: 6px;
border-color: @color-fieldset-border; border-color: @color-fieldset-border;
padding-inline: 0.625rem; padding-inline: 0.625rem;

View file

@ -54,7 +54,7 @@ body.game:is(.performance-low, .noblur) {
position: relative; position: relative;
min-height: -webkit-fill-available; min-height: -webkit-fill-available;
transition: opacity 0.3s ease; transition: opacity 0.3s ease;
padding-bottom: 20px; padding-bottom: 16px;
.tab { .tab {
padding: 0 10px; padding: 0 10px;

View file

@ -39,6 +39,20 @@
.window-header > .attribution-header-label { .window-header > .attribution-header-label {
margin-right: var(--spacer-4); margin-right: var(--spacer-4);
pointer-events: none;
}
.tab-navigation {
margin-bottom: 0;
}
.tab {
flex: 1;
padding: 0;
overflow: hidden;
.search-section {
padding: 12px 14px var(--spacer-8) 12px;
}
} }
.tab.inventory { .tab.inventory {
@ -46,7 +60,7 @@
display: grid; display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr 1fr;
gap: 10px; gap: 10px;
padding: 10px 10px 0; padding: var(--spacer-8) 16px var(--spacer-8) 16px;
.input { .input {
color: light-dark(@dark, @beige); color: light-dark(@dark, @beige);
@ -57,7 +71,6 @@
.tab.notes.active { .tab.notes.active {
padding: 0; padding: 0;
margin: 0; margin: 0;
margin-top: -10px; // will be removed once tab-navigation bottom margin is removed on all actor sheets
scrollbar-gutter: unset; scrollbar-gutter: unset;
// Add padding around top level level prosemirrors used for note tabs // Add padding around top level level prosemirrors used for note tabs

View file

@ -7,9 +7,8 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 10px; gap: 10px;
overflow-y: auto; padding: 7px calc(12px - var(--scrollbar-width)) 4px 12px;
padding-bottom: 20px; .stable-scroll-container();
.with-scroll-shadows();
} }
} }
} }

View file

@ -5,12 +5,8 @@
.application.sheet.daggerheart.actor.dh-style.adversary { .application.sheet.daggerheart.actor.dh-style.adversary {
.tab.features { .tab.features {
.feature-section { .feature-section {
display: flex; padding: 16px calc(16px - var(--scrollbar-width)) 4px 16px;
flex-direction: column; .stable-scroll-container();
gap: 10px;
overflow-y: auto;
padding-bottom: 20px;
.with-scroll-shadows();
} }
} }
} }

View file

@ -30,9 +30,9 @@
grid-row: 2; grid-row: 2;
grid-column: 2; grid-column: 2;
&.active { &.active {
overflow: hidden;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
margin: 0 0 10px 0;
} }
} }
} }

View file

@ -9,16 +9,13 @@
flex-direction: column; flex-direction: column;
gap: 10px; gap: 10px;
height: 100%; height: 100%;
overflow-y: auto; padding: 12px calc(12px - var(--scrollbar-width)) 4px 12px;
padding-top: 8px; .stable-scroll-container();
padding-bottom: 20px;
height: 100%;
.with-scroll-shadows();
} }
.characteristics-section { .characteristics-section {
gap: 20px; gap: 20px;
padding: 0 10px; padding: 0 4px;
} }
.biography-section { .biography-section {

View file

@ -8,9 +8,8 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 10px; gap: 10px;
overflow-y: auto; padding: 7px calc(12px - var(--scrollbar-width)) 4px 12px;
padding-bottom: 20px; .stable-scroll-container();
.with-scroll-shadows();
} }
} }
} }

View file

@ -8,9 +8,8 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 10px; gap: 10px;
overflow-y: auto; padding: 7px calc(12px - var(--scrollbar-width)) 4px 12px;
padding-bottom: 20px; .stable-scroll-container();
.with-scroll-shadows();
} }
} }
} }

View file

@ -19,16 +19,19 @@
.application.sheet.daggerheart.actor.dh-style.character { .application.sheet.daggerheart.actor.dh-style.character {
.character-header-sheet { .character-header-sheet {
padding: 0 15px;
padding-top: var(--header-height); padding-top: var(--header-height);
width: 100%; width: 100%;
> *:not(line-div, .tab-navigation) {
padding-left: 15px;
padding-right: 15px;
}
.name-row { .name-row {
display: flex; display: flex;
gap: 6px; gap: 6px;
align-items: start; align-items: start;
justify-content: space-between; justify-content: space-between;
padding: 0;
padding-top: 5px; padding-top: 5px;
flex: 1; flex: 1;
@ -100,8 +103,8 @@
.character-details { .character-details {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
padding: 5px 0; margin-top: 5px;
margin-bottom: 8px; margin-bottom: 10px;
font-size: var(--font-size-12); font-size: var(--font-size-12);
color: @color-text-emphatic; color: @color-text-emphatic;
@ -130,7 +133,6 @@
.character-row { .character-row {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 0;
margin-bottom: 12px; margin-bottom: 12px;
.resource-section { .resource-section {
@ -218,12 +220,11 @@
.character-traits { .character-traits {
display: flex; display: flex;
padding: 0;
margin-bottom: 15px; margin-bottom: 15px;
justify-content: space-between; justify-content: space-between;
max-width: 38.5rem; max-width: 38.5rem;
gap: 0.5rem; gap: 0.5rem;
padding-left: 0.5rem; margin-left: 0.5rem;
.trait { .trait {
cursor: pointer; cursor: pointer;
@ -325,5 +326,9 @@
} }
} }
} }
.tab-navigation button[data-action="openSettings"] {
margin-right: 12px;
}
} }
} }

View file

@ -1,8 +1,8 @@
@import './sheet.less';
@import './biography.less'; @import './biography.less';
@import './effects.less'; @import './effects.less';
@import './features.less'; @import './features.less';
@import './header.less'; @import './header.less';
@import './inventory.less'; @import './inventory.less';
@import './loadout.less'; @import './loadout.less';
@import './sheet.less';
@import './sidebar.less'; @import './sidebar.less';

View file

@ -8,10 +8,8 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 10px; gap: 10px;
overflow-y: auto; padding: 8px calc(12px - var(--scrollbar-width)) 4px 12px;
margin-top: 20px; .stable-scroll-container();
padding-bottom: 20px;
.with-scroll-shadows();
} }
} }
} }

View file

@ -50,11 +50,8 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 10px; gap: 10px;
height: 100%; padding: 8px calc(12px - var(--scrollbar-width)) 4px 12px;
overflow-y: auto; .stable-scroll-container();
margin-top: 20px;
padding-bottom: 20px;
.with-scroll-shadows();
} }
} }
} }

View file

@ -30,7 +30,7 @@
&.active { &.active {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: hidden; margin: 0 0 10px 0;
} }
} }
} }

View file

@ -1,7 +1,10 @@
@import '../../../utils/colors.less'; @import '../../../utils/colors.less';
@import '../../../utils/fonts.less'; @import '../../../utils/fonts.less';
.application.sheet.daggerheart.actor.dh-style.companion { .application.sheet.daggerheart.actor.dh-style.companion .tab.details.active {
padding: 12px calc(12px - var(--scrollbar-width)) 4px 12px;
.stable-scroll-container();
.partner-section, .partner-section,
.attack-section, .attack-section,
.experience-list { .experience-list {

View file

@ -6,9 +6,8 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 10px; gap: 10px;
overflow-y: auto; padding: 7px calc(12px - var(--scrollbar-width)) 4px 12px;
padding-bottom: 20px; .stable-scroll-container();
.with-scroll-shadows();
} }
} }
} }

View file

@ -5,12 +5,8 @@
.application.sheet.daggerheart.actor.dh-style.environment { .application.sheet.daggerheart.actor.dh-style.environment {
.tab.features { .tab.features {
.feature-section { .feature-section {
display: flex; padding: 16px calc(16px - var(--scrollbar-width)) 4px 16px;
flex-direction: column; .stable-scroll-container();
gap: 10px;
overflow-y: auto;
padding-bottom: 4px;
.with-scroll-shadows();
} }
} }
} }

View file

@ -1,4 +1,4 @@
@import './sheet.less';
@import './features.less'; @import './features.less';
@import './header.less'; @import './header.less';
@import './potentialAdversaries.less'; @import './potentialAdversaries.less';
@import './sheet.less';

View file

@ -6,9 +6,8 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 10px; gap: 10px;
overflow-y: auto; padding: 7px calc(12px - var(--scrollbar-width)) 4px 12px;
padding-bottom: 4px; .stable-scroll-container();
.with-scroll-shadows();
} }
} }
} }

View file

@ -14,9 +14,7 @@
.application.sheet.daggerheart.actor.dh-style.environment { .application.sheet.daggerheart.actor.dh-style.environment {
.tab { .tab {
flex: 1;
overflow-y: auto; overflow-y: auto;
&.active { &.active {
overflow: hidden; overflow: hidden;
display: flex; display: flex;

View file

@ -3,7 +3,8 @@
@import '../../../utils/mixin.less'; @import '../../../utils/mixin.less';
.application.sheet.daggerheart.actor.dh-style.party .tab.partyMembers { .application.sheet.daggerheart.actor.dh-style.party .tab.partyMembers {
overflow: auto; padding: 12px calc(12px - var(--scrollbar-width)) 4px 12px;
.stable-scroll-container();
.actions-section { .actions-section {
display: flex; display: flex;

View file

@ -17,15 +17,8 @@
}); });
.application.sheet.daggerheart.actor.dh-style.party { .application.sheet.daggerheart.actor.dh-style.party {
.tab { .tab.active {
flex: 1; display: flex;
overflow-y: auto; flex-direction: column;
scrollbar-gutter: stable;
&.active {
overflow: auto;
display: flex;
flex-direction: column;
}
} }
} }

View file

@ -174,10 +174,10 @@
--fade-start: 0; --fade-start: 0;
} }
10%, 100% { 10%, 100% {
--fade-start: 12px; --fade-start: 14px;
} }
0%, 90% { 0%, 90% {
--fade-end: 12px; --fade-end: 14px;
} }
100% { 100% {
--fade-end: 0; --fade-end: 0;
@ -198,3 +198,9 @@
transparent 100% transparent 100%
); );
} }
.stable-scroll-container() {
overflow-y: auto;
scrollbar-gutter: stable;
.with-scroll-shadows();
}

View file

@ -1,14 +1,15 @@
<section class='tab {{tabs.features.cssClass}} {{tabs.features.id}}' data-tab='{{tabs.features.id}}' <section class='tab {{tabs.features.cssClass}} {{tabs.features.id}}' data-tab='{{tabs.features.id}}'
data-group='{{tabs.features.group}}'> data-group='{{tabs.features.group}}'>
<div class="feature-section"> <div class="feature-section items-list">
{{> 'daggerheart.inventory-items' {{#each @root.features as |item|}}
title=tabs.features.label {{> "daggerheart.inventory-item"
type='feature' item=item
collection=@root.features type="feature"
hideContextMenu=true actorType=@root.document.type
hideModifyControls=true hideContextMenu=true
canCreate=@root.editable hideModifyControls=true
showActions=@root.editable showActions=@root.editable
}} }}
{{/each}}
</div> </div>
</section> </section>

View file

@ -79,8 +79,6 @@
{{/if}} {{/if}}
</div> </div>
{{/if}} {{/if}}
</div> </div>
<div class="character-row"> <div class="character-row">

View file

@ -3,15 +3,16 @@
data-tab='{{tabs.features.id}}' data-tab='{{tabs.features.id}}'
data-group='{{tabs.features.group}}' data-group='{{tabs.features.group}}'
> >
<div class="feature-section"> <div class="feature-section items-list">
{{> 'daggerheart.inventory-items' {{#each @root.features as |item|}}
title=tabs.features.label {{> "daggerheart.inventory-item"
type='feature' item=item
collection=@root.features type="feature"
hideContextMenu=true actorType=@root.document.type
hideModifyControls=true hideContextMenu=true
canCreate=@root.editable hideModifyControls=true
showActions=@root.editable showActions=@root.editable
}} }}
{{/each}}
</div> </div>
</section> </section>