Compare commits

...

2 Commits

Author SHA1 Message Date
Sven Balzer
d281756053 move actorsheet nav tabs to the right of the application 2025-05-24 07:50:53 +02:00
Sven Balzer
9a37858ea5 simplify nav tabs in actor sheet 2025-05-23 12:47:09 +02:00
3 changed files with 596 additions and 545 deletions

File diff suppressed because it is too large Load Diff

View File

@ -8,9 +8,15 @@ html {
pointer-events: auto; pointer-events: auto;
} }
/* Allow application content to be scrolled */ /* allow tabs to be visible on the right side of the application */
&.application.ActorSheet {
overflow: visible;
}
& .window-content { & .window-content {
overflow-y: scroll; padding: 0;
overflow: visible;
height: calc(100% - var(--header-height));
} }
& [data-action] { & [data-action] {
@ -429,6 +435,10 @@ html {
} }
} }
& [data-application-part]:not([data-application-part="ActorSheet"]) {
padding: 1rem;
}
& [data-application-part="Bewaffnung"] { & [data-application-part="Bewaffnung"] {
& .tab { & .tab {
grid-template-columns: minmax(0, max-content) minmax(0, 1fr) minmax(0, max-content) minmax(0, 1fr); grid-template-columns: minmax(0, max-content) minmax(0, 1fr) minmax(0, max-content) minmax(0, 1fr);
@ -471,6 +481,53 @@ html {
} }
& [data-application-part="ActorSheet"] { & [data-application-part="ActorSheet"] {
height: 100%;
& .scroll-container {
height: 100%;
overflow-y: scroll;
}
& .ActorSheet {
padding: 1rem;
}
& .tabs {
display: flex;
flex-direction: column;
align-items: start;
position: absolute;
z-index: -1;
left: 100%;
border: none;
padding: 0;
gap: 2em;
& > * {
transform: none !important;
&::before {
background: var(--background);
padding: .5em .5em .5em .75em;
border-width: 1px 1px 1px 0px;
border-radius: 0 5px 5px 0;
border-style: solid;
transition: all 250ms ease;
}
&.active, &:hover {
text-decoration: none;
&::before {
padding: .5em .5em .5em 1.25em;
}
}
}
}
& .tab { & .tab {
&[data-tab="tab1"] { &[data-tab="tab1"] {
& .Eigenschaften { & .Eigenschaften {

View File

@ -1222,6 +1222,7 @@ class DSA41_ActorSheet extends DSA41_ApplicationMixin(ActorSheetV2) {
}; };
static DEFAULT_OPTIONS = { static DEFAULT_OPTIONS = {
classes: [ "DSA41", "ActorSheet" ],
position: { width: "800", height: "650" }, position: { width: "800", height: "650" },
actions: { actions: {
"roll": async function(event, target) { "roll": async function(event, target) {