Skip to content

Commit

Permalink
zIndex work
Browse files Browse the repository at this point in the history
  • Loading branch information
joonarafael committed Jan 27, 2024
1 parent bf4214e commit a7200e4
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 16 deletions.
5 changes: 3 additions & 2 deletions app/calc/connection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,9 @@ const Connection: React.FC<ConnectionProps> = ({
<div>
{value !== 0 ? (
<div className="relative">
<div>{arrowElement(status)}</div>
{zoom > 2 ? (
<div
className={`z-99 absolute bg-zinc-900 p-1 rounded-xl top-2/4 left-2/4 -translate-x-2/4 -translate-y-2/4`}
className={`z-1 absolute p-1 rounded-xl top-2/4 left-2/4 -translate-x-2/4 -translate-y-2/4 text-neutral-500 font-bold text-5xl`}
>
{value === 65535 ? "0" : `${value}`}
</div>
Expand All @@ -117,6 +116,8 @@ const Connection: React.FC<ConnectionProps> = ({
{value === 65535 ? "0" : `${value}`}
</span>
)}

<div className="z-2">{arrowElement(status)}</div>
</div>
) : (
<></>
Expand Down
9 changes: 4 additions & 5 deletions app/calc/latencychange.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const LatencyChange: React.FC<LatencyChangeProps> = ({

return (
<div className="w-full flex flex-col text-center max-w-[1080px]">
<div className="font-bold text-4xl mb-4">CONFIGURE LATENCY SELECTION</div>
<div className="font-bold text-4xl mb-4">CONFIGURE DELAY SELECTION</div>
<div className="grid grid-cols-2 md:grid-cols-2 lg:grid-cols-4 xl:grid-cols-4 2xl:grid-cols-4 gap-4 rounded-lg p-4">
<div className="flex flex-col gap-2 border rounded p-2 border-indigo-500">
<Button
Expand Down Expand Up @@ -146,10 +146,9 @@ const LatencyChange: React.FC<LatencyChangeProps> = ({
counts[item] > 1 ? "border-red-500" : "border-neutral-500"
}`}
>
<label
className="font-light"
htmlFor={`latencyTime${i}`}
>{`LATENCY ${i + 1}`}</label>
<label className="font-light" htmlFor={`latencyTime${i}`}>{`DELAY ${
i + 1
}`}</label>
<Input
value={item}
type="number"
Expand Down
2 changes: 1 addition & 1 deletion app/calc/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const Menu: React.FC<MenuProps> = ({
setLatencyChangeView(true);
}}
>
Configure Latency Selection
Configure Delay Selection
</MenubarItem>
<MenubarSeparator />
<MenubarItem disabled>Analyze</MenubarItem>
Expand Down
16 changes: 9 additions & 7 deletions app/calc/new/newplansettingsclient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ const NewPlanSettingsClient = () => {
<hr />
<div>Enter values between 1 and 32.</div>
<div className="flex flex-row gap-4 w-full">
<div className="flex flex-col gap-2 p-4 border w-1/2">
<label htmlFor="fieldWidth">FIELD WIDTH</label>
<div className="flex flex-col gap-2 p-4 border rounded-lg w-1/2">
<label htmlFor="fieldWidth">FIELD COLUMN COUNT</label>
<Input
value={fieldWidth}
type="number"
Expand All @@ -84,8 +84,8 @@ const NewPlanSettingsClient = () => {
onChange={(e) => handleFieldWidthChange(e.target.value)}
/>
</div>
<div className="flex flex-col gap-2 p-4 border w-1/2">
<label htmlFor="fieldHeight">FIELD HEIGHT</label>
<div className="flex flex-col gap-2 p-4 rounded-lg border w-1/2">
<label htmlFor="fieldHeight">FIELD ROW COUNT</label>
<Input
value={fieldHeight}
type="number"
Expand All @@ -95,10 +95,12 @@ const NewPlanSettingsClient = () => {
/>
</div>
</div>
<div className="text-yellow-500">
THE FIELD WIDTH & HEIGHT CANNOT BE ALTERED AFTERWARDS.
<div className="text-neutral-500 font-light text-sm">
(COLUMNS = X-AXIS AND ROWS = Y-AXIS)
</div>
<div className="text-yellow-500 border rounded-lg p-2 border-red-500">
THE ROW & COLUMN COUNT CANNOT BE ALTERED AFTERWARDS.
</div>
<hr />
<Button variant={"secondary"} onClick={handleNewPlan}>
CREATE
</Button>
Expand Down
2 changes: 1 addition & 1 deletion app/calc/toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const ToolBar: React.FC<ToolBarProps> = ({
<p className="font-bold">
CONFIGURE
<br />
LATENCY
DELAY
<br />
SELECTION
</p>
Expand Down

0 comments on commit a7200e4

Please sign in to comment.