fix: drop shadows and clipping
This commit is contained in:
parent
b66405ca73
commit
9fea625e7c
2 changed files with 21 additions and 11 deletions
|
|
@ -63,7 +63,10 @@
|
||||||
import DropdownItem from '$lib/components/ui/dropdown/DropdownItem.svelte'
|
import DropdownItem from '$lib/components/ui/dropdown/DropdownItem.svelte'
|
||||||
import JobSection from '$lib/components/job/JobSection.svelte'
|
import JobSection from '$lib/components/job/JobSection.svelte'
|
||||||
import { Gender } from '$lib/utils/jobUtils'
|
import { Gender } from '$lib/utils/jobUtils'
|
||||||
import { openJobSelectionSidebar, openJobSkillSelectionSidebar } from '$lib/features/job/openJobSidebar.svelte'
|
import {
|
||||||
|
openJobSelectionSidebar,
|
||||||
|
openJobSkillSelectionSidebar
|
||||||
|
} from '$lib/features/job/openJobSidebar.svelte'
|
||||||
import { partyAdapter, type UpdatePartyParams } from '$lib/api/adapters/party.adapter'
|
import { partyAdapter, type UpdatePartyParams } from '$lib/api/adapters/party.adapter'
|
||||||
import { extractErrorMessage } from '$lib/utils/errors'
|
import { extractErrorMessage } from '$lib/utils/errors'
|
||||||
import { transformSkillsToArray } from '$lib/utils/jobSkills'
|
import { transformSkillsToArray } from '$lib/utils/jobSkills'
|
||||||
|
|
@ -283,9 +286,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// Derived elements for character image logic
|
// Derived elements for character image logic
|
||||||
const mainWeapon = $derived(
|
const mainWeapon = $derived((party?.weapons ?? []).find((w) => w?.mainhand || w?.position === -1))
|
||||||
(party?.weapons ?? []).find((w) => w?.mainhand || w?.position === -1)
|
|
||||||
)
|
|
||||||
const mainWeaponElement = $derived(mainWeapon?.element ?? mainWeapon?.weapon?.element)
|
const mainWeaponElement = $derived(mainWeapon?.element ?? mainWeapon?.weapon?.element)
|
||||||
const partyElement = $derived((party as any)?.element)
|
const partyElement = $derived((party as any)?.element)
|
||||||
|
|
||||||
|
|
@ -335,7 +336,11 @@
|
||||||
try {
|
try {
|
||||||
// Use TanStack Query mutation to update party
|
// Use TanStack Query mutation to update party
|
||||||
// Note: API expects UUID (id), shortcode is for cache invalidation
|
// Note: API expects UUID (id), shortcode is for cache invalidation
|
||||||
await updatePartyMutation.mutateAsync({ id: party.id, shortcode: party.shortcode, ...updates })
|
await updatePartyMutation.mutateAsync({
|
||||||
|
id: party.id,
|
||||||
|
shortcode: party.shortcode,
|
||||||
|
...updates
|
||||||
|
})
|
||||||
// Party will be updated via cache invalidation
|
// Party will be updated via cache invalidation
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
error = err.message || 'Failed to update party'
|
error = err.message || 'Failed to update party'
|
||||||
|
|
@ -859,7 +864,9 @@
|
||||||
// For mainhand weapons (position -1), restrict to job's proficiencies
|
// For mainhand weapons (position -1), restrict to job's proficiencies
|
||||||
const requiredProficiencies =
|
const requiredProficiencies =
|
||||||
opts.type === 'weapon' && opts.position === -1 && party.job?.proficiency
|
opts.type === 'weapon' && opts.position === -1 && party.job?.proficiency
|
||||||
? party.job.proficiency.filter((p): p is number => p !== null && p !== undefined && p !== 0)
|
? party.job.proficiency.filter(
|
||||||
|
(p): p is number => p !== null && p !== undefined && p !== 0
|
||||||
|
)
|
||||||
: undefined
|
: undefined
|
||||||
|
|
||||||
// Open the search sidebar with the appropriate type
|
// Open the search sidebar with the appropriate type
|
||||||
|
|
@ -1056,7 +1063,8 @@
|
||||||
.page-wrap {
|
.page-wrap {
|
||||||
position: relative;
|
position: relative;
|
||||||
--panel-w: 380px;
|
--panel-w: 380px;
|
||||||
overflow-x: auto;
|
// overflow-x: auto; // Disabling thing for overflow
|
||||||
|
overflow: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
.track {
|
.track {
|
||||||
|
|
@ -1068,7 +1076,6 @@
|
||||||
.party-container {
|
.party-container {
|
||||||
width: 1200px;
|
width: 1200px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: $unit-half;
|
|
||||||
gap: $unit-2x;
|
gap: $unit-2x;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
@ -1188,7 +1195,9 @@
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
border: none;
|
border: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background-color 0.2s ease, color 0.2s ease;
|
transition:
|
||||||
|
background-color 0.2s ease,
|
||||||
|
color 0.2s ease;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|
@ -1271,5 +1280,4 @@
|
||||||
background: darken($error, 10%);
|
background: darken($error, 10%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,9 @@
|
||||||
@include smooth-transition($duration-quick, box-shadow, transform);
|
@include smooth-transition($duration-quick, box-shadow, transform);
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
box-shadow: $card-elevation-hover;
|
box-shadow:
|
||||||
|
0 0 0 1px rgba(0, 0, 0, 0.01),
|
||||||
|
$card-elevation-hover;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue