Skip to content

Commit

Permalink
Merge pull request #1145 from hackclub/malted/gold-border-fix
Browse files Browse the repository at this point in the history
Gold border if root ship in ysws base
  • Loading branch information
malted authored Jan 27, 2025
2 parents 19a90fe + 61af04a commit 7b2eceb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/harbor/shipyard/ships.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ export default function Ships({
id: string
setNewShipVisible: any
}) => {
const latestShip = getChainFromAnyId(s.id)?.at(-1) || s
const chain = getChainFromAnyId(s.id)
const rootShip = chain?.at(0)
const latestShip = chain?.at(-1) || s

return (
<div
Expand All @@ -184,7 +186,7 @@ export default function Ships({
<Card
className="flex flex-col sm:gap-2 sm:flex-row items-start sm:items-center p-4 hover:bg-gray-100 transition-colors duration-200"
style={
latestShip.isInYswsBase
latestShip.isInYswsBase || rootShip?.isInYswsBase
? { border: '1.5px solid gold', background: '#FFFCEB' }
: {}
}
Expand Down

0 comments on commit 7b2eceb

Please sign in to comment.