fix(Map): Refactor Local - show ship name, change placement of ship name. Refactor On the Map - show corp and ally logo. Fixed problem with ellipsis at long character and ship names.

This commit is contained in:
achichenkov
2025-04-26 16:22:24 +03:00
parent 99d68dfc0e
commit fac60f7ddd
15 changed files with 307 additions and 95 deletions

View File

@@ -44,7 +44,7 @@ export const TrackingCharactersList = () => {
bodyClassName="text-ellipsis overflow-hidden whitespace-nowrap"
headerClassName="[&_div]:ml-2"
body={row => {
return <CharacterCard showShipName={false} showSystem={false} isOwn {...row.character} />;
return <CharacterCard showCorporationLogo showTicker isOwn {...row.character} />;
}}
/>
</DataTable>

View File

@@ -10,8 +10,8 @@ const renderValCharacterTemplate = (row: TrackingCharacter | undefined) => {
}
return (
<div className="py-1">
<CharacterCard compact showShipName={false} showSystem={false} isOwn {...row.character} />
<div className="py-1 w-full">
<CharacterCard compact isOwn {...row.character} />
</div>
);
};
@@ -21,7 +21,11 @@ const renderCharacterTemplate = (row: TrackingCharacter | undefined) => {
return <div className="h-[33px] flex items-center">Character is not selected</div>;
}
return <CharacterCard showShipName={false} showSystem={false} isOwn {...row.character} />;
return (
<div className="w-full">
<CharacterCard isOwn {...row.character} />
</div>
);
};
export const TrackingSettings = () => {