@empoweredvote/ev-ui 0.9.5 → 0.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +21 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1065,15 +1065,23 @@ function Header({
|
|
|
1065
1065
|
position: "relative"
|
|
1066
1066
|
},
|
|
1067
1067
|
mobileMenu: {
|
|
1068
|
+
// Compact dropdown panel anchored under the hamburger (right edge), rather
|
|
1069
|
+
// than a full-bleed left:0/right:0 bar across the whole viewport.
|
|
1068
1070
|
display: mobileMenuOpen ? "flex" : "none",
|
|
1069
1071
|
flexDirection: "column",
|
|
1070
1072
|
position: "absolute",
|
|
1071
1073
|
top: "100%",
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
+
right: spacing[3],
|
|
1075
|
+
left: "auto",
|
|
1076
|
+
width: "min(300px, calc(100vw - 24px))",
|
|
1077
|
+
maxWidth: "calc(100vw - 24px)",
|
|
1074
1078
|
backgroundColor: t.surface,
|
|
1075
|
-
padding: spacing[
|
|
1076
|
-
boxShadow: t.shadow
|
|
1079
|
+
padding: spacing[3],
|
|
1080
|
+
boxShadow: t.shadow,
|
|
1081
|
+
borderRadius: borderRadius.lg,
|
|
1082
|
+
border: `1px solid ${t.border}`,
|
|
1083
|
+
marginTop: spacing[2],
|
|
1084
|
+
zIndex: 100
|
|
1077
1085
|
},
|
|
1078
1086
|
mobileNavItem: {
|
|
1079
1087
|
fontFamily: fonts.primary,
|
|
@@ -1967,8 +1975,15 @@ function PoliticianCard({
|
|
|
1967
1975
|
overflow: "hidden",
|
|
1968
1976
|
textOverflow: "ellipsis",
|
|
1969
1977
|
display: "-webkit-box",
|
|
1970
|
-
|
|
1971
|
-
|
|
1978
|
+
// Wrap to 3 lines so a qualified title with a trailing parenthetical
|
|
1979
|
+
// (e.g. "Clark County Commissioner (District A)") drops the parenthetical
|
|
1980
|
+
// to its own line instead of truncating ("…(Distric…") — important when the
|
|
1981
|
+
// compass overlay narrows the content column. 3 short lines still fit within
|
|
1982
|
+
// the image-driven card height, so the tile does not grow.
|
|
1983
|
+
WebkitLineClamp: 3,
|
|
1984
|
+
WebkitBoxOrient: "vertical",
|
|
1985
|
+
// Let a long unbroken segment wrap rather than overflow under the compass.
|
|
1986
|
+
overflowWrap: "anywhere"
|
|
1972
1987
|
},
|
|
1973
1988
|
subtitle: {
|
|
1974
1989
|
fontFamily: fonts.primary,
|