Skip to content

Commit

Permalink
script page align line number center
Browse files Browse the repository at this point in the history
  • Loading branch information
squaresmile committed Jun 16, 2024
1 parent 6000e6a commit 82a8f3a
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions packages/db/src/Component/ScriptTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const DialogueRow = (props: {
/>
</td>
)}
{showScriptLine && <td>{props.lineNumber}</td>}
{showScriptLine && <td className="text-center">{props.lineNumber}</td>}
</tr>
);
};
Expand Down Expand Up @@ -230,7 +230,7 @@ const ChoiceRow = ({
);
})}
</td>
{showScriptLine && <td>{lineNumber}</td>}
{showScriptLine && <td className="text-center">{lineNumber}</td>}
</tr>
);
}
Expand Down Expand Up @@ -260,7 +260,7 @@ const ChoiceRow = ({
))}
</ul>
</td>
{showScriptLine && <td>{lineNumber}</td>}
{showScriptLine && <td className="text-center">{lineNumber}</td>}
</tr>
);
};
Expand Down Expand Up @@ -408,7 +408,7 @@ const SceneRow = (props: {
) : null}
</div>
</td>
{showScriptLine && <td>{props.lineNumber}</td>}
{showScriptLine && <td className="text-center">{props.lineNumber}</td>}
</tr>
);
}
Expand Down Expand Up @@ -471,7 +471,7 @@ const SceneRow = (props: {
) : null}
</div>
</td>
{showScriptLine && <td>{props.lineNumber}</td>}
{showScriptLine && <td className="text-center">{props.lineNumber}</td>}
</tr>
);
};
Expand Down Expand Up @@ -533,7 +533,7 @@ const ScriptBracketRow = (props: {
<td colSpan={colSpan}>
<BgmDescriptor region={region} bgm={component.bgm} />
</td>
{showScriptLine && <td>{lineNumber}</td>}
{showScriptLine && <td className="text-center">{lineNumber}</td>}
</tr>
);
case ScriptComponentType.CRI_MOVIE:
Expand All @@ -545,7 +545,7 @@ const ScriptBracketRow = (props: {
<source src={component.movieUrl} type="video/mp4" />
</video>
</td>
{showScriptLine && <td>{lineNumber}</td>}
{showScriptLine && <td className="text-center">{lineNumber}</td>}
</tr>
);
case ScriptComponentType.SOUND_EFFECT:
Expand All @@ -555,7 +555,7 @@ const ScriptBracketRow = (props: {
<td colSpan={colSpan}>
<BgmDescriptor region={region} bgm={component.soundEffect} />
</td>
{showScriptLine && <td>{lineNumber}</td>}
{showScriptLine && <td className="text-center">{lineNumber}</td>}
</tr>
);
case ScriptComponentType.CUE_SOUND_EFFECT:
Expand All @@ -565,7 +565,7 @@ const ScriptBracketRow = (props: {
<td colSpan={colSpan}>
<BgmDescriptor region={region} bgm={component.soundEffect} />
</td>
{showScriptLine && <td>{lineNumber}</td>}
{showScriptLine && <td className="text-center">{lineNumber}</td>}
</tr>
);
case ScriptComponentType.FLAG:
Expand All @@ -575,7 +575,7 @@ const ScriptBracketRow = (props: {
<td colSpan={colSpan}>
Set flag <code>{component.name}</code> to <code>{component.value}</code>
</td>
{showScriptLine && <td>{lineNumber}</td>}
{showScriptLine && <td className="text-center">{lineNumber}</td>}
</tr>
);
case ScriptComponentType.BRANCH:
Expand All @@ -593,7 +593,7 @@ const ScriptBracketRow = (props: {
Go to label <code>{component.labelName}</code>
{condition} {getGoToLabel(component.labelName)}
</td>
{showScriptLine && <td>{lineNumber}</td>}
{showScriptLine && <td className="text-center">{lineNumber}</td>}
</tr>
);
case ScriptComponentType.BRANCH_QUEST_NOT_CLEAR:
Expand All @@ -605,7 +605,7 @@ const ScriptBracketRow = (props: {
<QuestDescriptor region={region} questId={component.questId} /> hasn't been cleared{" "}
{getGoToLabel(component.labelName)}
</td>
{showScriptLine && <td>{lineNumber}</td>}
{showScriptLine && <td className="text-center">{lineNumber}</td>}
</tr>
);
case ScriptComponentType.BRANCH_MASTER_GENDER:
Expand All @@ -617,7 +617,7 @@ const ScriptBracketRow = (props: {
chosen gender is male or <code>{component.femaleLabelName}</code>{" "}
{getGoToLabel(component.femaleLabelName)} if female
</td>
{showScriptLine && <td>{lineNumber}</td>}
{showScriptLine && <td className="text-center">{lineNumber}</td>}
</tr>
);
case ScriptComponentType.LABEL:
Expand All @@ -627,7 +627,7 @@ const ScriptBracketRow = (props: {
<td colSpan={colSpan}>
<code>{component.name}</code>
</td>
{showScriptLine && <td>{lineNumber}</td>}
{showScriptLine && <td className="text-center">{lineNumber}</td>}
</tr>
);
default:
Expand Down

0 comments on commit 82a8f3a

Please sign in to comment.