style improvements

This commit is contained in:
NilsUeter
2023-10-22 17:33:43 +02:00
parent 17dbc09669
commit a5590dee23
4 changed files with 20 additions and 7 deletions
+12 -2
View File
@@ -185,6 +185,7 @@ const Unit = ({ unit, index, catalog, onePerPage, forceRules }) => {
padding: "4px 16px", padding: "4px 16px",
color: "#fff", color: "#fff",
position: "relative", position: "relative",
marginLeft: "1.3rem",
}} }}
> >
<div <div
@@ -347,6 +348,7 @@ const Unit = ({ unit, index, catalog, onePerPage, forceRules }) => {
}} }}
> >
<div <div
className="pt-5"
style={{ style={{
flex: "1", flex: "1",
borderRight: "2px solid var(--primary-color)", borderRight: "2px solid var(--primary-color)",
@@ -412,11 +414,11 @@ const Unit = ({ unit, index, catalog, onePerPage, forceRules }) => {
<Keywords keywords={keywords} /> <Keywords keywords={keywords} />
</div> </div>
<div className=" relative max-w-[400px] flex-1 p-1 pb-[50px] print:p-[20px] sm:p-2 sm:pb-[50px] sm:print:p-[20px] sm:print:pb-[50px] md:p-[20px] md:pb-[50px] md:print:p-[20px] md:print:pb-[50px]"> <div className=" relative max-w-[400px] flex-1 p-1 pb-[50px] pt-5 print:p-[20px] sm:p-2 sm:pb-[50px] sm:print:p-[20px] sm:print:pb-[50px] md:p-[20px] md:pb-[50px] md:print:p-[20px] md:print:pb-[50px]">
<div <div
style={{ style={{
fontSize: "1.1em", fontSize: "1.1em",
padding: "1px 8px", padding: "1px 6px",
backgroundColor: "var(--primary-color)", backgroundColor: "var(--primary-color)",
color: "#fff", color: "#fff",
fontWeight: 600, fontWeight: 600,
@@ -445,6 +447,13 @@ const ModelStats = ({ modelStat, index, showName, modelList }) => {
wounds = "/"; wounds = "/";
} }
if (modelList.length === 1) {
modelList[0] = modelList[0]
.replace(name, "")
.replace("(", "")
.replace(")", "");
}
const showWeapons = index === 0; const showWeapons = index === 0;
return ( return (
<div style={{ display: "flex", gap: "1.2rem", flexWrap: "wrap" }}> <div style={{ display: "flex", gap: "1.2rem", flexWrap: "wrap" }}>
@@ -471,6 +480,7 @@ const ModelStats = ({ modelStat, index, showName, modelList }) => {
marginTop: 16, marginTop: 16,
fontSize: "0.7em", fontSize: "0.7em",
paddingLeft: showName ? 8 : 0, paddingLeft: showName ? 8 : 0,
backgroundColor: "var(--primary-color-transparent)",
}} }}
> >
{modelList.map((model, index) => ( {modelList.map((model, index) => (
+1
View File
@@ -114,6 +114,7 @@ const Weapon = ({ weapon, previousWeapon, nextWeapon, isMelee, className }) => {
</td> </td>
<td style={{ textAlign: "left" }}> <td style={{ textAlign: "left" }}>
<div <div
className="min-w-[24vw]"
style={{ style={{
display: "flex", display: "flex",
alignItems: "center", alignItems: "center",
+6 -4
View File
@@ -205,7 +205,7 @@ function App() {
<div className="body"> <div className="body">
<div <div
className="print-display-none" className="print-display-none max-w-[95vw]"
style={{ style={{
display: "flex", display: "flex",
flexDirection: roster ? "row" : "column", flexDirection: roster ? "row" : "column",
@@ -260,7 +260,7 @@ function App() {
</div> </div>
<div className="print-display-none"></div> <div className="print-display-none"></div>
<div <div
className="print-display-none" className="print-display-none max-w-[95vw]"
style={{ display: "flex", width: "100%", gap: 8 }} style={{ display: "flex", width: "100%", gap: 8 }}
> >
<input <input
@@ -308,7 +308,7 @@ function App() {
</div> </div>
<div <div
className="print-display-none" className="print-display-none max-w-[95vw]"
style={{ display: roster ? "flex" : "none", width: "100%", gap: 16 }} style={{ display: roster ? "flex" : "none", width: "100%", gap: 16 }}
> >
<label style={{ display: "flex", alignItems: "center", gap: 4 }}> <label style={{ display: "flex", alignItems: "center", gap: 4 }}>
@@ -358,6 +358,7 @@ function App() {
)} )}
<div <div
className="max-w-[95vw]"
style={{ style={{
paddingTop: 8, paddingTop: 8,
fontSize: "1.7rem", fontSize: "1.7rem",
@@ -367,6 +368,7 @@ function App() {
Examples Examples
</div> </div>
<div <div
className="max-w-[95vw]"
style={{ style={{
gap: 8, gap: 8,
flexWrap: "wrap", flexWrap: "wrap",
@@ -404,7 +406,7 @@ function App() {
</button> </button>
</div> </div>
<div <div
className="print-display-none" className="print-display-none max-w-[95vw]"
style={{ display: roster ? "none" : "" }} style={{ display: roster ? "none" : "" }}
> >
<div style={{ padding: "8px 0", fontSize: "1.7rem" }}>About</div> <div style={{ padding: "8px 0", fontSize: "1.7rem" }}>About</div>
+1 -1
View File
@@ -8,7 +8,7 @@
Arial, sans-serif; Arial, sans-serif;
line-height: 1.5; line-height: 1.5;
font-weight: 400; font-weight: 400;
font-size: 14px; font-size: 13px;
color-scheme: light dark; color-scheme: light dark;
color: #111113; color: #111113;