The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
fix(mobile): switches keep their knob inside the track at every text size
Maurice25091dbd605a
diff --git a/client/src/mobile/components/MToggle.tsx b/client/src/mobile/components/MToggle.tsxindex b8938d7cd..1f11d37b0 100644--- a/client/src/mobile/components/MToggle.tsx+++ b/client/src/mobile/components/MToggle.tsx@@ -20,7 +20,9 @@ export default function MToggle({ checked, onChange, ariaLabel, disabled = falseselectionHaptic()onChange(!checked)}}- className={`box-border h-[22px] w-10 flex-none rounded-full p-[2px] transition-colors duration-[180ms] disabled:opacity-50 ${+ // Width in px like the knob and its travel: w-10 is rem and followed the text size,+ // so a smaller text setting left the knob hanging over the end of the track.+ className={`box-border h-[22px] w-[40px] flex-none rounded-full p-[2px] transition-colors duration-[180ms] disabled:opacity-50 ${checked ? 'bg-m-act' : 'bg-[color:var(--m-trackoff)]'} ${className}`}>