improved look on small devices
This commit is contained in:
+2
-2
@@ -347,10 +347,10 @@ const Unit = ({ unit, index, catalog, onePerPage, forceRules }) => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
// hide border left and right when width smaller than 600px
|
||||||
|
className="border-b-2 border-t-0 border-[var(--primary-color)] sm:border-l-2 sm:border-r-2"
|
||||||
style={{
|
style={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
border: "2px solid var(--primary-color)",
|
|
||||||
borderTop: "none",
|
|
||||||
backgroundColor: "#DFE0E2",
|
backgroundColor: "#DFE0E2",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ export const Weapons = ({ title, weapons, modelStats, forceRules }) => {
|
|||||||
color: "#fff",
|
color: "#fff",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<th className="w-[2.2em]">
|
<th className="w-[2em]">
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
@@ -119,6 +119,7 @@ const Weapon = ({ weapon, previousWeapon, nextWeapon, isMelee, className }) => {
|
|||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
flexWrap: "wrap",
|
flexWrap: "wrap",
|
||||||
gap: "0 4px",
|
gap: "0 4px",
|
||||||
|
lineHeight: 1.2,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{differentProfiles && selectionName + " - "}
|
{differentProfiles && selectionName + " - "}
|
||||||
|
|||||||
+9
-1
@@ -219,7 +219,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 600px) {
|
@media screen and (max-width: 640px) {
|
||||||
:root {
|
:root {
|
||||||
font-size: 9px;
|
font-size: 9px;
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
@@ -232,5 +232,13 @@
|
|||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.weapons-table th {
|
||||||
|
padding: 2px 0.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapons-table td {
|
||||||
|
padding: 1px 0.2rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user