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

Fix for long circumstance descriptions in mission board #24

Merged
merged 2 commits into from
Oct 11, 2023
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
32 changes: 16 additions & 16 deletions app/components/Mission.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ export function Mission({

<div className="absolute left-9 top-32 text-xs">
{circumstance != null ? (
<div className="align-text-middle relative pt-[0.375rem] text-sm text-yellow-400">
<div className="flex flex-col justify-center relative h-10 text-sm text-yellow-400">
{circumstance.name}
<div className="absolute -left-12 -top-1 h-10 w-10 border border-yellow-400 bg-gray-900 ">
<div className="absolute -left-12 h-10 w-10 border border-yellow-400 bg-gray-900 ">
<div
className="absolute left-0 top-0 h-[124px] w-[124px] bg-yellow-400"
style={{
Expand All @@ -147,9 +147,9 @@ export function Mission({
<div className="relative h-[1.6rem]"></div>
)}

<div className="relative mt-5 text-sm">
<div className="relative mt-2 text-sm">
<ul
className="mt-1 flex flex-row gap-6"
className="flex flex-row gap-6"
style={{
textShadow: "black 0 0 3px",
}}
Expand Down Expand Up @@ -212,18 +212,18 @@ export function Mission({
</li>
</ul>
{sideMission ? (
<div className="absolute -left-12 -top-1 h-10 w-10 bg-gray-900 p-[2px]">
<Img
src={`content/ui/textures/icons/pocketables/hud/small/party_${sideObjectiveToType(
sideMission,
)}.png`}
width={128}
// TODO: scripts\settings\mission_objective\templates\side_mission_objective_template.lua
alt={""}
className="border border-solid border-gray-300 p-1"
/>
</div>
) : null}
<Img
src={`content/ui/textures/icons/pocketables/hud/small/party_${sideObjectiveToType(
sideMission,
)}.png`}
width={128}
// TODO: scripts\settings\mission_objective\templates\side_mission_objective_template.lua
alt={""}
className="absolute -left-12 -top-[5px] h-10 w-10 bg-gray-900 border border-solid border-gray-300 p-[5px]"
/>
) : (
<div className="absolute -left-12 -top-[5px] h-10 w-10"></div>
)}
</div>
</div>
<MissionTimer start={start} end={end} />
Expand Down
Loading