Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gold border if root ship in ysws base #1145

Merged
merged 1 commit into from
Jan 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading