Skip to content

Commit 4274148

Browse files
authored
Fix UI: Center welcome modal on mobile and adjust arrow spacing (#4879)
1 parent ed45dc2 commit 4274148

File tree

1 file changed

+61
-1
lines changed

1 file changed

+61
-1
lines changed

css/activities.css

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2083,4 +2083,64 @@ table {
20832083

20842084
.lego-size-1 { width: 20px; height: 10px; }
20852085
.lego-size-2 { width: 40px; height: 10px; }
2086-
/* ... more sizes ... */
2086+
/* ... more sizes ... */
2087+
/* ======================================================
2088+
FIX: Responsive Tour Arrows (Mobile vs Desktop)
2089+
This overrides the static positions set earlier in the file.
2090+
====================================================== */
2091+
2092+
#left-arrow,
2093+
#right-arrow {
2094+
/* 1. Center Vertically */
2095+
top: 50% !important;
2096+
transform: translateY(-50%);
2097+
2098+
/* 2. Ensure visibility */
2099+
z-index: 2000;
2100+
position: absolute;
2101+
}
2102+
2103+
/* --- Mobile / Default View --- */
2104+
#left-arrow {
2105+
left: 10px !important;
2106+
}
2107+
2108+
#right-arrow {
2109+
left: auto !important; /* Unset the old fixed pixel value */
2110+
right: 10px !important; /* Stick to the right edge */
2111+
}
2112+
2113+
/* --- Desktop View (Screens wider than 900px) --- */
2114+
@media screen and (min-width: 900px) {
2115+
#left-arrow {
2116+
left: 20px !important; /* More space from the edge on desktop */
2117+
}
2118+
2119+
#right-arrow {
2120+
right: 20px !important;
2121+
}
2122+
}
2123+
/* ======================================================
2124+
FIX: Center the Welcome Modal on Mobile
2125+
====================================================== */
2126+
@media screen and (max-width: 600px) {
2127+
#helpDiv {
2128+
/* 1. Fit the screen width */
2129+
width: 90% !important;
2130+
2131+
/* 2. Center Horizontally */
2132+
left: 50% !important;
2133+
transform: translateX(-50%); /* Moves it back by half its width to center it */
2134+
2135+
/* 3. Reset Top position if needed */
2136+
top: 15% !important;
2137+
}
2138+
2139+
/* Fix the inner text box width so it doesn't overflow */
2140+
#helpBodyDiv {
2141+
width: 100% !important;
2142+
left: 0 !important;
2143+
padding: 0 10px;
2144+
box-sizing: border-box;
2145+
}
2146+
}

0 commit comments

Comments
 (0)