diff --git a/apps/web/app/widgets/data/item-detail/item-detail-perks.component.ts b/apps/web/app/widgets/data/item-detail/item-detail-perks.component.ts index 9d742428..f887482f 100644 --- a/apps/web/app/widgets/data/item-detail/item-detail-perks.component.ts +++ b/apps/web/app/widgets/data/item-detail/item-detail-perks.component.ts @@ -13,13 +13,12 @@ import { apiResource } from '~/utils' import { ItemDetailStore } from './item-detail.store' import { ItemEditorEventsService } from './item-editor-events.service' import { PerkSlotExplained } from './selectors' -import { PerkDetailDirective } from "../perk-detail/perk-detail.directive"; @Component({ selector: 'nwb-item-detail-perks', templateUrl: './item-detail-perks.component.html', changeDetection: ChangeDetectionStrategy.OnPush, - imports: [CommonModule, NwModule, ItemFrameModule, IconsModule, TooltipModule, PerkDetailDirective], + imports: [CommonModule, NwModule, ItemFrameModule, IconsModule, TooltipModule], host: { class: 'flex flex-col gap-1', 'animate.enter': 'fade-grow-y-in', diff --git a/apps/web/app/widgets/skill-tree/skill-tree-input.component.css b/apps/web/app/widgets/skill-tree/skill-tree-input.component.css index 198fac4a..81a35cc0 100644 --- a/apps/web/app/widgets/skill-tree/skill-tree-input.component.css +++ b/apps/web/app/widgets/skill-tree/skill-tree-input.component.css @@ -116,3 +116,50 @@ transform: scale(0.66); } } + +/* Readonly / disabled tree styling */ +.is-readonly { + .grid-cell { + cursor: default; + + picture { + /* Change cyan outline to dark grey */ + @apply outline-neutral; + } + + /* Mute the connecting lines in readonly mode */ + &::before, + &::after { + opacity: 0.2; + } + } + + /* Checked cells in readonly mode should have darker styling for better visibility */ + .is-checked { + picture { + /* Much darker outline for active skills */ + @apply outline-gray-600; + img { + /* Slightly reduce opacity to show it's not interactive */ + opacity: 0.8; + } + } + + /* Active cells should have darker lines (more visible than inactive but not bright) */ + &::before, + &::after { + opacity: 0.5; + } + } + + /* Unlocked cells shouldn't show pointer cursor */ + .is-unlocked { + cursor: default; + + /* Override the bright lines with muted version */ + &::before, + &::after { + opacity: 0.2; + } + } +} \ No newline at end of file diff --git a/apps/web/app/widgets/skill-tree/skill-tree-input.component.html b/apps/web/app/widgets/skill-tree/skill-tree-input.component.html index 241b56aa..46c5d9d4 100644 --- a/apps/web/app/widgets/skill-tree/skill-tree-input.component.html +++ b/apps/web/app/widgets/skill-tree/skill-tree-input.component.html @@ -1,7 +1,7 @@