Skip to content

armgit / TREK

Public Imported from GitHub
0

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.

fix(client): spacing and alignment follow the reading direction

Mauriceba70ad28b88e
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 9300ba259..7b0ff6a42 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -232,6 +232,12 @@ jobs:
- name: Page pattern check
run: cd client && npm run lint:pages
+ - name: Reading direction check
+ # Arabic runs right to left. A file may hold no more physical
+ # left/right classes and styles than scripts/rtl-baseline.json allows,
+ # so new code uses the logical start/end forms (scripts/rtl-lint.mjs).
+ run: cd client && npm run lint:rtl
+
plugin-sdk-quality:
name: Plugin SDK Types
runs-on: ubuntu-latest
diff --git a/CLAUDE.md b/CLAUDE.md
index d88aa9aea..4beea8616 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -34,6 +34,7 @@ npm run test:cov # coverage (lcov) for all fou
cd client && npm run test # client vitest run
cd client && npm run e2e # Playwright (local only)
cd client && npm run lint:pages # enforce the Page pattern (CI gate)
+cd client && npm run lint:rtl # physical left/right sides may only shrink per file (CI gate)
cd client && npm run theme:lint # flag styling that bypasses appearance tokens (local only)
npm run typecheck --workspace=server # tsc --noEmit (also client/shared; server also has typecheck:tests)
```
@@ -77,6 +78,7 @@ Offline-first, with a layered data flow. A Page never owns state directly:
- **Page pattern** (enforced by `lint:pages`, spec in `client/src/pages/PATTERN.md`): a `*Page.tsx` is a **wiring container** composing a co-located `use<Page>()` hook; it must not call React state/effect/memo hooks itself.
- **Data flow**: `store (Zustand, client/src/store/) → repo (client/src/repo/) → api (client/src/api/) | Dexie (client/src/db/offlineDb.ts)`. Writes go through `sync/mutationQueue.ts`: optimistic Dexie write, then a replay with an `X-Idempotency-Key` header on reconnect. `store/slices/remoteEventHandler.ts` applies incoming WebSocket events. Components never call the API directly.
- **Styling**: semantic Tailwind tokens (`bg-surface*`, `text-content*`, `border-edge*`, `bg-accent*`) or the underlying `var(--token)` variables — never color literals, arbitrary-value color classes or numeric inline `fontSize`, so user-chosen scheme/transparency/text-size keep working. `theme:lint` flags bypasses; suppress intentional exceptions (map/PDF/brand) with a `theme-lint-disable` line comment.
+- **Reading direction**: Arabic runs the app right to left, so spacing, insets and alignment that follow the text use the logical forms (`ms-`/`me-`/`ps-`/`pe-`/`start-`/`end-`/`text-start`/`border-s`/`rounded-s`, `marginInlineStart`, `insetInlineEnd`, `textAlign: 'start'`). `lint:rtl` counts the physical ones per file against `client/scripts/rtl-baseline.json`, which may only shrink; geometry that is physical on purpose in new code (maps, measured positions, time axes) carries an `rtl-lint-disable` comment.
- **PWA**: `vite-plugin-pwa` + Workbox cache tiles, API and uploads; `prebuild` generates icons.
## Shared contracts & i18n
@@ -106,7 +108,7 @@ These principles come out of a full-repo audit and shape all new code:
## Quality gates in CI
-`.github/workflows/test.yml` runs, per package: typecheck (server also `typecheck:tests`), `lint:check`, `lint:pages`, `check:plugin-facts`, `i18n:parity:strict`, the S3 contract suite, coverage for all four packages, then a SonarCloud scan. `lint-prettier.yml` additionally runs `lint` + `format:check` on `shared/`. `plugin-sdk` has no lint script and is outside the eslint gates. **Not in CI**: `theme:lint`, Playwright, `check:gl-split` — run them locally. There are no git hooks; nothing runs before a commit except you. Other workflows build Docker images, scan them, and publish `trek-plugin-sdk` on `plugin-sdk-v*` tags.
+`.github/workflows/test.yml` runs, per package: typecheck (server also `typecheck:tests`), `lint:check`, `lint:pages`, `lint:rtl`, `check:plugin-facts`, `i18n:parity:strict`, the S3 contract suite, coverage for all four packages, then a SonarCloud scan. `lint-prettier.yml` additionally runs `lint` + `format:check` on `shared/`. `plugin-sdk` has no lint script and is outside the eslint gates. **Not in CI**: `theme:lint`, Playwright, `check:gl-split` — run them locally. There are no git hooks; nothing runs before a commit except you. Other workflows build Docker images, scan them, and publish `trek-plugin-sdk` on `plugin-sdk-v*` tags.
**SonarCloud** (project `liketrek_TREK`, the built-in Sonar way gate; the run takes 20–25 min, so get it right before pushing) measures **new code only** on a PR; any failing condition blocks it:
diff --git a/client/CLAUDE.md b/client/CLAUDE.md
index 49fcc8518..e2d41f49c 100644
--- a/client/CLAUDE.md
+++ b/client/CLAUDE.md
@@ -10,6 +10,7 @@ npm run build # prebuild generates PWA icons, then vite build
npm run typecheck # tsc --noEmit (CI)
npm run lint # eslint . (lint:check in CI)
npm run lint:pages # enforce the Page pattern (CI gate)
+npm run lint:rtl # physical left/right sides may only shrink per file (CI gate; --list shows them, --update lowers the baseline)
npm run test # vitest run (tests/** + co-located src/**/*.test.{ts,tsx}); also test:unit / test:integration / test:coverage
npm run e2e # Playwright (local only; e2e:report opens the last report)
npm run shots # Playwright screenshot project (shots:promote to accept)
diff --git a/client/package.json b/client/package.json
index 47202b784..9da0bacbe 100644
--- a/client/package.json
+++ b/client/package.json
@@ -18,6 +18,7 @@
"lint": "eslint .",
"lint:check": "eslint .",
"lint:pages": "node scripts/check-page-pattern.mjs",
+ "lint:rtl": "node scripts/rtl-lint.mjs",
"check:gl-split": "node scripts/check-gl-split.mjs",
"theme:lint": "node scripts/theme-lint.mjs",
"theme:lint:strict": "node scripts/theme-lint.mjs --strict",
diff --git a/client/scripts/rtl-baseline.json b/client/scripts/rtl-baseline.json
new file mode 100644
index 000000000..82e209e06
--- /dev/null
+++ b/client/scripts/rtl-baseline.json
@@ -0,0 +1,115 @@
+{
+ "components/Admin/AdminPluginsPanel.tsx": 2,
+ "components/Budget/BudgetPanelMemberChips.tsx": 6,
+ "components/Budget/BudgetPanelPieChart.tsx": 1,
+ "components/Budget/BudgetPanelSummary.tsx": 2,
+ "components/Budget/CostsPanel.tsx": 3,
+ "components/Budget/ReceiptPreviewModal.tsx": 2,
+ "components/Collab/CollabChatEmojiPicker.tsx": 3,
+ "components/Collab/CollabChatReactionBadge.tsx": 3,
+ "components/Collab/CollabChatReactionMenu.tsx": 1,
+ "components/Collab/CollabPolls.tsx": 1,
+ "components/Collections/CollectionPlaceDetail.tsx": 2,
+ "components/Files/FileManagerAvatarChip.tsx": 3,
+ "components/Journey/JourneyDayJump.tsx": 1,
+ "components/Journey/JourneyDetailPageDatePicker.tsx": 1,
+ "components/Journey/JourneyDetailPageEntryEditor.tsx": 1,
+ "components/Journey/JourneyDetailPageGalleryView.tsx": 1,
+ "components/Journey/JourneyDetailPagePhotoGrid.tsx": 1,
+ "components/Journey/JourneyDetailPageProviderPicker.tsx": 1,
+ "components/Journey/JourneyEntryCover.tsx": 1,
+ "components/Journey/JourneyMap.tsx": 1,
+ "components/Journey/JourneyMapGL.tsx": 2,
+ "components/Journey/journeyPhotoLayer.ts": 1,
+ "components/Journey/MobileEntryView.tsx": 1,
+ "components/Journey/PhotoLightbox.tsx": 3,
+ "components/Layout/Navbar.tsx": 1,
+ "components/Layout/OfflineBanner.tsx": 1,
+ "components/Map/DawarichTrailPill.tsx": 1,
+ "components/Map/hazardPopup.css": 2,
+ "components/Map/hazardPopup.ts": 1,
+ "components/Map/LocationButton.tsx": 1,
+ "components/Map/locationMarkerMapbox.ts": 2,
+ "components/Map/MapTogglePill.tsx": 1,
+ "components/Map/MapView.tsx": 6,
+ "components/Map/MapViewGL.tsx": 8,
+ "components/Map/nightPauseMarker.ts": 4,
+ "components/Map/NightPauseTooltip.tsx": 1,
+ "components/Map/PlaceHoverCard.tsx": 1,
+ "components/Map/PoiCategoryPill.tsx": 1,
+ "components/Map/ratingBadge.ts": 1,
+ "components/Packing/PackingListPanelBagCard.tsx": 1,
+ "components/Packing/PackingListPanelCategoryGroup.tsx": 3,
+ "components/Packing/PackingListPanelItemRow.tsx": 2,
+ "components/Packing/PackingShareControl.tsx": 3,
+ "components/PDF/tripMapImage.ts": 1,
+ "components/PDF/TripPDF.tsx": 8,
+ "components/Planner/bookings/BookingsTimeline.tsx": 24,
+ "components/Planner/DayDetailPanel.tsx": 1,
+ "components/Planner/PlaceInspector.tsx": 1,
+ "components/Planner/TransitSearchPanel.tsx": 3,
+ "components/Roadtrip/AnchoredPopover.tsx": 2,
+ "components/Settings/IntegrationsTab.tsx": 2,
+ "components/Settings/PluginSettingsTab.tsx": 2,
+ "components/Settings/ToggleSwitch.tsx": 1,
+ "components/shared/ContextMenu.tsx": 3,
+ "components/shared/CustomDateTimePicker.tsx": 2,
+ "components/shared/CustomSelect.tsx": 4,
+ "components/shared/CustomTimePicker.tsx": 3,
+ "components/shared/DetailShell.tsx": 1,
+ "components/shared/dialogParts.tsx": 1,
+ "components/shared/ElevationProfile.tsx": 2,
+ "components/shared/NavigationMenu.tsx": 2,
+ "components/shared/PlaceAvatarUpload.tsx": 3,
+ "components/shared/PublicLanguagePicker.tsx": 1,
+ "components/shared/SlidingTabs.tsx": 3,
+ "components/shared/StarRating.tsx": 3,
+ "components/shared/Toast.tsx": 1,
+ "components/shared/Tooltip.tsx": 2,
+ "components/Studio/BookSheetsView.tsx": 3,
+ "components/Studio/PageNumbers.tsx": 1,
+ "components/Studio/PeerCursors.tsx": 1,
+ "components/Studio/SpreadView.tsx": 8,
+ "components/Studio/StudioCanvas.tsx": 22,
+ "components/Studio/StudioElementsPanel.tsx": 1,
+ "components/Studio/StudioExport.tsx": 1,
+ "components/Studio/StudioInspector.tsx": 1,
+ "components/Studio/StudioSavedLayouts.tsx": 1,
+ "components/Studio/StudioSidebar.tsx": 3,
+ "components/Studio/TravelElements.tsx": 4,
+ "components/Studio/TravelPreview.tsx": 1,
+ "components/SystemNotices/releaseNotice.css": 2,
+ "components/SystemNotices/ReleaseNoticeVisuals.tsx": 3,
+ "components/Vacay/VacayCalendar.tsx": 3,
+ "components/Vacay/VacayMonthCard.tsx": 7,
+ "components/Vacay/VacaySettings.tsx": 1,
+ "help/contexts/tripMap.ts": 1,
+ "hooks/useAnchoredPosition.ts": 3,
+ "hooks/useElementRect.ts": 3,
+ "mobile/components/MSegmented.tsx": 3,
+ "mobile/components/MSheet.tsx": 1,
+ "mobile/screens/dashboard/MDashboard.tsx": 1,
+ "mobile/screens/journey/MJourneyDetail.tsx": 3,
+ "mobile/screens/journey/MJourneyEntrySheet.tsx": 1,
+ "mobile/screens/trip/map/MMapArea.tsx": 3,
+ "mobile/screens/trip/MTripShell.tsx": 3,
+ "mobile/screens/trip/tabs/MCollabPolls.tsx": 1,
+ "mobile/screens/trip/tabs/MFileLightbox.tsx": 2,
+ "mobile/screens/vacay/MVacay.tsx": 1,
+ "mobile/screens/vacay/MVacayMonth.tsx": 1,
+ "pages/admin/AdminNotificationsTab.tsx": 1,
+ "pages/admin/AdminSettingsTab.tsx": 1,
+ "pages/atlas/AtlasLayerToggle.tsx": 1,
+ "pages/AtlasPage.tsx": 2,
+ "pages/JourneyDetailPage.tsx": 1,
+ "pages/JourneyPublicPage.tsx": 3,
+ "pages/LoginPage.tsx": 23,
+ "pages/sharedTrip/SharedMap.tsx": 4,
+ "pages/TripPlannerPage.tsx": 17,
+ "pages/VacayPage.tsx": 1,
+ "styles/collections.css": 1,
+ "styles/studio.css": 7,
+ "utils/formatters.ts": 1,
+ "utils/mapViewport.ts": 4,
+ "utils/touchDragBridge.ts": 1
+}
diff --git a/client/scripts/rtl-lint.mjs b/client/scripts/rtl-lint.mjs
new file mode 100644
index 000000000..0b68a1696
--- /dev/null
+++ b/client/scripts/rtl-lint.mjs
@@ -0,0 +1,166 @@
+#!/usr/bin/env node
+/*
+ * lint:rtl: keeps the layout following the reading direction.
+ *
+ * Arabic runs the app with dir="rtl". A physical class or style (ml-2,
+ * text-left, paddingLeft, left: 0) stays on the same side in either direction,
+ * so a gap, an indent or an alignment that follows the text in English lands
+ * on the wrong side in Arabic. The logical forms (ms-2, text-start,
+ * paddingInlineStart, insetInlineStart) follow the direction, and in a
+ * left-to-right language they are exactly the physical ones.
+ *
+ * Some things are physical on purpose: a map, a chart axis, a drag handle, a
+ * popover placed at measured coordinates. Those stay. Every file's physical
+ * uses are counted against scripts/rtl-baseline.json, and the check fails when
+ * a file holds more than its entry (a file without an entry holds none), so
+ * new code reaches for the logical forms. A line that is physical on purpose
+ * in new code carries `rtl-lint-disable` in a comment.
+ *
+ * npm run lint:rtl check against the baseline (CI)
+ * npm run lint:rtl -- --list print every counted use, file by file
+ * npm run lint:rtl -- --update lower the baseline to what the files hold now;
+ * it never raises an entry
+ */
+import { readdirSync, readFileSync, statSync, writeFileSync } from 'node:fs'
+import { join, relative } from 'node:path'
+import { fileURLToPath } from 'node:url'
+
+const SRC = fileURLToPath(new URL('../src', import.meta.url))
+const BASELINE = fileURLToPath(new URL('./rtl-baseline.json', import.meta.url))
+
+// Tailwind utilities that name a physical side, with any variant prefix
+// (sm:, hover:, group-hover:) and the negative form (-ml-2).
+const CLASS = new RegExp(
+ String.raw`(?<![\w-])(?:[\w-]+:)*-?(?:` +
+ [
+ String.raw`(?:ml|mr|pl|pr|left|right|scroll-m[lr]|scroll-p[lr])-(?:\[[^\]\s]+\]|[\w./]+)`,
+ String.raw`text-(?:left|right)(?![\w-])`,
+ String.raw`border-[lr](?:-[\w[\]#./()-]+)?(?![\w-])`,
+ String.raw`rounded-(?:l|r|tl|tr|bl|br)(?:-[\w[\]./]+)?(?![\w-])`,
+ String.raw`(?:float|clear)-(?:left|right)(?![\w-])`,
+ String.raw`space-x-[\w.]+`,
+ ].join('|') +
+ ')',
+ 'g',
+)
+// The same sides as React style keys, and as properties in a stylesheet.
+const STYLE =
+ /\b(?:marginLeft|marginRight|paddingLeft|paddingRight|borderLeft\w*|borderRight\w*|border(?:Top|Bottom)(?:Left|Right)Radius|left|right)\s*:|\b(?:textAlign|float)\s*:\s*['"](?:left|right)['"]/g
+const CSS =
+ /(?<![\w-])(?:margin-left|margin-right|padding-left|padding-right|border-left[\w-]*|border-right[\w-]*|border-(?:top|bottom)-(?:left|right)-radius|left|right)\s*:|(?<![\w-])(?:text-align|float)\s*:\s*(?:left|right)\b/g
+
+const DISABLE = 'rtl-lint-disable'
+
+function walk(dir, files = []) {
+ for (const name of readdirSync(dir)) {
+ const path = join(dir, name)
+ if (statSync(path).isDirectory()) walk(path, files)
+ else if (/\.(?:tsx?|css)$/.test(name) && !/\.(?:test|spec)\./.test(name)) files.push(path)
+ }
+ return files
+}
+
+/**
+ * The code of each line, without its comments: prose like "top right" or
+ * "left out" is no side. Good enough for this source, which keeps `//` and
+ * `/*` out of string literals except in URLs (`https://`).
+ */
+function codeLines(source) {
+ let inBlock = false
+ return source.split('\n').map((line) => {
+ let code = ''
+ let rest = line
+ while (rest) {
+ if (inBlock) {
+ const end = rest.indexOf('*/')
+ if (end < 0) return code
+ rest = rest.slice(end + 2)
+ inBlock = false
+ continue
+ }
+ const block = rest.indexOf('/*')
+ const lineComment = rest.search(/(?<!:)\/\//)
+ if (lineComment >= 0 && (block < 0 || lineComment < block)) return code + rest.slice(0, lineComment)
+ if (block < 0) return code + rest
+ code += rest.slice(0, block)
+ rest = rest.slice(block + 2)
+ inBlock = true
+ }
+ return code
+ })
+}
+
+/** Every physical use in one file, as `line: match`. */
+export function physicalUses(source, isCss) {
+ const uses = []
+ const lines = source.split('\n')
+ codeLines(source).forEach((code, i) => {
+ if (lines[i].includes(DISABLE)) return
+ const patterns = isCss ? [CSS] : [CLASS, STYLE]
+ for (const re of patterns) for (const m of code.match(re) ?? []) uses.push(`${i + 1}: ${m.trim()}`)
+ })
+ return uses
+}
+
+function scan() {
+ const counts = {}
+ const listed = {}
+ for (const file of walk(SRC)) {
+ const uses = physicalUses(readFileSync(file, 'utf8'), file.endsWith('.css'))
+ if (!uses.length) continue
+ const key = relative(SRC, file).replace(/\\/g, '/')
+ counts[key] = uses.length
+ listed[key] = uses
+ }
+ return { counts, listed }
+}
+
+function readBaseline() {
+ try {
+ return JSON.parse(readFileSync(BASELINE, 'utf8'))
+ } catch {
+ return {}
+ }
+}
+
+const isCli = process.argv[1] && fileURLToPath(import.meta.url) === process.argv[1]
+if (isCli) {
+ const { counts, listed } = scan()
+ const baseline = readBaseline()
+
+ if (process.argv.includes('--list')) {
+ for (const [file, uses] of Object.entries(listed).sort()) {
+ console.log(`${file} (${uses.length}, baseline ${baseline[file] ?? 0})`)
+ for (const use of uses) console.log(` ${use}`)
+ }
+ }
+
+ if (process.argv.includes('--update')) {
+ const lowered = {}
+ for (const [file, allowed] of Object.entries(baseline)) {
+ const now = counts[file] ?? 0
+ if (now > 0) lowered[file] = Math.min(allowed, now)
+ }
+ const sorted = Object.fromEntries(Object.entries(lowered).sort(([a], [b]) => a.localeCompare(b)))
+ writeFileSync(BASELINE, JSON.stringify(sorted, null, 2) + '\n')
+ }
+
+ const grown = Object.entries(counts).filter(([file, n]) => n > (baseline[file] ?? 0))
+ const total = Object.values(counts).reduce((a, b) => a + b, 0)
+ const allowed = Object.values(baseline).reduce((a, b) => a + b, 0)
+ const lowerable = Object.entries(baseline).filter(([file, n]) => (counts[file] ?? 0) < n)
+
+ for (const [file, n] of grown) {
+ console.error(
+ `FAIL ${file}: ${n} physical side(s), baseline ${baseline[file] ?? 0}. ` +
+ 'Use ms-/me-/ps-/pe-/start-/end-/text-start/text-end/border-s/border-e/rounded-s/rounded-e ' +
+ 'or marginInlineStart/paddingInlineEnd/insetInlineStart/textAlign: start. ' +
+ `If the side is geometry, mark the line with ${DISABLE}.`,
+ )
+ }
+ if (lowerable.length && !process.argv.includes('--update')) {
+ console.log(`${lowerable.length} file(s) now hold fewer physical sides than the baseline: run with --update to lower it.`)
+ }
+ console.log(`rtl: ${total} physical side(s) in ${Object.keys(counts).length} file(s), baseline allows ${allowed}`)
+ if (grown.length) process.exit(1)
+}
diff --git a/client/src/components/Admin/AdminMcpTokensPanel.tsx b/client/src/components/Admin/AdminMcpTokensPanel.tsx
index a23a96234..73c84e1c8 100644
--- a/client/src/components/Admin/AdminMcpTokensPanel.tsx
+++ b/client/src/components/Admin/AdminMcpTokensPanel.tsx
@@ -56,7 +56,7 @@ function ListState({ loading, icon, text }: { loading: boolean; icon: ReactNode;
/** One fact on the right of a row: an eyebrow over its value. */
function Meta({ label, children }: { label: string; children: ReactNode }) {
return (
- <div className="min-w-0 text-right">
+ <div className="min-w-0 text-end">
<div className="font-geist font-bold uppercase tracking-[.08em] text-content-faint" style={fs(9.5)}>{label}</div>
<div className="whitespace-nowrap font-geist tabular-nums text-content-muted" style={fs(12, 'body')}>{children}</div>
</div>
diff --git a/client/src/components/Admin/AdminPluginsPanel.tsx b/client/src/components/Admin/AdminPluginsPanel.tsx
index 38cdf3c12..eab547c67 100644
--- a/client/src/components/Admin/AdminPluginsPanel.tsx
+++ b/client/src/components/Admin/AdminPluginsPanel.tsx
@@ -1176,7 +1176,7 @@ function FilterMenu({ id, label, valueLabel, options, onPick, value, menu, setMe
{options.map(([v, lbl]) => (
<button type="button" key={v} onClick={() => { onPick(v); setMenu(null) }}
className={`${MENU_ITEM} ${value === v ? 'font-semibold text-content' : 'text-content-secondary'}`} style={fs(12.5, 'body')}>
- <span className="min-w-0 flex-1 truncate text-left">{lbl}</span>
+ <span className="min-w-0 flex-1 truncate text-start">{lbl}</span>
<Check size={14} className={`flex-none text-content-muted ${value === v ? 'opacity-100' : 'opacity-0'}`} />
</button>
))}
@@ -1215,7 +1215,7 @@ function InstalledRow({ p, t, busy, menu, setMenu, hasUpdate, latestVer, newerIn
<PluginIcon name={p.icon} size={19} className="text-content-secondary" />
</span>
<Tooltip label={t(`admin.plugins.status.${p.status}` as never)}>
- <span className={`absolute -bottom-0.5 -right-0.5 h-3 w-3 rounded-full ring-2 ring-surface-card ${HEALTH[p.status] || HEALTH.inactive}`} />
+ <span className={`absolute -bottom-0.5 -end-0.5 h-3 w-3 rounded-full ring-2 ring-surface-card ${HEALTH[p.status] || HEALTH.inactive}`} />
</Tooltip>
</div>
@@ -1311,7 +1311,7 @@ function InstalledRow({ p, t, busy, menu, setMenu, hasUpdate, latestVer, newerIn
<ArrowUpCircle size={13} /> <span>{t('admin.plugins.updateTo', { version: latestVer })}</span>
</button>
)}
- <span className={`min-w-[42px] text-right font-medium ${on ? 'text-content-secondary' : 'text-content-faint'}`} style={fs(12)}>
+ <span className={`min-w-[42px] text-end font-medium ${on ? 'text-content-secondary' : 'text-content-faint'}`} style={fs(12)}>
{p.enabled === 1 ? t('admin.plugins.status.active') : t('admin.plugins.stateOff')}
</span>
<ToggleSwitch on={p.enabled === 1} label={t('admin.plugins.enabledToggle')} onToggle={onToggle} />
@@ -1444,11 +1444,11 @@ function RegistryGrid({ items, onInstall, onOpenDetail, busy, t, installedIds, f
<div className="relative">
<Screenshot url={item.screenshotUrl} className="aspect-[16/10]" iconSize={24} />
{item.reviewedAt && (
- <span className="absolute right-2.5 top-2.5">
+ <span className="absolute end-2.5 top-2.5">
<StatusPill icon={<ShieldCheck size={11} className="text-success" />}>{t('admin.plugins.reviewed')}</StatusPill>
</span>
)}
- <span className="absolute -bottom-4 left-3.5 z-[1] grid h-10 w-10 place-items-center rounded-[12px] border border-edge-faint bg-surface-card shadow-sm">
+ <span className="absolute -bottom-4 start-3.5 z-[1] grid h-10 w-10 place-items-center rounded-[12px] border border-edge-faint bg-surface-card shadow-sm">
<PluginIcon name={item.icon} size={20} className="text-content-secondary" />
</span>
</div>
@@ -2111,7 +2111,7 @@ function KeyRow({ label, value, highlight }: { label: string; value: string; hig
return (
<div className="flex items-center justify-between gap-3 px-3.5 py-2.5">
<span className="flex-none text-content-muted" style={fs(12)}>{label}</span>
- <code className={`min-w-0 break-all text-right font-mono ${highlight ? 'font-semibold text-warning' : 'text-content'}`} style={fs(12)}>{value}</code>
+ <code className={`min-w-0 break-all text-end font-mono ${highlight ? 'font-semibold text-warning' : 'text-content'}`} style={fs(12)}>{value}</code>
</div>
)
}
@@ -2249,7 +2249,7 @@ function SecurityInfo({ t }: { t: T }) {
icon={Lock}
title={(
<button type="button" onClick={() => setOpen(o => !o)} aria-expanded={open}
- className="inline-flex max-w-full items-center gap-1.5 text-left font-bold text-content hover:opacity-80">
+ className="inline-flex max-w-full items-center gap-1.5 text-start font-bold text-content hover:opacity-80">
<span className="truncate">{t('admin.plugins.security.title')}</span>
<ChevronDown size={15} className={`flex-none text-content-faint transition-transform ${open ? 'rotate-180' : ''}`} />
</button>
diff --git a/client/src/components/Admin/AuditLogPanel.tsx b/client/src/components/Admin/AuditLogPanel.tsx
index c3c73cb85..093ebc4e3 100644
--- a/client/src/components/Admin/AuditLogPanel.tsx
+++ b/client/src/components/Admin/AuditLogPanel.tsx
@@ -21,7 +21,7 @@ interface AuditLogPanelProps {
serverTimezone?: string
}
-const TH = 'whitespace-nowrap px-3.5 py-2.5 text-left font-geist font-bold uppercase tracking-[.08em] text-content-faint'
+const TH = 'whitespace-nowrap px-3.5 py-2.5 text-start font-geist font-bold uppercase tracking-[.08em] text-content-faint'
const TD = 'px-3.5 py-2.5 align-top'
const CODE = 'font-geist tabular-nums'
diff --git a/client/src/components/Admin/DefaultUserSettingsTab.tsx b/client/src/components/Admin/DefaultUserSettingsTab.tsx
index 84a2d200c..e7d9a7269 100644
--- a/client/src/components/Admin/DefaultUserSettingsTab.tsx
+++ b/client/src/components/Admin/DefaultUserSettingsTab.tsx
@@ -172,7 +172,7 @@ export default function DefaultUserSettingsTab(): React.ReactElement {
isSet(field) ? (
<button type="button"
onClick={() => reset(field)}
- className="ml-2 align-baseline font-geist font-medium normal-case tracking-normal text-content-muted underline decoration-edge underline-offset-2 hover:text-content"
+ className="ms-2 align-baseline font-geist font-medium normal-case tracking-normal text-content-muted underline decoration-edge underline-offset-2 hover:text-content"
style={fs(11)}
>
{t('admin.defaultSettings.resetToBuiltIn')}
diff --git a/client/src/components/Admin/DevNotificationsPanel.tsx b/client/src/components/Admin/DevNotificationsPanel.tsx
index 7cfd5d06d..2fad6c8d4 100644
--- a/client/src/components/Admin/DevNotificationsPanel.tsx
+++ b/client/src/components/Admin/DevNotificationsPanel.tsx
@@ -23,13 +23,13 @@ interface AppUser {
}
/** A native select in the editors' box look, with the chevron the CustomSelect draws. */
-const SELECT = `${INPUT} appearance-none pr-9`
+const SELECT = `${INPUT} appearance-none pe-9`
function SelectBox({ id, children, ...rest }: React.SelectHTMLAttributes<HTMLSelectElement>): React.ReactElement {
return (
<div className="relative">
<select id={id} {...rest} className={SELECT}>{children}</select>
- <ChevronDown size={14} strokeWidth={2.2} className="pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 text-content-faint" />
+ <ChevronDown size={14} strokeWidth={2.2} className="pointer-events-none absolute end-3 top-1/2 -translate-y-1/2 text-content-faint" />
</div>
)
}
@@ -89,7 +89,7 @@ export default function DevNotificationsPanel(): React.ReactElement {
<button type="button"
onClick={onClick}
disabled={sending !== null}
- className="flex w-full min-w-0 items-center gap-3 rounded-[12px] border border-edge-faint bg-surface-card px-3 py-2.5 text-left transition-colors hover:bg-surface-secondary disabled:cursor-default"
+ className="flex w-full min-w-0 items-center gap-3 rounded-[12px] border border-edge-faint bg-surface-card px-3 py-2.5 text-start transition-colors hover:bg-surface-secondary disabled:cursor-default"
>
<span className="grid h-8 w-8 flex-none place-items-center rounded-[10px] bg-surface-tertiary text-content-secondary">
<Icon size={15} strokeWidth={2} />
diff --git a/client/src/components/Admin/GitHubPanel.tsx b/client/src/components/Admin/GitHubPanel.tsx
index 99e80bc79..05ab3d37a 100644
--- a/client/src/components/Admin/GitHubPanel.tsx
+++ b/client/src/components/Admin/GitHubPanel.tsx
@@ -131,7 +131,7 @@ export default function GitHubPanel({ isPrerelease = false }: { isPrerelease?: b
const flushList = () => {
if (listItems.length > 0) {
elements.push(
- <ul key={`ul-${elements.length}`} className="my-1.5 space-y-1 pl-0">
+ <ul key={`ul-${elements.length}`} className="my-1.5 space-y-1 ps-0">
{listItems.map((item, i) => (
<li key={i} className="flex gap-2 leading-relaxed text-content-secondary" style={fs(12.5, 'body')}>
<span className="mt-[0.6em] h-1 w-1 flex-shrink-0 rounded-full bg-content-faint" />
@@ -279,7 +279,7 @@ export default function GitHubPanel({ isPrerelease = false }: { isPrerelease?: b
{/* Timeline */}
<div className="relative">
{/* Timeline line, from the first dot's middle down to the last one's */}
- {shown.length > 1 && <div className="absolute bottom-6 left-[15px] top-4 w-px bg-edge" aria-hidden="true" />}
+ {shown.length > 1 && <div className="absolute bottom-6 start-[15px] top-4 w-px bg-edge" aria-hidden="true" />}
<div className="flex flex-col gap-5">
{shown.map((release, idx) => {
diff --git a/client/src/components/Admin/GoogleDailyLimitRow.tsx b/client/src/components/Admin/GoogleDailyLimitRow.tsx
index 4101d6ec2..f398d291a 100644
--- a/client/src/components/Admin/GoogleDailyLimitRow.tsx
+++ b/client/src/components/Admin/GoogleDailyLimitRow.tsx
@@ -30,7 +30,7 @@ export default function GoogleDailyLimitRow() {
{t('admin.googleQuota.reached', { used: status.used_today })}
</StatusPill>
) : (
- <StatusPill icon={<span aria-hidden className="mr-0.5 h-1.5 w-1.5 rounded-full bg-success" />}>
+ <StatusPill icon={<span aria-hidden className="me-0.5 h-1.5 w-1.5 rounded-full bg-success" />}>
{status.daily_limit == null
? t('admin.googleQuota.usedToday', { used: status.used_today })
: t('admin.googleQuota.usedOfLimit', { used: status.used_today, limit: status.daily_limit })}
@@ -50,7 +50,7 @@ export default function GoogleDailyLimitRow() {
onKeyDown={e => { if (e.key === 'Enter') { e.preventDefault(); void save() } }}
placeholder={t('admin.googleQuota.placeholder')}
disabled={status === null || saving}
- className={`${INPUT} text-right font-geist tabular-nums`}
+ className={`${INPUT} text-end font-geist tabular-nums`}
/>
</div>
{dirty && (
diff --git a/client/src/components/Admin/PackingTemplateManager.tsx b/client/src/components/Admin/PackingTemplateManager.tsx
index 4aa7bfe68..f1e439fde 100644
--- a/client/src/components/Admin/PackingTemplateManager.tsx
+++ b/client/src/components/Admin/PackingTemplateManager.tsx
@@ -9,7 +9,7 @@ import { COMPOSER } from '../Packing/packingPopoverStyles'
import { SettingRows, SettingsCard, SettingsHint, StatusPill, SETTINGS_BUTTON_PRIMARY, SETTINGS_ICON_BUTTON } from '../Settings/settingsKit'
/** The planner's composer (#2541): a framed field on the card with its confirm and cancel beside it. */
-const COMPOSER_ROW = 'flex items-center gap-2 rounded-[10px] border border-edge bg-surface-card py-1 pl-3 pr-1'
+const COMPOSER_ROW = 'flex items-center gap-2 rounded-[10px] border border-edge bg-surface-card py-1 ps-3 pe-1'
const COMPOSER_INPUT = 'min-w-0 flex-1 border-0 bg-transparent py-1 font-medium text-content outline-none placeholder:text-content-faint'
const COMPOSER_CANCEL = 'grid h-7 w-7 flex-none place-items-center rounded-[8px] text-content-faint hover:bg-surface-secondary hover:text-content'
/** A name being renamed in place, sized to the row it sits in. */
@@ -240,7 +240,7 @@ export default function PackingTemplateManager() {
aria-label={t('common.rename')}
className={`${ROW_INPUT} flex-1 font-semibold`} style={fs(13, 'body')} />
) : (
- <button type="button" onClick={() => toggleExpand(tmpl.id)} className="min-w-0 flex-1 truncate text-left font-semibold text-content" style={fs(13, 'body')}>{tmpl.name}</button>
+ <button type="button" onClick={() => toggleExpand(tmpl.id)} className="min-w-0 flex-1 truncate text-start font-semibold text-content" style={fs(13, 'body')}>{tmpl.name}</button>
)}
<span className="max-sm:hidden">
<StatusPill>{tmpl.category_count} {t('admin.packingTemplates.categories')} · {tmpl.item_count} {t('admin.packingTemplates.items')}</StatusPill>
@@ -257,13 +257,13 @@ export default function PackingTemplateManager() {
{/* Expanded content: the template's categories as the packing list draws them */}
{expanded && (
- <div className="flex flex-col gap-2.5 border-t border-edge-faint bg-surface-secondary px-3 py-3 sm:pl-[52px]">
+ <div className="flex flex-col gap-2.5 border-t border-edge-faint bg-surface-secondary px-3 py-3 sm:ps-[52px]">
{categories.map(cat => {
const catItems = items.filter(i => i.category_id === cat.id)
return (
<div key={cat.id} className="overflow-hidden rounded-[12px] border border-edge-faint bg-surface-card">
{/* Category header */}
- <div data-row="category" className="flex items-center gap-1.5 border-b border-edge-faint bg-surface-tertiary py-1.5 pl-3 pr-1.5">
+ <div data-row="category" className="flex items-center gap-1.5 border-b border-edge-faint bg-surface-tertiary py-1.5 ps-3 pe-1.5">
{editingCatId === cat.id ? (
<input autoFocus value={editCatName} onChange={e => setEditCatName(e.target.value)}
onBlur={() => handleRenameCategory(cat.id)}
@@ -292,7 +292,7 @@ export default function PackingTemplateManager() {
{(catItems.length > 0 || addingItemToCatId === cat.id) && (
<div className="divide-y divide-edge-faint">
{catItems.map(item => (
- <div key={item.id} data-row="item" className="group flex min-h-[40px] items-center gap-2 py-1.5 pl-3 pr-1.5">
+ <div key={item.id} data-row="item" className="group flex min-h-[40px] items-center gap-2 py-1.5 ps-3 pe-1.5">
{editingItemId === item.id ? (
<>
<input autoFocus value={editItemName} onChange={e => setEditItemName(e.target.value)}
@@ -328,7 +328,7 @@ export default function PackingTemplateManager() {
{/* Add item inline */}
{addingItemToCatId === cat.id && (
- <div className="flex items-center gap-2 py-1.5 pl-3 pr-1.5">
+ <div className="flex items-center gap-2 py-1.5 ps-3 pe-1.5">
<input ref={addItemRef} value={newItemName} onChange={e => setNewItemName(e.target.value)}
onKeyDown={e => { if (e.key === 'Enter' && newItemName.trim()) void handleAddItem(cat.id); if (e.key === 'Escape') { setAddingItemToCatId(null); setNewItemName('') } }}
placeholder={t('admin.packingTemplates.itemName')}
diff --git a/client/src/components/Admin/SchoolHolidayCatalog.tsx b/client/src/components/Admin/SchoolHolidayCatalog.tsx
index 46bcc00d9..bd348db0b 100644
--- a/client/src/components/Admin/SchoolHolidayCatalog.tsx
+++ b/client/src/components/Admin/SchoolHolidayCatalog.tsx
@@ -82,8 +82,8 @@ function Catalog() {
{regions.length === 0
? <div className="rounded-[12px] border border-dashed border-edge px-4 py-5 text-center"><SettingsHint>{t('schoolCatalog.empty')}</SettingsHint></div>
: <SettingRows>
- {regions.map(region => <div key={region.id} className="flex items-center gap-2 py-1.5 pl-1.5 pr-3">
- <button type="button" className="group flex min-w-0 flex-1 items-center gap-3 rounded-[10px] px-2 py-1.5 text-left transition-colors hover:bg-surface-secondary" onClick={() => void state.openRegion(region.id)}>
+ {regions.map(region => <div key={region.id} className="flex items-center gap-2 py-1.5 ps-1.5 pe-3">
+ <button type="button" className="group flex min-w-0 flex-1 items-center gap-3 rounded-[10px] px-2 py-1.5 text-start transition-colors hover:bg-surface-secondary" onClick={() => void state.openRegion(region.id)}>
<span aria-hidden className="grid h-8 w-8 flex-none place-items-center rounded-[10px] bg-surface-tertiary text-content-secondary"><MapPinned size={15} strokeWidth={1.9} /></span>
<span className="min-w-0 flex-1 truncate font-medium text-content" style={fs(13, 'body')}>{region.name}</span>
<ChevronRight aria-hidden size={15} className="flex-none text-content-faint transition-transform group-hover:translate-x-0.5" />
diff --git a/client/src/components/Admin/storage/AdminStoragePanel.tsx b/client/src/components/Admin/storage/AdminStoragePanel.tsx
index 2e233ddef..ee6008a29 100644
--- a/client/src/components/Admin/storage/AdminStoragePanel.tsx
+++ b/client/src/components/Admin/storage/AdminStoragePanel.tsx
@@ -79,7 +79,7 @@ const ROW_BUTTON_PRIMARY = 'inline-flex items-center gap-1.5 rounded-[10px] bg-a
/** The icon square on the left of a row. */
const TILE = 'grid h-9 w-9 flex-none place-items-center rounded-[10px] bg-surface-tertiary text-content-muted'
/** What a row says under its head line, lined up with the name rather than the tile. */
-const DETAILS = 'mt-2 flex flex-col items-start gap-1.5 empty:hidden sm:pl-12'
+const DETAILS = 'mt-2 flex flex-col items-start gap-1.5 empty:hidden sm:ps-12'
const META = 'm-0 leading-snug text-content-faint'
const TYPE_ICON: Record<string, LucideIcon> = { local: HardDrive, s3: Cloud, mirror: Copy }
diff --git a/client/src/components/Atlas/AtlasCountryPlaces.tsx b/client/src/components/Atlas/AtlasCountryPlaces.tsx
index bf05517c8..93fd1dff1 100644
--- a/client/src/components/Atlas/AtlasCountryPlaces.tsx
+++ b/client/src/components/Atlas/AtlasCountryPlaces.tsx
@@ -55,7 +55,7 @@ export default function AtlasCountryPlaces({ detail, onOpenTrip, variant = 'desk
<button
type="button"
onClick={() => onOpenTrip(trip.id)}
- className={`group flex items-center gap-2 rounded-[10px] px-2 py-1.5 text-left ${rowHover}`}
+ className={`group flex items-center gap-2 rounded-[10px] px-2 py-1.5 text-start ${rowHover}`}
>
<Briefcase size={13} strokeWidth={2} className={`flex-none ${muted}`} />
<span className={`min-w-0 flex-1 truncate text-[0.8125rem] font-bold ${ink}`}>{trip.title}</span>
@@ -67,7 +67,7 @@ export default function AtlasCountryPlaces({ detail, onOpenTrip, variant = 'desk
key={place.id}
type="button"
onClick={() => onOpenTrip(trip.id)}
- className={`flex items-start gap-2 rounded-[10px] py-1.5 pl-7 pr-2 text-left ${rowHover}`}
+ className={`flex items-start gap-2 rounded-[10px] py-1.5 ps-7 pe-2 text-start ${rowHover}`}
>
<MapPin size={12} strokeWidth={2} className={`mt-[3px] flex-none ${faint}`} />
<span className="min-w-0 flex-1">
diff --git a/client/src/components/BackgroundTasks/BackgroundTasksWidget.tsx b/client/src/components/BackgroundTasks/BackgroundTasksWidget.tsx
index c36cf2226..8f9f06a40 100644
--- a/client/src/components/BackgroundTasks/BackgroundTasksWidget.tsx
+++ b/client/src/components/BackgroundTasks/BackgroundTasksWidget.tsx
@@ -149,7 +149,7 @@ export default function BackgroundTasksWidget() {
return createPortal(
<div
- style={{ position: 'fixed', right: 16, bottom: 16, zIndex: 50000, display: 'flex', flexDirection: 'column', gap: 8, width: 380, maxWidth: 'calc(100vw - 32px)', fontFamily: 'var(--font-system)' }}
+ style={{ position: 'fixed', insetInlineEnd: 16, bottom: 16, zIndex: 50000, display: 'flex', flexDirection: 'column', gap: 8, width: 380, maxWidth: 'calc(100vw - 32px)', fontFamily: 'var(--font-system)' }}
>
{tasks.map((task) => (
<div
diff --git a/client/src/components/Budget/BudgetPanel.tsx b/client/src/components/Budget/BudgetPanel.tsx
index 3fddf4e16..bca89cd97 100644
--- a/client/src/components/Budget/BudgetPanel.tsx
+++ b/client/src/components/Budget/BudgetPanel.tsx
@@ -62,13 +62,13 @@ export default function BudgetPanel({ tripId, tripMembers = [] }: BudgetPanelPro
<div style={{ padding: '24px 28px 0' }} className="max-md:!px-4 max-md:!pt-4">
<div style={{
background: 'var(--bg-tertiary)', borderRadius: 18,
- padding: '14px 16px 14px 22px',
+ paddingBlock: 14, paddingInline: '22px 16px',
display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 16, flexWrap: 'wrap',
}}>
<h2 style={{ margin: 0, fontSize: 'calc(18px * var(--fs-scale-subtitle, 1))', fontWeight: 600, color: 'var(--text-primary)', letterSpacing: '-0.01em', flexShrink: 0 }}>
{t('budget.title')}
</h2>
- <div className="flex flex-wrap max-md:!w-full max-md:!mt-2" style={{ alignItems: 'center', gap: 8, marginLeft: 'auto', flexShrink: 0 }}>
+ <div className="flex flex-wrap max-md:!w-full max-md:!mt-2" style={{ alignItems: 'center', gap: 8, marginInlineStart: 'auto', flexShrink: 0 }}>
<div className="max-md:!w-full" style={{ width: 150 }}>
<CustomSelect
value={currency}
diff --git a/client/src/components/Budget/BudgetPanelCategoryTable.tsx b/client/src/components/Budget/BudgetPanelCategoryTable.tsx
index 7ac16aef7..eac33f5ca 100644
--- a/client/src/components/Budget/BudgetPanelCategoryTable.tsx
+++ b/client/src/components/Budget/BudgetPanelCategoryTable.tsx
@@ -84,7 +84,7 @@ export default function BudgetCategoryTable({ cat, grouped, categoryColor, canEd
setDragCat(null); setDragOverCat(null)
}}
>
- {dragOverCat === cat && <div style={{ position: 'absolute', top: -2, left: 0, right: 0, height: 4, background: 'var(--accent)', borderRadius: 2, zIndex: 10 }} />}
+ {dragOverCat === cat && <div style={{ position: 'absolute', top: -2, insetInline: 0, height: 4, background: 'var(--accent)', borderRadius: 2, zIndex: 10 }} />}
<div style={{
display: 'flex', alignItems: 'center', justifyContent: 'space-between', background: '#000000', color: '#fff',
borderRadius: '10px 10px 0 0', padding: '9px 14px',
@@ -137,7 +137,7 @@ export default function BudgetCategoryTable({ cat, grouped, categoryColor, canEd
<table style={{ width: '100%', borderCollapse: 'collapse' }}>
<thead>
<tr>
- <th style={{ ...th, textAlign: 'left', minWidth: 120 }}>{t('budget.table.name')}</th>
+ <th style={{ ...th, textAlign: 'start', minWidth: 120 }}>{t('budget.table.name')}</th>
<th style={{ ...th, minWidth: 75 }}>{t('budget.table.total')}</th>
<th className="hidden sm:table-cell" style={{ ...th, minWidth: 160 }}>{t('budget.table.persons')}</th>
<th className="hidden sm:table-cell" style={{ ...th, minWidth: 55 }}>{t('budget.table.days')}</th>
@@ -256,7 +256,7 @@ export default function BudgetCategoryTable({ cat, grouped, categoryColor, canEd
</tr>
{contributions.length > 0 && (
<tr>
- <td colSpan={10} style={{ padding: '0 8px 6px 20px' }}>
+ <td colSpan={10} style={{ paddingBlock: '0 6px', paddingInline: '20px 8px' }}>
<PluginCardFooter items={contributions} tripId={tripId} />
</td>
</tr>
diff --git a/client/src/components/Budget/BudgetPanelInlineEditCell.tsx b/client/src/components/Budget/BudgetPanelInlineEditCell.tsx
index 232936775..6452f76dc 100644
--- a/client/src/components/Budget/BudgetPanelInlineEditCell.tsx
+++ b/client/src/components/Budget/BudgetPanelInlineEditCell.tsx
@@ -53,7 +53,7 @@ export default function InlineEditCell({ value, onSave, type = 'text', style = {
padding: '2px 4px', borderRadius: 4, minHeight: 22, display: 'flex', alignItems: 'center',
justifyContent: style?.textAlign === 'center' ? 'center' : 'flex-start', transition: 'background 0.15s',
color: display ? 'var(--text-primary)' : 'var(--text-faint)', fontSize: 'calc(13px * var(--fs-scale-body, 1))',
- width: '100%', textAlign: 'left', ...style,
+ width: '100%', textAlign: 'start', ...style,
}
const content = display || placeholder || '-'
diff --git a/client/src/components/Budget/BudgetPanelMemberChips.tsx b/client/src/components/Budget/BudgetPanelMemberChips.tsx
index b8bb8a244..5b0642a69 100644
--- a/client/src/components/Budget/BudgetPanelMemberChips.tsx
+++ b/client/src/components/Budget/BudgetPanelMemberChips.tsx
@@ -164,7 +164,7 @@ export default function BudgetMemberChips({ members = [], tripMembers = [], onSe
<button type="button" key={tm.id} onClick={() => toggleMember(tm.id)} style={{
display: 'flex', alignItems: 'center', gap: 6, width: '100%', padding: '5px 8px',
borderRadius: 6, border: 'none', background: isActive ? 'var(--bg-hover)' : 'none', cursor: 'pointer',
- fontFamily: 'inherit', fontSize: 'calc(11px * var(--fs-scale-caption, 1))', color: 'var(--text-primary)', textAlign: 'left',
+ fontFamily: 'inherit', fontSize: 'calc(11px * var(--fs-scale-caption, 1))', color: 'var(--text-primary)', textAlign: 'start',
}}
onMouseEnter={e => { if (!isActive) e.currentTarget.style.background = 'var(--bg-hover)' }}
onMouseLeave={e => { if (!isActive) e.currentTarget.style.background = 'none' }}
diff --git a/client/src/components/Budget/BudgetPanelSummary.tsx b/client/src/components/Budget/BudgetPanelSummary.tsx
index 0b9d77866..bf829ab49 100644
--- a/client/src/components/Budget/BudgetPanelSummary.tsx
+++ b/client/src/components/Budget/BudgetPanelSummary.tsx
@@ -57,10 +57,11 @@ export default function BudgetSummary({ theme, currency, locale, grandTotal, has
const sep = (0.1).toLocaleString(locale).replace(/\d/g, '')
const [integerPart, decimalPart] = decimals > 0 ? full.split(sep) : [full, '']
return (
- <div style={{ display: 'flex', alignItems: 'baseline', gap: 4, letterSpacing: '-0.03em', lineHeight: 1 }}>
+ // dir=ltr: the amount is split into spans, which a right-to-left flex row would reorder.
+ <div dir="ltr" style={{ display: 'flex', alignItems: 'baseline', gap: 4, letterSpacing: '-0.03em', lineHeight: 1 }}>
<span style={{ fontSize: 'calc(38px * var(--fs-scale-title, 1))', fontWeight: 700 }}>{integerPart}</span>
{decimalPart && <span style={{ fontSize: 'calc(22px * var(--fs-scale-title, 1))', fontWeight: 500, color: theme.sub }}>{sep}{decimalPart}</span>}
- <span style={{ fontSize: 'calc(22px * var(--fs-scale-title, 1))', fontWeight: 500, color: theme.sub, marginLeft: 2 }}>{SYMBOLS[currency] || currency}</span>
+ <span style={{ fontSize: 'calc(22px * var(--fs-scale-title, 1))', fontWeight: 500, color: theme.sub, marginInlineStart: 2 }}>{SYMBOLS[currency] || currency}</span>
</div>
)
})()}
@@ -82,7 +83,7 @@ export default function BudgetSummary({ theme, currency, locale, grandTotal, has
}}>
{settlementOpen ? <ChevronDown size={13} /> : <ChevronRight size={13} />}
{t('budget.settlement')}
- <span style={{ position: 'relative', display: 'inline-flex', marginLeft: 2 }}>
+ <span style={{ position: 'relative', display: 'inline-flex', marginInlineStart: 2 }}>
{/* Decoration inside the settlement toggle: the hint hangs off
hover, and the click only keeps the toggle from firing. A
role of its own would give the toggle a second name and a
@@ -100,7 +101,7 @@ export default function BudgetSummary({ theme, currency, locale, grandTotal, has
marginTop: 6, width: 220, padding: '10px 12px', borderRadius: 10, zIndex: 100,
background: 'var(--bg-card)', border: '1px solid var(--border-faint)',
boxShadow: '0 4px 16px rgba(0,0,0,0.12)',
- fontSize: 'calc(11px * var(--fs-scale-caption, 1))', fontWeight: 400, color: 'var(--text-secondary)', lineHeight: 1.5, textAlign: 'left',
+ fontSize: 'calc(11px * var(--fs-scale-caption, 1))', fontWeight: 400, color: 'var(--text-secondary)', lineHeight: 1.5, textAlign: 'start',
}}>
{t('budget.settlementInfo')}
</div>
@@ -126,7 +127,7 @@ export default function BudgetSummary({ theme, currency, locale, grandTotal, has
{fmt(flow.amount, currency)}
</span>
<div style={{ width: '100%', height: 2, borderRadius: 2, background: 'linear-gradient(90deg, rgba(239,68,68,0.1), rgba(239,68,68,0.55), rgba(239,68,68,0.3))', position: 'relative' }}>
- <div style={{ position: 'absolute', right: -1, top: '50%', transform: 'translateY(-50%)', width: 0, height: 0, borderLeft: '6px solid rgba(239,68,68,0.55)', borderTop: '4px solid transparent', borderBottom: '4px solid transparent' }} />
+ <div style={{ position: 'absolute', insetInlineEnd: -1, top: '50%', transform: 'translateY(-50%)', width: 0, height: 0, borderInlineStart: '6px solid rgba(239,68,68,0.55)', borderTop: '4px solid transparent', borderBottom: '4px solid transparent' }} />
</div>
</div>
<RingAvatar userId={flow.to.user_id} username={flow.to.username} avatarUrl={flow.to.avatar_url} size={32} innerBg={theme.centerBg} textColor={theme.text} />
@@ -232,7 +233,7 @@ export default function BudgetSummary({ theme, currency, locale, grandTotal, has
</svg>
<div style={{ position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)', textAlign: 'center', display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 2, pointerEvents: 'none' }}>
<div style={{ fontSize: 'calc(10.5px * var(--fs-scale-caption, 1))', color: theme.faint, textTransform: 'uppercase', letterSpacing: '0.12em', fontWeight: 700 }}>{t('budget.total')}</div>
- <div style={{ fontSize: 'calc(22px * var(--fs-scale-title, 1))', fontWeight: 700, letterSpacing: '-0.03em', lineHeight: 1, display: 'flex', alignItems: 'baseline', gap: 2 }}>
+ <div dir="ltr" style={{ fontSize: 'calc(22px * var(--fs-scale-title, 1))', fontWeight: 700, letterSpacing: '-0.03em', lineHeight: 1, display: 'flex', alignItems: 'baseline', gap: 2 }}>
<span>{totalInt}</span>
{totalDec && <span style={{ fontSize: 'calc(13px * var(--fs-scale-body, 1))', fontWeight: 500, color: theme.sub }}>{decimalSep}{totalDec}</span>}
</div>
diff --git a/client/src/components/Budget/CostsPanel.tsx b/client/src/components/Budget/CostsPanel.tsx
index 40da87cbb..fefdbceb6 100644
--- a/client/src/components/Budget/CostsPanel.tsx
+++ b/client/src/components/Budget/CostsPanel.tsx
@@ -390,7 +390,7 @@ export default function CostsPanel({ tripId, tripMembers = [] }: CostsPanelProps
<div className="flex min-h-[48px] items-center gap-2 border-b border-edge-faint px-4 py-2.5" style={{ background: NEUTRAL_TINT }}>
<span className={EYEBROW} style={fs(11)}>{label}</span>
{extra}
- {action && <span className="ml-auto">{action}</span>}
+ {action && <span className="ms-auto">{action}</span>}
</div>
)
const labelCls = 'text-[11px] font-semibold uppercase tracking-[0.12em] text-content-faint'
@@ -403,7 +403,8 @@ export default function CostsPanel({ tripId, tripMembers = [] }: CostsPanelProps
parts = new Intl.NumberFormat(currencyLocale(base), { style: 'currency', currency: base, minimumFractionDigits: d, maximumFractionDigits: d }).formatToParts(amount || 0)
} catch { return <>{formatMoney(amount, base, locale)}</> }
const isBig = (p: Intl.NumberFormatPart) => p.type === 'integer' || p.type === 'group' || p.type === 'minusSign'
- return <>{parts.map((p, i) => <span key={i} style={isBig(p) ? undefined : { fontSize: smallSize, fontWeight: 500, color: mutedColor }}>{p.value}</span>)}</>
+ // One left-to-right box: the parts are spans, which a right-to-left flex row would reorder.
+ return <span dir="ltr" className="inline-flex items-baseline">{parts.map((p, i) => <span key={i} style={isBig(p) ? undefined : { fontSize: smallSize, fontWeight: 500, color: mutedColor }}>{p.value}</span>)}</span>
}
// ── category + day filter controls (shared by both layouts) ──────────────
@@ -498,7 +499,7 @@ export default function CostsPanel({ tripId, tripMembers = [] }: CostsPanelProps
<div className="mb-3 flex items-center gap-2 px-0.5">
<span className={EYEBROW} style={fs(11)}>{g.day}</span>
<CountPill>{g.entries.length}</CountPill>
- <span className="ml-auto rounded-full bg-surface-tertiary px-2.5 py-[3px] font-geist font-semibold tabular-nums text-content-secondary" style={fs(11.5)}>{t('costs.spent', { amount: fmt(dtot) })}</span>
+ <span className="ms-auto rounded-full bg-surface-tertiary px-2.5 py-[3px] font-geist font-semibold tabular-nums text-content-secondary" style={fs(11.5)}>{t('costs.spent', { amount: fmt(dtot) })}</span>
</div>
)}
<div style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>
@@ -651,8 +652,8 @@ export default function CostsPanel({ tripId, tripMembers = [] }: CostsPanelProps
<div style={{ fontSize: 'calc(11.5px * var(--fs-scale-caption, 1))', textTransform: 'uppercase', letterSpacing: '0.12em', color: 'rgba(255,255,255,0.6)', fontWeight: 600 }}>{t('costs.totalSpend')}</div>
<div style={{ fontSize: 'calc(44px * var(--fs-scale-title, 1))', fontWeight: 700, letterSpacing: '-0.04em', lineHeight: 1, marginTop: 8, display: 'flex', alignItems: 'baseline' }}>{bigMoney(totals.totalSpend, 24, 'rgba(255,255,255,0.6)')}</div>
<div style={{ display: 'flex', gap: 18, marginTop: 12, fontSize: 'calc(12px * var(--fs-scale-body, 1))', color: 'rgba(255,255,255,0.6)', flexWrap: 'wrap' }}>
- <span>{t('costs.yourShare')} <b style={{ color: '#fff', fontWeight: 600, marginLeft: 4 }}>{fmt0(totals.myShare)}</b></span>
- <span>{t('costs.youPaid')} <b style={{ color: '#fff', fontWeight: 600, marginLeft: 4 }}>{fmt0(totals.myPaid)}</b></span>
+ <span>{t('costs.yourShare')} <b style={{ color: '#fff', fontWeight: 600, marginInlineStart: 4 }}>{fmt0(totals.myShare)}</b></span>
+ <span>{t('costs.youPaid')} <b style={{ color: '#fff', fontWeight: 600, marginInlineStart: 4 }}>{fmt0(totals.myPaid)}</b></span>
</div>
{canEdit && (
<button type="button" onClick={() => { setEditing(null); setModalOpen(true) }} style={{ marginTop: 16, width: '100%', display: 'flex', alignItems: 'center', justifyContent: 'center', gap: 8, background: 'rgba(255,255,255,0.14)', border: '1px solid rgba(255,255,255,0.16)', color: '#fff', padding: 13, borderRadius: 14, fontSize: 'calc(14px * var(--fs-scale-body, 1))', fontWeight: 600, cursor: 'pointer', fontFamily: 'inherit' }}>
@@ -692,7 +693,7 @@ export default function CostsPanel({ tripId, tripMembers = [] }: CostsPanelProps
<div className="text-content" style={{ fontSize: 'calc(12.5px * var(--fs-scale-body, 1))', fontWeight: 600 }}>{t('costs.outstanding')}</div>
<div className="text-content-faint" style={{ fontSize: 'calc(10.5px * var(--fs-scale-caption, 1))' }}>{t('costs.outstandingSub')}</div>
</div>
- <div style={{ marginLeft: 'auto', fontSize: 'calc(27px * var(--fs-scale-title, 1))', fontWeight: 700, letterSpacing: '-0.03em', lineHeight: 1, display: 'flex', alignItems: 'baseline', color: '#d97706' }}>{bigMoney(totals.outstanding, 16, 'var(--c-ink3)')}</div>
+ <div style={{ marginInlineStart: 'auto', fontSize: 'calc(27px * var(--fs-scale-title, 1))', fontWeight: 700, letterSpacing: '-0.03em', lineHeight: 1, display: 'flex', alignItems: 'baseline', color: '#d97706' }}>{bigMoney(totals.outstanding, 16, 'var(--c-ink3)')}</div>
</div>
</div>
@@ -739,7 +740,7 @@ export default function CostsPanel({ tripId, tripMembers = [] }: CostsPanelProps
const dtot = g.entries.reduce((a, en) => en.kind === 'expense' ? a + baseTotal(en.e) : a, 0)
return (
<div key={g.day} style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>
- {!dayFilter && <div className={labelCls} style={{ display: 'flex', alignItems: 'center', padding: '0 2px' }}>{g.day}<span className="text-content-muted" style={{ marginLeft: 'auto', textTransform: 'none', letterSpacing: 0, fontWeight: 500, fontSize: 'calc(11.5px * var(--fs-scale-caption, 1))' }}>{t('costs.spent', { amount: fmt(dtot) })}</span></div>}
+ {!dayFilter && <div className={labelCls} style={{ display: 'flex', alignItems: 'center', padding: '0 2px' }}>{g.day}<span className="text-content-muted" style={{ marginInlineStart: 'auto', textTransform: 'none', letterSpacing: 0, fontWeight: 500, fontSize: 'calc(11.5px * var(--fs-scale-caption, 1))' }}>{t('costs.spent', { amount: fmt(dtot) })}</span></div>}
<div style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>{g.entries.map(en => en.kind === 'expense'
? <Fragment key={'e' + en.e.id}>{ExpenseRow({ e: en.e })}</Fragment>
: <Fragment key={'s' + en.s.id}>{SettlementRow({ s: en.s })}</Fragment>)}</div>
@@ -819,7 +820,7 @@ export default function CostsPanel({ tripId, tripMembers = [] }: CostsPanelProps
{/* The category rides the card edge as a tab, the way the mobile card
does, so it stops taking up a slot inside the row itself. */}
{!isMobile && (
- <span aria-hidden="true" style={{ position: 'absolute', left: -1, top: -1, display: 'inline-flex', alignItems: 'center', gap: 5, padding: '3px 11px 4px 10px', borderRadius: '17px 0 12px 0', background: c.color, color: '#fff', fontSize: 'calc(9.5px * var(--fs-scale-caption, 1))', fontWeight: 800, letterSpacing: '0.05em', textTransform: 'uppercase', lineHeight: 1.2 }}>
+ <span aria-hidden="true" style={{ position: 'absolute', insetInlineStart: -1, top: -1, display: 'inline-flex', alignItems: 'center', gap: 5, padding: '3px 11px 4px 10px', borderStartStartRadius: 17, borderEndEndRadius: 12, background: c.color, color: '#fff', fontSize: 'calc(9.5px * var(--fs-scale-caption, 1))', fontWeight: 800, letterSpacing: '0.05em', textTransform: 'uppercase', lineHeight: 1.2 }}>
<Icon size={10} strokeWidth={2.4} />
{t(c.labelKey)}
</span>
@@ -829,7 +830,7 @@ export default function CostsPanel({ tripId, tripMembers = [] }: CostsPanelProps
<Icon size={21} />
{isMobile && unfinished && (
<Tooltip label={t('costs.unfinishedHint')}>
- <span role="img" aria-label={t('costs.unfinishedHint')} style={{ position: 'absolute', bottom: -4, right: -4, width: 20, height: 20, borderRadius: '50%', background: '#d97706', color: '#fff', display: 'grid', placeItems: 'center', fontSize: 'calc(12px * var(--fs-scale-body, 1))', fontWeight: 800, lineHeight: 1, border: '2px solid var(--bg-card)' }}>!</span>
+ <span role="img" aria-label={t('costs.unfinishedHint')} style={{ position: 'absolute', bottom: -4, insetInlineEnd: -4, width: 20, height: 20, borderRadius: '50%', background: '#d97706', color: '#fff', display: 'grid', placeItems: 'center', fontSize: 'calc(12px * var(--fs-scale-body, 1))', fontWeight: 800, lineHeight: 1, border: '2px solid var(--bg-card)' }}>!</span>
</Tooltip>
)}
</span>
@@ -886,7 +887,7 @@ export default function CostsPanel({ tripId, tripMembers = [] }: CostsPanelProps
<div style={{ display: 'flex', flexWrap: 'wrap', gap: 5, marginTop: 6 }}>
{payers.map(p => (
<Tooltip key={p.user_id} label={personName(p.user_id)}>
- <span className="bg-surface-card border border-edge-faint" style={{ display: 'inline-flex', alignItems: 'center', gap: 6, padding: '3px 10px 3px 3px', borderRadius: 999, fontSize: 'calc(11.5px * var(--fs-scale-caption, 1))' }}>
+ <span className="bg-surface-card border border-edge-faint" style={{ display: 'inline-flex', alignItems: 'center', gap: 6, paddingBlock: 3, paddingInline: '3px 10px', borderRadius: 999, fontSize: 'calc(11.5px * var(--fs-scale-caption, 1))' }}>
<Avatar id={p.user_id} size={18} />
<span className="text-content" style={{ fontWeight: 700 }}>{fmt(booked(p.amount, e))}</span>
</span>
@@ -929,12 +930,12 @@ export default function CostsPanel({ tripId, tripMembers = [] }: CostsPanelProps
const chip = 'inline-flex items-center gap-[5px] rounded-full bg-surface-tertiary text-content-secondary'
return (
<div style={{ display: 'flex', flexWrap: 'wrap', alignItems: 'center', gap: 5, marginTop: 6 }}>
- <span className="text-content-faint" style={{ fontSize: 'calc(10px * var(--fs-scale-caption, 1))', fontWeight: 700, letterSpacing: '0.08em', textTransform: 'uppercase', marginRight: 2 }}>{t('costs.split')}</span>
+ <span className="text-content-faint" style={{ fontSize: 'calc(10px * var(--fs-scale-caption, 1))', fontWeight: 700, letterSpacing: '0.08em', textTransform: 'uppercase', marginInlineEnd: 2 }}>{t('costs.split')}</span>
{shown.map(m => {
const share = fmt(shareOf(e, m.user_id))
return (
<Tooltip key={m.user_id} label={t('costs.splitChipLabel', { name: personName(m.user_id), amount: share })}>
- <span className={chip} data-testid="split-chip" style={{ padding: '2px 8px 2px 2px', fontSize: 'calc(11px * var(--fs-scale-caption, 1))' }}>
+ <span className={chip} data-testid="split-chip" style={{ paddingBlock: 2, paddingInline: '2px 8px', fontSize: 'calc(11px * var(--fs-scale-caption, 1))' }}>
<Avatar id={m.user_id} size={16} />
<span style={{ fontWeight: 600, fontVariantNumeric: 'tabular-nums' }}>{share}</span>
{m.paid ? <Check size={11} strokeWidth={2.6} className="text-success" aria-label={t('costs.paid')} /> : null}
@@ -960,7 +961,7 @@ export default function CostsPanel({ tripId, tripMembers = [] }: CostsPanelProps
<button type="button" onClick={() => setExpandedNoteId(open ? null : noteKey)}
aria-expanded={open}
className="bg-surface-card border border-edge-faint text-content-muted hover:text-content hover:border-content-faint transition-colors exp-note-btn"
- style={{ display: 'flex', alignItems: open ? 'flex-start' : 'center', gap: 9, minWidth: 0, width: '100%', padding: open ? '10px 14px 11px 13px' : '7px 12px 7px 11px', borderRadius: open ? 14 : 999, borderLeft: '3px solid ' + color, cursor: 'pointer', fontFamily: 'inherit', fontSize: 'calc(12.5px * var(--fs-scale-body, 1))', lineHeight: 1.5, textAlign: 'left' }}>
+ style={{ display: 'flex', alignItems: open ? 'flex-start' : 'center', gap: 9, minWidth: 0, width: '100%', padding: open ? '10px 14px 11px 13px' : '7px 12px 7px 11px', borderRadius: open ? 14 : 999, borderInlineStart: '3px solid ' + color, cursor: 'pointer', fontFamily: 'inherit', fontSize: 'calc(12.5px * var(--fs-scale-body, 1))', lineHeight: 1.5, textAlign: 'start' }}>
<span style={open
? { whiteSpace: 'pre-wrap', overflowWrap: 'anywhere', minWidth: 0, flex: 1 }
: { whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', minWidth: 0, flex: 1 }}>{note}</span>
@@ -984,7 +985,7 @@ export default function CostsPanel({ tripId, tripMembers = [] }: CostsPanelProps
<div style={{ minWidth: 0 }}>
<div className="text-content" style={{ fontSize: 'calc(15px * var(--fs-scale-subtitle, 1))', fontWeight: 600, marginBottom: 6 }}>
{t('costs.payment')}
- {line && <span className="text-content-faint" style={{ fontWeight: 400, fontSize: 'calc(12px * var(--fs-scale-body, 1))', marginLeft: 10 }}>{fmt(line.entered.amount, line.entered.currency)} → {fmt(line.into.amount, line.into.currency)}</span>}
+ {line && <span className="text-content-faint" style={{ fontWeight: 400, fontSize: 'calc(12px * var(--fs-scale-body, 1))', marginInlineStart: 10 }}>{fmt(line.entered.amount, line.entered.currency)} → {fmt(line.into.amount, line.into.currency)}</span>}
</div>
<Tooltip label={`${personName(s.from_user_id)} → ${personName(s.to_user_id)}`}>
<div style={{ display: 'flex', alignItems: 'center', gap: 7, minWidth: 0 }}>
@@ -1034,7 +1035,7 @@ export default function CostsPanel({ tripId, tripMembers = [] }: CostsPanelProps
{neg && <span style={{ position: 'absolute', right: '50%', top: 0, bottom: 0, width: pct / 2 + '%', background: '#dc2626', borderRadius: 3 }} />}
</div>
</div>
- <div style={{ fontSize: 'calc(13px * var(--fs-scale-body, 1))', fontWeight: 600, textAlign: 'right', color: pos ? '#16a34a' : neg ? '#dc2626' : 'var(--text-faint)' }}>
+ <div style={{ fontSize: 'calc(13px * var(--fs-scale-body, 1))', fontWeight: 600, textAlign: 'end', color: pos ? '#16a34a' : neg ? '#dc2626' : 'var(--text-faint)' }}>
{pos ? '+' + fmt(r.balance) : neg ? '−' + fmt(-r.balance) : fmt(0)}
</div>
</div>
@@ -1066,7 +1067,7 @@ export default function CostsPanel({ tripId, tripMembers = [] }: CostsPanelProps
<div key={r.user_id}>
<button type="button" onClick={() => setExpandedFinalId(open ? null : r.user_id)} aria-expanded={open}
className="text-content"
- style={{ display: 'grid', gridTemplateColumns: '28px 1fr auto 14px', gap: 10, alignItems: 'center', width: '100%', padding: '7px 0', background: 'none', border: 0, cursor: 'pointer', fontFamily: 'inherit', textAlign: 'left' }}>
+ style={{ display: 'grid', gridTemplateColumns: '28px 1fr auto 14px', gap: 10, alignItems: 'center', width: '100%', padding: '7px 0', background: 'none', border: 0, cursor: 'pointer', fontFamily: 'inherit', textAlign: 'start' }}>
<Avatar id={r.user_id} size={28} />
<span style={{ fontSize: 'calc(13px * var(--fs-scale-body, 1))', fontWeight: 600, minWidth: 0, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>{personName(r.user_id)}</span>
<span style={{ fontSize: 'calc(13px * var(--fs-scale-body, 1))', fontWeight: 700 }}>{fmt(r.final)}</span>
@@ -1123,7 +1124,7 @@ export default function CostsPanel({ tripId, tripMembers = [] }: CostsPanelProps
return (
<div key={r.item_id} style={lineCls}>
<span className="text-content-muted" style={{ minWidth: 0, flex: 1, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>
- {r.name}{entered && <span className="text-content-faint" style={{ marginLeft: 8 }}>{entered}</span>}
+ {r.name}{entered && <span className="text-content-faint" style={{ marginInlineStart: 8 }}>{entered}</span>}
</span>
<span className="text-content" style={{ whiteSpace: 'nowrap' }}>{signed(r.amount)}</span>
</div>
@@ -1239,7 +1240,7 @@ function FlowPills({ ids, lead, Avatar, name }: { ids: number[]; lead: string; A
<span style={{ display: 'inline-flex', alignItems: 'center', gap: 6, flexWrap: 'wrap' }}>
<span className="text-content-faint">{lead}</span>
{uniq.map(id => (
- <span key={id} className="bg-surface-secondary border border-edge text-content" style={{ display: 'inline-flex', alignItems: 'center', gap: 5, padding: '3px 10px 3px 3px', borderRadius: 999, fontSize: 'calc(12px * var(--fs-scale-body, 1))', fontWeight: 600 }}>
+ <span key={id} className="bg-surface-secondary border border-edge text-content" style={{ display: 'inline-flex', alignItems: 'center', gap: 5, paddingBlock: 3, paddingInline: '3px 10px', borderRadius: 999, fontSize: 'calc(12px * var(--fs-scale-body, 1))', fontWeight: 600 }}>
<Avatar id={id} size={18} />{name(id)}
</span>
))}
@@ -1329,7 +1330,7 @@ function SettlementModal({ tripId, people, me, editing, currency, tripCurrency,
{/* Typed and shown the way the expense total is, in the reader's own decimal mark. */}
<NumericInput mode="decimal" placeholder={localizeAmountInput('0.00', cur)} value={localizeAmountInput(amount, cur)}
onValueChange={v => setAmount(v.replace(',', '.'))}
- className="w-full flex-1 border-0 bg-transparent pl-1.5 font-semibold text-content outline-none dark:bg-transparent" style={fs(14, 'body')} />
+ className="w-full flex-1 border-0 bg-transparent ps-1.5 font-semibold text-content outline-none dark:bg-transparent" style={fs(14, 'body')} />
</div>
</EditorField>
<EditorField label={t('costs.currency')}>
@@ -1694,7 +1695,7 @@ export function ExpenseModal({ tripId, base, people, me, editing, prefill, onClo
const PERSON_LIST = 'divide-y divide-edge-faint overflow-hidden rounded-[12px] border border-edge-faint bg-surface-card'
const PERSON_ROW = 'grid min-h-[48px] grid-cols-[minmax(0,1fr)_130px] items-center gap-2.5 px-3 py-1.5'
const AMOUNT_BOX = 'flex items-center gap-1 rounded-[8px] border border-edge bg-surface-input px-2.5'
- const AMOUNT_INPUT = 'w-full border-0 bg-transparent py-2 text-right font-semibold text-content outline-none dark:bg-transparent'
+ const AMOUNT_INPUT = 'w-full border-0 bg-transparent py-2 text-end font-semibold text-content outline-none dark:bg-transparent'
const nameOf = (p: TripMember) => (p.id === me ? t('costs.you') : p.username)
// Who is in, shown as a real box to tick instead of a row that only fades.
@@ -1741,7 +1742,7 @@ export function ExpenseModal({ tripId, base, people, me, editing, prefill, onClo
const on = payerId === p.id
return (
<button key={p.id} type="button" role="radio" aria-checked={on} aria-label={nameOf(p)} onClick={() => setPayerId(p.id)}
- className={`inline-flex items-center gap-2 rounded-full border py-1 pl-1 pr-3 font-medium ${on ? 'border-[color:var(--text-primary)] bg-surface-card text-content shadow-sm' : 'border-edge-faint bg-surface-secondary text-content-muted hover:text-content'}`}
+ className={`inline-flex items-center gap-2 rounded-full border py-1 ps-1 pe-3 font-medium ${on ? 'border-[color:var(--text-primary)] bg-surface-card text-content shadow-sm' : 'border-edge-faint bg-surface-secondary text-content-muted hover:text-content'}`}
style={fs(13, 'body')}>
{personFace(p, idx, true, 22)}
{nameOf(p)}
@@ -1763,7 +1764,7 @@ export function ExpenseModal({ tripId, base, people, me, editing, prefill, onClo
return (
<div key={p.id} className={PERSON_ROW}>
<button type="button" role="checkbox" aria-checked={on} aria-label={nameOf(p)} onClick={() => togglePayer(p.id)} data-testid="payer-toggle"
- className="inline-flex min-w-0 items-center gap-2.5 text-left">
+ className="inline-flex min-w-0 items-center gap-2.5 text-start">
{tick(on)}
{personFace(p, idx, on)}
{personName(p, on)}
@@ -1852,7 +1853,7 @@ export function ExpenseModal({ tripId, base, people, me, editing, prefill, onClo
</div>
<div className="flex flex-wrap items-center gap-1.5">
- <span className="mr-1 font-geist font-bold uppercase tracking-[.08em] text-content-faint" style={fs(9.5)}>{t('costs.ticketSplitting')}</span>
+ <span className="me-1 font-geist font-bold uppercase tracking-[.08em] text-content-faint" style={fs(9.5)}>{t('costs.ticketSplitting')}</span>
{people.map((p, pIdx) => {
const active = item.participants.has(p.id)
return (
@@ -1862,7 +1863,7 @@ export function ExpenseModal({ tripId, base, people, me, editing, prefill, onClo
role="checkbox"
aria-checked={active}
onClick={() => handleToggleItemParticipant(item.id, p.id)}
- className={`inline-flex items-center gap-1.5 rounded-full border py-[3px] pl-1 pr-2 font-medium ${active ? 'border-[color:var(--text-primary)] bg-surface-card text-content' : 'border-edge bg-surface-secondary text-content-faint'}`}
+ className={`inline-flex items-center gap-1.5 rounded-full border py-[3px] ps-1 pe-2 font-medium ${active ? 'border-[color:var(--text-primary)] bg-surface-card text-content' : 'border-edge bg-surface-secondary text-content-faint'}`}
style={fs(11.5)}
>
{personFace(p, pIdx, active, 16)}
@@ -1897,14 +1898,14 @@ export function ExpenseModal({ tripId, base, people, me, editing, prefill, onClo
return (
<div key={p.id} className={PERSON_ROW}>
<button type="button" role="checkbox" aria-checked={on} aria-label={nameOf(p)} onClick={() => toggleParticipant(p.id)}
- className="inline-flex min-w-0 items-center gap-2.5 text-left">
+ className="inline-flex min-w-0 items-center gap-2.5 text-start">
{tick(on)}
{personFace(p, idx, on)}
{personName(p, on)}
{p.is_guest && <GuestBadge size="xs" customTooltip />}
</button>
{!on ? excludedNote : splitMode === 'equally' ? (
- <span className="text-right">{badge(money(equalShares[p.id] || 0))}</span>
+ <span className="text-end">{badge(money(equalShares[p.id] || 0))}</span>
) : inPercent ? (
<div className="flex flex-col items-end gap-0.5">
<div className={`${AMOUNT_BOX} w-full`}>
@@ -1981,7 +1982,7 @@ export function ExpenseModal({ tripId, base, people, me, editing, prefill, onClo
{receipts.map((r, rIdx) => (
<div key={r.id} className={receiptRow}>
<button type="button" onClick={() => setModalPreviewReceipts({ receipts, initialIndex: rIdx })}
- className="inline-flex min-w-0 items-center gap-2 text-left text-content hover:underline" style={fs(13, 'body')}>
+ className="inline-flex min-w-0 items-center gap-2 text-start text-content hover:underline" style={fs(13, 'body')}>
<Receipt size={14} className="flex-shrink-0 text-content-faint" />
<span className="truncate">{r.original_name}</span>
</button>
@@ -2052,7 +2053,7 @@ export function ExpenseModal({ tripId, base, people, me, editing, prefill, onClo
onValueChange={onTotalChange}
signToggleLabel={t('costs.toggleSign')}
disabled={isTicketMode}
- className="w-full flex-1 border-0 bg-transparent pl-1.5 font-semibold text-content outline-none dark:bg-transparent" style={fs(15, 'subtitle')} />
+ className="w-full flex-1 border-0 bg-transparent ps-1.5 font-semibold text-content outline-none dark:bg-transparent" style={fs(15, 'subtitle')} />
</div>
</EditorField>
<EditorField label={t('costs.currency')}>
diff --git a/client/src/components/Budget/CostsTable.tsx b/client/src/components/Budget/CostsTable.tsx
index 850b50f63..324a88d76 100644
--- a/client/src/components/Budget/CostsTable.tsx
+++ b/client/src/components/Budget/CostsTable.tsx
@@ -107,7 +107,7 @@ export default function CostsTable(p: CostsTableProps) {
</colgroup>
<thead>
<tr className="border-b border-edge-faint bg-surface-tertiary" style={fs(10)}>
- <th scope="col" className={`${HEAD_BASE} text-left`}>{t('budget.table.name')}</th>
+ <th scope="col" className={`${HEAD_BASE} text-start`}>{t('budget.table.name')}</th>
<th scope="col" className={HEAD}>{t('budget.table.date')}</th>
<th scope="col" className={HEAD}>{t('budget.table.total')}</th>
<th scope="col" className={HEAD}>{t('budget.table.persons')}</th>
@@ -124,9 +124,9 @@ export default function CostsTable(p: CostsTableProps) {
return (
<tbody key={meta.key}>
<tr className="border-t border-edge-faint" style={{ background: tintOf(meta.color, 9) }}>
- <th scope="rowgroup" colSpan={2} className="px-2 py-2 text-left font-normal">
+ <th scope="rowgroup" colSpan={2} className="px-2 py-2 text-start font-normal">
<button type="button" onClick={() => toggle(meta.key)} aria-expanded={open}
- className="inline-flex items-center gap-2.5 rounded-[10px] py-0.5 pl-1 pr-2 hover:bg-surface-card">
+ className="inline-flex items-center gap-2.5 rounded-[10px] py-0.5 ps-1 pe-2 hover:bg-surface-card">
<ChevronDown size={14} strokeWidth={2.2} className={`text-content-faint transition-transform ${open ? '' : '-rotate-90'}`} />
<span className="grid h-7 w-7 place-items-center rounded-[9px] bg-surface-card shadow-sm">
<meta.Icon size={14} strokeWidth={2.2} style={{ color: meta.color }} />
@@ -147,7 +147,7 @@ export default function CostsTable(p: CostsTableProps) {
<tr className="border-t border-edge-faint">
<td colSpan={9} className="px-3 py-1.5">
<button type="button" onClick={() => void add(meta.key)}
- className="inline-flex items-center gap-2 rounded-full py-1 pl-1 pr-3 font-medium text-content-muted hover:bg-surface-hover hover:text-content"
+ className="inline-flex items-center gap-2 rounded-full py-1 ps-1 pe-3 font-medium text-content-muted hover:bg-surface-hover hover:text-content"
style={fs(12, 'body')}>
<span className="grid h-5 w-5 place-items-center rounded-full bg-surface-card shadow-sm ring-1 ring-edge-faint"><Plus size={12} strokeWidth={2.4} /></span>
{t('costs.addExpense')}
@@ -160,9 +160,9 @@ export default function CostsTable(p: CostsTableProps) {
})}
<tfoot>
<tr className="border-t border-edge" style={{ background: NEUTRAL_TINT }}>
- <th scope="row" colSpan={2} className="px-3 py-3 text-left font-geist font-bold uppercase tracking-[.08em] text-content-muted" style={fs(10.5)}>
+ <th scope="row" colSpan={2} className="px-3 py-3 text-start font-geist font-bold uppercase tracking-[.08em] text-content-muted" style={fs(10.5)}>
{t('budget.total')}
- <span className="ml-2 rounded-full bg-surface-card px-2 py-px font-normal normal-case tracking-normal text-content-muted shadow-sm" style={fs(10.5)}>{p.items.length}</span>
+ <span className="ms-2 rounded-full bg-surface-card px-2 py-px font-normal normal-case tracking-normal text-content-muted shadow-sm" style={fs(10.5)}>{p.items.length}</span>
</th>
<td className="px-3 py-3 text-center">
<span className="inline-flex rounded-full bg-accent px-3 py-1 font-geist font-bold tabular-nums text-accent-text" style={fs(13, 'body')}>{p.fmt(grandTotal)}</span>
@@ -201,7 +201,7 @@ function Row({ e, p, editing, setEditing, numFmt }: {
return (
<tr className="group border-t border-edge-faint hover:bg-surface-hover">
- <td className="px-3 py-2 text-left">
+ <td className="px-3 py-2 text-start">
<EditCell label={t('budget.table.name')} text={e.name} canEdit={p.canEdit} editing={isEditing('name')} onEdit={() => setEditing({ id: e.id, field: 'name' })}
display={<span className="block truncate font-medium">{e.name}</span>}
input={<TextInput value={e.name} onSave={v => { if (v.trim()) save({ name: v.trim() }); else setEditing(null) }} onCancel={() => setEditing(null)} label={t('budget.table.name')} />} />
diff --git a/client/src/components/Budget/CostsToolbar.tsx b/client/src/components/Budget/CostsToolbar.tsx
index 3b84b72c0..d829ca8f1 100644
--- a/client/src/components/Budget/CostsToolbar.tsx
+++ b/client/src/components/Budget/CostsToolbar.tsx
@@ -64,7 +64,7 @@ export default function CostsToolbar({ dateMeta, people, me, colorFor, canEdit,
const button = 'inline-flex h-9 items-center gap-1.5 rounded-[10px] border-0 px-3.5 font-medium hover:opacity-[0.88]'
return (
- <div className="mb-4 flex flex-wrap items-center gap-2.5 rounded-[18px] bg-surface-tertiary py-3 pl-[22px] pr-3">
+ <div className="mb-4 flex flex-wrap items-center gap-2.5 rounded-[18px] bg-surface-tertiary py-3 ps-[22px] pe-3">
<h2 className="m-0 shrink-0 text-subtitle font-semibold tracking-[-0.01em] text-content">{t('trip.tabs.budget')}</h2>
<div className="mx-1.5 h-[22px] w-px shrink-0 bg-edge-faint" />
<div className="flex min-w-0 flex-1 flex-wrap items-center gap-1.5" style={{ fontSize: BODY_SIZE }}>
@@ -76,10 +76,10 @@ export default function CostsToolbar({ dateMeta, people, me, colorFor, canEdit,
<b className="text-content">{t('costs.daysCount', { count: dateMeta.days })}</b>
</span>
)}
- <span className={`${chip} gap-2 pl-1.5`}>
+ <span className={`${chip} gap-2 ps-1.5`}>
<span className="inline-flex">
{people.slice(0, 4).map((p, i) => {
- const ring = { width: 22, height: 22, marginLeft: i ? -8 : 0 }
+ const ring = { width: 22, height: 22, marginInlineStart: i ? -8 : 0 }
return p.avatar_url
? <img key={p.id} src={p.avatar_url} alt="" className="block shrink-0 rounded-full border-2 border-surface-card object-cover" style={ring} />
: (
@@ -178,11 +178,11 @@ function FilterMenu(f: CostsFilterProps) {
<Tooltip label={t('reservations.filter')}>
<button type="button" onClick={() => setOpen(o => !o)} aria-expanded={open} aria-label={t('reservations.filter')} className={`${BAR_BTN} ${active ? 'text-content' : ''}`}>
<Filter size={15} strokeWidth={2} />
- {active > 0 && <span className="absolute -right-1 -top-1 grid h-4 min-w-4 place-items-center rounded-full bg-accent px-1 font-geist font-bold text-accent-text" style={{ fontSize: 'calc(9px * var(--fs-scale-caption, 1))' }}>{active}</span>}
+ {active > 0 && <span className="absolute -end-1 -top-1 grid h-4 min-w-4 place-items-center rounded-full bg-accent px-1 font-geist font-bold text-accent-text" style={{ fontSize: 'calc(9px * var(--fs-scale-caption, 1))' }}>{active}</span>}
</button>
</Tooltip>
{open && (
- <div role="menu" onKeyDown={e => { if (e.key === 'Escape') close() }} className="absolute right-0 top-11 z-30" style={{ ...POPOVER, width: 310 }}>
+ <div role="menu" onKeyDown={e => { if (e.key === 'Escape') close() }} className="absolute end-0 top-11 z-30" style={{ ...POPOVER, width: 310 }}>
<div className="mx-1.5 mb-1 mt-1.5 flex rounded-[10px] bg-surface-tertiary p-[3px]">
{owners.map(([o, label]) => (
<button key={o} type="button" onClick={() => f.onOwner(o)} aria-pressed={f.owner === o}
diff --git a/client/src/components/Budget/ReceiptPreviewModal.tsx b/client/src/components/Budget/ReceiptPreviewModal.tsx
index 351c2afec..d90e8001d 100644
--- a/client/src/components/Budget/ReceiptPreviewModal.tsx
+++ b/client/src/components/Budget/ReceiptPreviewModal.tsx
@@ -244,7 +244,7 @@ export function ReceiptPreviewModal({ receipts, initialIndex = 0, onClose }: Rec
style={{
fontSize: 'calc(10px * var(--fs-scale-caption, 1))',
opacity: active ? 0.8 : 0.5,
- marginLeft: 2,
+ marginInlineStart: 2,
}}
>
#{i + 1}
diff --git a/client/src/components/Collab/CollabChat.tsx b/client/src/components/Collab/CollabChat.tsx
index 7044e8ab0..3aa3342c6 100644
--- a/client/src/components/Collab/CollabChat.tsx
+++ b/client/src/components/Collab/CollabChat.tsx
@@ -27,13 +27,13 @@ export default function CollabChat({ tripId, currentUser }: CollabChatProps) {
<div ref={containerRef} style={{ display: 'flex', flexDirection: 'column', flex: 1, overflow: 'hidden', position: 'relative', minHeight: 0, height: '100%' }}>
<ChatMessages {...S} />
{/* Composer */}
- <div onDragOver={e => e.preventDefault()} onDrop={handleDrop} style={{ flexShrink: 0, paddingTop: 8, paddingLeft: 12, paddingRight: 12, borderTop: '1px solid var(--border-faint)' }} className="pb-3 bg-surface-card">
+ <div onDragOver={e => e.preventDefault()} onDrop={handleDrop} style={{ flexShrink: 0, paddingTop: 8, paddingInline: 12, borderTop: '1px solid var(--border-faint)' }} className="pb-3 bg-surface-card">
{/* Reply preview */}
{replyTo && (
<div style={{
display: 'flex', alignItems: 'center', gap: 8, marginBottom: 8,
padding: '6px 10px', borderRadius: 10, background: 'var(--bg-secondary)',
- borderLeft: '3px solid var(--accent)', fontSize: 'calc(12px * var(--fs-scale-body, 1))', color: 'var(--text-muted)',
+ borderInlineStart: '3px solid var(--accent)', fontSize: 'calc(12px * var(--fs-scale-body, 1))', color: 'var(--text-muted)',
}}>
<Reply size={12} style={{ flexShrink: 0, opacity: 0.5 }} />
<span style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', flex: 1 }}>
@@ -48,7 +48,7 @@ export default function CollabChat({ tripId, currentUser }: CollabChatProps) {
</div>
)}
- {imagePreviews.length > 0 && <div style={{ display: 'flex', gap: 8, marginBottom: 8, overflowX: 'auto' }}>{imagePreviews.map((url, i) => <div key={url} style={{ position: 'relative' }}><img src={url} alt="" style={{ width: 56, height: 56, objectFit: 'cover', borderRadius: 8 }} /><button type="button" onClick={() => removeImage(i)} aria-label={t('places.removeImage')} style={{ position: 'absolute', top: -6, right: -6, border: 0, borderRadius: '50%', background: 'var(--text-primary)', color: 'var(--bg-primary)', width: 18, height: 18, cursor: 'pointer' }}>×</button></div>)}</div>}
+ {imagePreviews.length > 0 && <div style={{ display: 'flex', gap: 8, marginBottom: 8, overflowX: 'auto' }}>{imagePreviews.map((url, i) => <div key={url} style={{ position: 'relative' }}><img src={url} alt="" style={{ width: 56, height: 56, objectFit: 'cover', borderRadius: 8 }} /><button type="button" onClick={() => removeImage(i)} aria-label={t('places.removeImage')} style={{ position: 'absolute', top: -6, insetInlineEnd: -6, border: 0, borderRadius: '50%', background: 'var(--text-primary)', color: 'var(--bg-primary)', width: 18, height: 18, cursor: 'pointer' }}>×</button></div>)}</div>}
{uploadProgress > 0 && uploadProgress < 100 && <div style={{ fontSize: 11, color: 'var(--text-muted)', marginBottom: 4 }}>{t('collab.chat.uploading', { percent: uploadProgress })}</div>}
<div style={{ display: 'flex', alignItems: 'flex-end', gap: 6 }}>
{/* Emoji button */}
diff --git a/client/src/components/Collab/CollabChatAttachment.tsx b/client/src/components/Collab/CollabChatAttachment.tsx
index f6036fa2e..64b6ba150 100644
--- a/client/src/components/Collab/CollabChatAttachment.tsx
+++ b/client/src/components/Collab/CollabChatAttachment.tsx
@@ -8,6 +8,6 @@ export function CollabChatAttachment({ attachment }: { attachment: { url: string
const alt = attachment.original_name || t('collab.chat.attachedImage')
return <>
<img src={attachment.url} alt={alt} onClick={() => setOpen(true)} style={{ display: 'block', width: 180, maxWidth: '100%', maxHeight: 220, objectFit: 'cover', borderRadius: 10, cursor: 'zoom-in', marginTop: 4 }} />
- {open && <div role="dialog" onClick={() => setOpen(false)} style={{ position: 'fixed', inset: 0, zIndex: 1000, background: 'rgba(0,0,0,.82)', display: 'flex', alignItems: 'center', justifyContent: 'center', padding: 24 }}><button aria-label={t('collab.chat.closeImage')} onClick={() => setOpen(false)} style={{ position: 'fixed', top: 18, right: 18, background: 'rgba(255,255,255,.15)', color: '#fff', border: 0, borderRadius: '50%', width: 36, height: 36 }}><X size={20} /></button><img src={attachment.url} alt={alt} onClick={e => e.stopPropagation()} style={{ maxWidth: '95vw', maxHeight: '90vh', objectFit: 'contain' }} /></div>}
+ {open && <div role="dialog" onClick={() => setOpen(false)} style={{ position: 'fixed', inset: 0, zIndex: 1000, background: 'rgba(0,0,0,.82)', display: 'flex', alignItems: 'center', justifyContent: 'center', padding: 24 }}><button aria-label={t('collab.chat.closeImage')} onClick={() => setOpen(false)} style={{ position: 'fixed', top: 18, insetInlineEnd: 18, background: 'rgba(255,255,255,.15)', color: '#fff', border: 0, borderRadius: '50%', width: 36, height: 36 }}><X size={20} /></button><img src={attachment.url} alt={alt} onClick={e => e.stopPropagation()} style={{ maxWidth: '95vw', maxHeight: '90vh', objectFit: 'contain' }} /></div>}
</>
}
diff --git a/client/src/components/Collab/CollabChatMessages.test.tsx b/client/src/components/Collab/CollabChatMessages.test.tsx
index 83a923c70..1eb04fd38 100644
--- a/client/src/components/Collab/CollabChatMessages.test.tsx
+++ b/client/src/components/Collab/CollabChatMessages.test.tsx
@@ -129,8 +129,8 @@ describe('ChatMessages', () => {
])
const first = screen.getByText('first').closest('div[style]')!
const last = screen.getByText('second').closest('div[style]')!
- expect(first.getAttribute('style')).toContain('border-radius: 18px 18px 18px 18px')
- expect(last.getAttribute('style')).toContain('border-radius: 18px 18px 4px 18px')
+ expect(first.getAttribute('style')).toContain('border-start-start-radius: 18px; border-start-end-radius: 18px; border-end-end-radius: 18px; border-end-start-radius: 18px')
+ expect(last.getAttribute('style')).toContain('border-start-start-radius: 18px; border-start-end-radius: 18px; border-end-end-radius: 4px; border-end-start-radius: 18px')
})
it('FE-W5CCM-007: the avatar image is rendered for a foreign author who has one', () => {
diff --git a/client/src/components/Collab/CollabChatMessages.tsx b/client/src/components/Collab/CollabChatMessages.tsx
index 3ac899bc9..91001f39f 100644
--- a/client/src/components/Collab/CollabChatMessages.tsx
+++ b/client/src/components/Collab/CollabChatMessages.tsx
@@ -69,9 +69,11 @@ export function ChatMessages(props: any) {
}
// Bubble border radius — iMessage style tails
- const br = own
- ? `18px 18px ${isLastInGroup ? '4px' : '18px'} 18px`
- : `18px 18px 18px ${isLastInGroup ? '4px' : '18px'}`
+ const tail = isLastInGroup ? 4 : 18
+ const br = {
+ borderStartStartRadius: 18, borderStartEndRadius: 18,
+ borderEndEndRadius: own ? tail : 18, borderEndStartRadius: own ? 18 : tail,
+ }
return (
<React.Fragment key={msg.id}>
@@ -92,7 +94,7 @@ export function ChatMessages(props: any) {
display: 'flex', alignItems: own ? 'flex-end' : 'flex-start',
flexDirection: own ? 'row-reverse' : 'row',
gap: 6, marginTop: isNewGroup ? 10 : 1,
- paddingLeft: own ? 40 : 0, paddingRight: own ? 0 : 40,
+ paddingInlineStart: own ? 40 : 0, paddingInlineEnd: own ? 0 : 40,
transition: 'transform 0.3s ease, opacity 0.3s ease, max-height 0.3s ease',
...(deletingIds.has(msg.id) ? { transform: 'scale(0.3)', opacity: 0, maxHeight: 0, marginTop: 0, overflow: 'hidden' } : {}),
}}>
@@ -118,7 +120,7 @@ export function ChatMessages(props: any) {
<div style={{ display: 'flex', flexDirection: 'column', alignItems: own ? 'flex-end' : 'flex-start', maxWidth: '78%', minWidth: 0 }}>
{/* Username for others at group start */}
{!own && isNewGroup && (
- <span style={{ fontSize: 'calc(10px * var(--fs-scale-caption, 1))', fontWeight: 600, color: 'var(--text-faint)', marginBottom: 2, paddingLeft: 4 }}>
+ <span style={{ fontSize: 'calc(10px * var(--fs-scale-caption, 1))', fontWeight: 600, color: 'var(--text-faint)', marginBottom: 2, paddingInlineStart: 4 }}>
{msg.username}
</span>
)}
@@ -150,7 +152,7 @@ export function ChatMessages(props: any) {
background: own ? 'var(--accent)' : 'var(--bg-card)',
color: own ? 'var(--accent-text)' : 'var(--text-primary)',
border: own ? 'none' : '1px solid var(--border-faint)',
- borderRadius: br, padding: hasReply ? '4px 4px 8px 4px' : '8px 14px',
+ ...br, padding: hasReply ? '4px 4px 8px 4px' : '8px 14px',
fontSize: 'calc(14px * var(--fs-scale-body, 1))', lineHeight: 1.4, wordBreak: 'break-word', whiteSpace: 'pre-wrap',
}}>
{/* Inline reply quote */}
@@ -185,7 +187,7 @@ export function ChatMessages(props: any) {
opacity: hoveredId === msg.id ? 1 : 0,
pointerEvents: hoveredId === msg.id ? 'auto' : 'none',
transition: 'opacity .1s',
- ...(own ? { left: -6 } : { right: -6 }),
+ ...(own ? { insetInlineStart: -6 } : { insetInlineEnd: -6 }),
}}>
<Tooltip label={t('collab.chat.reply')}>
<button type="button" onClick={() => setReplyTo(msg)} aria-label={t('collab.chat.reply')} style={{
@@ -223,7 +225,7 @@ export function ChatMessages(props: any) {
<div style={{
display: 'flex', gap: 3, marginTop: -6, marginBottom: 4,
justifyContent: own ? 'flex-end' : 'flex-start',
- paddingLeft: own ? 0 : 8, paddingRight: own ? 8 : 0,
+ paddingInlineStart: own ? 0 : 8, paddingInlineEnd: own ? 8 : 0,
position: 'relative', zIndex: 1,
}}>
<div style={{
diff --git a/client/src/components/Collab/CollabNotesCard.tsx b/client/src/components/Collab/CollabNotesCard.tsx
index ce64c0bfd..662dad557 100644
--- a/client/src/components/Collab/CollabNotesCard.tsx
+++ b/client/src/components/Collab/CollabNotesCard.tsx
@@ -77,7 +77,7 @@ export function NoteCard({ note, canEdit, onUpdate, onDelete, onEdit, onView, on
// A pinned note keeps its category colour on the frame, the way a selected booking card does.
style={{ borderColor: note.pinned ? `color-mix(in srgb, ${color} 45%, transparent)` : 'var(--border-faint)' }}
>
- <div className={`flex items-center gap-2 py-1.5 pl-3 pr-1.5 ${hasBody ? 'border-b border-edge-faint' : ''}`} style={{ background: `color-mix(in srgb, ${color} 11%, transparent)` }}>
+ <div className={`flex items-center gap-2 py-1.5 ps-3 pe-1.5 ${hasBody ? 'border-b border-edge-faint' : ''}`} style={{ background: `color-mix(in srgb, ${color} 11%, transparent)` }}>
{/* The category is only its colour here; the name is in the tooltip and the filter above. */}
{note.category && (
<Tooltip label={note.category}>
diff --git a/client/src/components/Collab/CollabNotesCategorySettingsModal.tsx b/client/src/components/Collab/CollabNotesCategorySettingsModal.tsx
index 3b33b22d7..12fb6f2e4 100644
--- a/client/src/components/Collab/CollabNotesCategorySettingsModal.tsx
+++ b/client/src/components/Collab/CollabNotesCategorySettingsModal.tsx
@@ -99,7 +99,7 @@ export function CategorySettingsModal({ onClose, categories, categoryColors, onS
{allCats.map(cat => {
const current = localColors[cat] || NOTE_COLORS[0].value
return (
- <div key={cat} className="flex items-center gap-2.5 rounded-[12px] bg-surface-secondary py-1.5 pl-3 pr-1.5">
+ <div key={cat} className="flex items-center gap-2.5 rounded-[12px] bg-surface-secondary py-1.5 ps-3 pe-1.5">
<span className="h-2.5 w-2.5 flex-none rounded-full" style={{ background: current }} />
{/* Category name — editable */}
<EditableCatName name={cat} onRename={(newName) => handleRenameCategory(cat, newName)} renameLabel={t('common.rename')} />
diff --git a/client/src/components/Collab/CollabNotesEditableCatName.tsx b/client/src/components/Collab/CollabNotesEditableCatName.tsx
index 3cc99f474..65f7d58da 100644
--- a/client/src/components/Collab/CollabNotesEditableCatName.tsx
+++ b/client/src/components/Collab/CollabNotesEditableCatName.tsx
@@ -36,7 +36,7 @@ export function EditableCatName({ name, onRename, renameLabel = 'Click to rename
return (
<Tooltip label={renameLabel}>
<button type="button" onClick={() => { setValue(name); setEditing(true) }}
- className="min-w-0 flex-1 truncate py-0.5 text-left font-semibold text-content hover:underline hover:decoration-edge"
+ className="min-w-0 flex-1 truncate py-0.5 text-start font-semibold text-content hover:underline hover:decoration-edge"
style={{ fontSize: 'calc(13px * var(--fs-scale-body, 1))' }}>
{name}
</button>
diff --git a/client/src/components/Collab/CollabPanelHead.tsx b/client/src/components/Collab/CollabPanelHead.tsx
index 25c243daf..0d38d9b15 100644
--- a/client/src/components/Collab/CollabPanelHead.tsx
+++ b/client/src/components/Collab/CollabPanelHead.tsx
@@ -23,7 +23,7 @@ export default function CollabPanelHead({ icon: Icon, title, count, actions }: {
{count != null && count > 0 && (
<span className="rounded-full bg-surface-card px-2 py-[2px] font-geist font-bold text-content-muted" style={fs(10)}>{count}</span>
)}
- {actions && <div className="ml-auto flex items-center gap-1.5" style={fs(11.5)}>{actions}</div>}
+ {actions && <div className="ms-auto flex items-center gap-1.5" style={fs(11.5)}>{actions}</div>}
</div>
)
}
diff --git a/client/src/components/Collab/CollabPolls.tsx b/client/src/components/Collab/CollabPolls.tsx
index 0ee5d9afb..15a695660 100644
--- a/client/src/components/Collab/CollabPolls.tsx
+++ b/client/src/components/Collab/CollabPolls.tsx
@@ -64,10 +64,10 @@ const pollMarkdownComponents: Components = {
<h3 style={{ margin: '0 0 0.45em', fontSize: '1.1em', lineHeight: 1.3 }}>{children}</h3>
),
ul: ({ children }) => (
- <ul style={{ margin: '0 0 0.55em', paddingLeft: 20, listStyle: 'disc' }}>{children}</ul>
+ <ul style={{ margin: '0 0 0.55em', paddingInlineStart: 20, listStyle: 'disc' }}>{children}</ul>
),
ol: ({ children }) => (
- <ol style={{ margin: '0 0 0.55em', paddingLeft: 20, listStyle: 'decimal' }}>{children}</ol>
+ <ol style={{ margin: '0 0 0.55em', paddingInlineStart: 20, listStyle: 'decimal' }}>{children}</ol>
),
}
@@ -174,7 +174,7 @@ function CreatePollModal({ onClose, onCreate, t }: CreatePollModalProps) {
<span className="text-content" style={fs(13, 'body')}>{t('collab.polls.multiChoice')}</span>
<button type="button" role="switch" aria-checked={multiChoice} onClick={() => setMultiChoice(!multiChoice)}
className={`flex h-5 w-9 flex-none items-center rounded-full p-0.5 transition-colors ${multiChoice ? 'bg-accent' : 'bg-surface-tertiary'}`}>
- <span className={`block h-4 w-4 rounded-full bg-surface-card shadow-sm transition-transform ${multiChoice ? 'translate-x-4' : ''}`} />
+ <span className={`block h-4 w-4 rounded-full bg-surface-card shadow-sm transition-transform ${multiChoice ? 'translate-x-4 rtl:-translate-x-4' : ''}`} />
</button>
</label>
</DialogShell>
@@ -191,7 +191,7 @@ function VoterChip({ voter, offset }: VoterChipProps) {
return (
<Tooltip label={voter.username || '?'}>
<span className="grid h-[18px] w-[18px] flex-none place-items-center overflow-hidden rounded-full border-[1.5px] border-surface-card bg-surface-tertiary font-bold text-content-muted"
- style={{ ...fs(7), marginLeft: offset ? -5 : 0 }}>
+ style={{ ...fs(7), marginInlineStart: offset ? -5 : 0 }}>
{voter.avatar_url ? <img src={voter.avatar_url} alt={voter.username || ''} className="h-full w-full object-cover" /> : (voter.username || '?')[0].toUpperCase()}
</span>
</Tooltip>
@@ -265,7 +265,7 @@ function PollCard({ poll, currentUser, canEdit, onVote, onClose, onDelete, t }:
return (
<button type="button" key={idx} onClick={() => onVote(poll.id, idx)}
disabled={isClosed}
- className={`relative flex w-full items-start gap-2.5 overflow-hidden rounded-[10px] border bg-surface-secondary px-3 py-2.5 text-left transition-colors disabled:cursor-default ${myVote ? 'border-accent' : 'border-edge-faint enabled:hover:border-edge'}`}
+ className={`relative flex w-full items-start gap-2.5 overflow-hidden rounded-[10px] border bg-surface-secondary px-3 py-2.5 text-start transition-colors disabled:cursor-default ${myVote ? 'border-accent' : 'border-edge-faint enabled:hover:border-edge'}`}
>
{/* Progress bar background */}
<span aria-hidden="true" className="absolute inset-y-0 left-0 transition-[width] duration-500"
@@ -300,7 +300,7 @@ function PollCard({ poll, currentUser, canEdit, onVote, onClose, onDelete, t }:
{/* Percentage */}
{(hasVoted || isClosed) && (
- <span className={`relative z-[1] min-w-[32px] text-right font-geist font-bold tabular-nums ${myVote ? 'text-content' : 'text-content-muted'}`} style={fs(12, 'body')}>
+ <span className={`relative z-[1] min-w-[32px] text-end font-geist font-bold tabular-nums ${myVote ? 'text-content' : 'text-content-muted'}`} style={fs(12, 'body')}>
{pct}%
</span>
)}
diff --git a/client/src/components/Collab/WhatsNextWidget.tsx b/client/src/components/Collab/WhatsNextWidget.tsx
index cebda6fbd..466bb7a18 100644
--- a/client/src/components/Collab/WhatsNextWidget.tsx
+++ b/client/src/components/Collab/WhatsNextWidget.tsx
@@ -153,7 +153,7 @@ export default function WhatsNextWidget({ tripMembers = [] }: WhatsNextWidgetPro
{item.participants.length > 0 && (
<div className="mt-1.5 flex flex-wrap gap-1">
{item.participants.map(p => (
- <span key={p.user_id} className="flex items-center gap-1 rounded-full border border-edge-faint bg-surface-secondary py-[2px] pl-[2px] pr-2">
+ <span key={p.user_id} className="flex items-center gap-1 rounded-full border border-edge-faint bg-surface-secondary py-[2px] ps-[2px] pe-2">
<span className="grid h-4 w-4 flex-none place-items-center overflow-hidden rounded-full bg-surface-tertiary font-bold text-content-muted" style={fs(7)}>
{p.avatar
? <img src={avatarSrc(p.avatar)!} alt="" className="h-full w-full object-cover" />
diff --git a/client/src/components/Collections/AddPlaceToCollectionModal.tsx b/client/src/components/Collections/AddPlaceToCollectionModal.tsx
index 2955fb184..ce4776e08 100644
--- a/client/src/components/Collections/AddPlaceToCollectionModal.tsx
+++ b/client/src/components/Collections/AddPlaceToCollectionModal.tsx
@@ -172,7 +172,7 @@ export default function AddPlaceToCollectionModal({ isOpen, collectionId, collec
// Typed into the band, as in the planner's place dialog. It takes no focus
// on opening: the dialog starts at the search, which fills the name in.
titleInput={{ value: name, onChange: setName, label: t('common.name'), placeholder: t('common.name') }}
- sub={<><Bookmark size={11} strokeWidth={2.2} className="mr-1 inline-block align-[-1px]" />{collectionName}</>}
+ sub={<><Bookmark size={11} strokeWidth={2.2} className="me-1 inline-block align-[-1px]" />{collectionName}</>}
/>
)
@@ -198,7 +198,7 @@ export default function AddPlaceToCollectionModal({ isOpen, collectionId, collec
<div className="relative">
<div className="flex items-stretch gap-2">
<div className="relative min-w-0 flex-1">
- <Search size={14} className="pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-content-faint" aria-hidden="true" />
+ <Search size={14} className="pointer-events-none absolute start-3 top-1/2 -translate-y-1/2 text-content-faint" aria-hidden="true" />
<input
autoFocus
ref={searchRef}
@@ -208,7 +208,7 @@ export default function AddPlaceToCollectionModal({ isOpen, collectionId, collec
onKeyDown={e => { if (e.key === 'Enter') { e.preventDefault(); void search() } }}
aria-label={t('collections.addPlaceSearch')}
placeholder={t('collections.addPlaceSearch')}
- className={`${INPUT} pl-8`}
+ className={`${INPUT} ps-8`}
/>
</div>
<DialogButton
@@ -224,9 +224,9 @@ export default function AddPlaceToCollectionModal({ isOpen, collectionId, collec
<div
role="group"
aria-label={t('common.search')}
- className="absolute left-0 right-0 z-20 mt-1.5 flex max-h-[280px] flex-col gap-0.5 overflow-y-auto rounded-[12px] border border-edge-faint bg-surface-card p-1 shadow-dropdown"
+ className="absolute inset-x-0 z-20 mt-1.5 flex max-h-[280px] flex-col gap-0.5 overflow-y-auto rounded-[12px] border border-edge-faint bg-surface-card p-1 shadow-dropdown"
>
- <div className="flex items-center justify-between py-0.5 pl-2.5 pr-0.5">
+ <div className="flex items-center justify-between py-0.5 ps-2.5 pe-0.5">
<span className="font-geist font-bold uppercase tracking-[.08em] text-content-faint" style={fs(9.5)}>{t('common.search')}</span>
<Tooltip label={t('common.close')}>
<button type="button" onClick={dismissResults} aria-label={t('common.close')}
@@ -238,7 +238,7 @@ export default function AddPlaceToCollectionModal({ isOpen, collectionId, collec
{noResults ? (
<div className="px-2.5 py-3 text-center text-content-faint" style={fs(12.5, 'body')}>{t('planner.noPlacesFound')}</div>
) : results.map((r, i) => (
- <button key={i} type="button" onClick={() => pick(r)} className="flex w-full items-center gap-2.5 rounded-[8px] px-2.5 py-2 text-left hover:bg-surface-hover">
+ <button key={i} type="button" onClick={() => pick(r)} className="flex w-full items-center gap-2.5 rounded-[8px] px-2.5 py-2 text-start hover:bg-surface-hover">
<span className="grid h-8 w-8 flex-none place-items-center rounded-[9px] bg-surface-secondary text-content-faint"><MapPin size={15} /></span>
<span className="min-w-0 flex-1">
<span className="block truncate font-semibold text-content" style={fs(13, 'body')}>{str(r.name)}</span>
diff --git a/client/src/components/Collections/BulkAssignLabelModal.tsx b/client/src/components/Collections/BulkAssignLabelModal.tsx
index bba7f4d21..a3fc3e334 100644
--- a/client/src/components/Collections/BulkAssignLabelModal.tsx
+++ b/client/src/components/Collections/BulkAssignLabelModal.tsx
@@ -88,7 +88,7 @@ export default function BulkAssignLabelModal({ isOpen, labels, count, onAssign,
type="button"
aria-pressed={on}
onClick={() => toggle(l.id)}
- className={`flex min-h-[44px] items-center gap-3 rounded-[10px] px-3 py-2 text-left ${on ? 'bg-surface-card shadow-sm' : 'hover:bg-surface-card'}`}
+ className={`flex min-h-[44px] items-center gap-3 rounded-[10px] px-3 py-2 text-start ${on ? 'bg-surface-card shadow-sm' : 'hover:bg-surface-card'}`}
>
<span className="h-2.5 w-2.5 flex-none rounded-full" style={{ background: l.color || '#6366f1' }} /* theme-lint-disable: the label's own colour, and the first swatch of the label manager for one without */ />
<span className="min-w-0 flex-1 truncate font-semibold text-content" style={fs(13, 'body')}>{l.name}</span>
diff --git a/client/src/components/Collections/CollectionExportMenu.tsx b/client/src/components/Collections/CollectionExportMenu.tsx
index 1226904ba..826ad1c09 100644
--- a/client/src/components/Collections/CollectionExportMenu.tsx
+++ b/client/src/components/Collections/CollectionExportMenu.tsx
@@ -148,7 +148,7 @@ export default function CollectionExportMenu({ onExport, exporting, t }: Collect
role="menuitem"
tabIndex={-1}
onClick={() => pick(option.format)}
- className="w-full flex items-start gap-3 px-3 py-2.5 rounded-lg text-left transition-colors hover:bg-surface-hover focus:bg-surface-hover focus:outline-none"
+ className="w-full flex items-start gap-3 px-3 py-2.5 rounded-lg text-start transition-colors hover:bg-surface-hover focus:bg-surface-hover focus:outline-none"
>
<option.icon size={16} className="mt-0.5 shrink-0 text-content-faint" aria-hidden />
<span className="flex-1 min-w-0">
diff --git a/client/src/components/Collections/CollectionPicker.tsx b/client/src/components/Collections/CollectionPicker.tsx
index e79b02bc4..33b03e8b6 100644
--- a/client/src/components/Collections/CollectionPicker.tsx
+++ b/client/src/components/Collections/CollectionPicker.tsx
@@ -102,14 +102,14 @@ function FilterDropdown({ label, current, options, onSelect, lead }: {
className={`flex w-full items-center gap-1.5 rounded-full bg-surface-card px-2.5 py-1.5 font-semibold text-content shadow-sm ring-1 transition-colors hover:bg-surface-hover ${open ? 'ring-content-faint' : 'ring-edge-faint'}`}
style={fs(12, 'body')}>
<span className="flex flex-none text-content-faint">{cur.icon ?? lead}</span>
- <span id={valueId} className="min-w-0 flex-1 truncate text-left">{cur.label}</span>
+ <span id={valueId} className="min-w-0 flex-1 truncate text-start">{cur.label}</span>
<ChevronDown size={13} strokeWidth={2.2} className={`flex-none text-content-faint transition-transform ${open ? 'rotate-180' : ''}`} />
</button>
{open && (
- <div role="listbox" aria-label={label} className="absolute left-0 right-0 top-full z-30 mt-1 flex max-h-[240px] flex-col gap-0.5 overflow-y-auto rounded-[12px] border border-edge-faint bg-surface-card p-1 shadow-dropdown">
+ <div role="listbox" aria-label={label} className="absolute inset-x-0 top-full z-30 mt-1 flex max-h-[240px] flex-col gap-0.5 overflow-y-auto rounded-[12px] border border-edge-faint bg-surface-card p-1 shadow-dropdown">
{options.map(o => (
<button key={o.key} type="button" role="option" aria-selected={o.key === current} onClick={() => { onSelect(o.key); setOpen(false) }}
- className={`flex items-center gap-2 rounded-[8px] px-2 py-1.5 text-left transition-colors hover:bg-surface-hover ${o.key === current ? 'bg-surface-tertiary font-semibold text-content' : 'text-content-secondary'}`}
+ className={`flex items-center gap-2 rounded-[8px] px-2 py-1.5 text-start transition-colors hover:bg-surface-hover ${o.key === current ? 'bg-surface-tertiary font-semibold text-content' : 'text-content-secondary'}`}
style={fs(12.5, 'body')}>
<span className="flex flex-none text-content-faint">{o.icon}</span>
<span className="min-w-0 flex-1 truncate">{o.label}</span>
@@ -209,7 +209,7 @@ export default function CollectionPicker({ bias, onSelect, t }: CollectionPicker
<div className="flex flex-none flex-col gap-2 px-3 pb-2.5">
<EditorField label={t('common.search')} htmlFor={searchId}>
<div className="relative">
- <Search size={14} className="pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-content-faint" aria-hidden="true" />
+ <Search size={14} className="pointer-events-none absolute start-3 top-1/2 -translate-y-1/2 text-content-faint" aria-hidden="true" />
<input
id={searchId}
type="text"
@@ -218,7 +218,7 @@ export default function CollectionPicker({ bias, onSelect, t }: CollectionPicker
// Named after what it searches: the form beside it has a search of its own.
aria-label={t('collections.picker.search')}
placeholder={t('collections.picker.search')}
- className={`${INPUT} pl-8`}
+ className={`${INPUT} ps-8`}
/>
</div>
</EditorField>
@@ -247,7 +247,7 @@ export default function CollectionPicker({ bias, onSelect, t }: CollectionPicker
key={place.id}
type="button"
onClick={() => onSelect(place)}
- className="group flex w-full items-center gap-2.5 rounded-[12px] px-2 py-2 text-left outline-none transition-colors hover:bg-surface-card hover:shadow-sm focus-visible:bg-surface-card focus-visible:ring-2 focus-visible:ring-[color:var(--text-primary)] active:bg-surface-selected"
+ className="group flex w-full items-center gap-2.5 rounded-[12px] px-2 py-2 text-start outline-none transition-colors hover:bg-surface-card hover:shadow-sm focus-visible:bg-surface-card focus-visible:ring-2 focus-visible:ring-[color:var(--text-primary)] active:bg-surface-selected"
>
<PlaceAvatar place={place} size={34} category={place.category ? { color: place.category.color ?? undefined, icon: place.category.icon ?? undefined } : null} />
<span className="flex min-w-0 flex-1 flex-col">
diff --git a/client/src/components/Collections/CollectionPlaceDetail.test.tsx b/client/src/components/Collections/CollectionPlaceDetail.test.tsx
index 7b65ecf81..499a0223c 100644
--- a/client/src/components/Collections/CollectionPlaceDetail.test.tsx
+++ b/client/src/components/Collections/CollectionPlaceDetail.test.tsx
@@ -673,7 +673,7 @@ describe('CollectionPlaceDetail: cover controls', () => {
expect(controls.querySelectorAll('button')).toHaveLength(3);
// Chip first, controls last in one flex bar: the chip only gets what the buttons leave.
expect(Array.from(bar.children)).toEqual([chip, controls]);
- expect(bar).toHaveClass('absolute', 'flex', 'left-[14px]', 'right-[12px]', 'top-[12px]');
+ expect(bar).toHaveClass('absolute', 'flex', 'start-[14px]', 'end-[12px]', 'top-[12px]');
expect(controls).toHaveClass('ms-auto', 'flex-none');
expect(chip).toHaveClass('min-w-0');
expect(text).toHaveClass('truncate');
diff --git a/client/src/components/Collections/CollectionPlaceDetail.tsx b/client/src/components/Collections/CollectionPlaceDetail.tsx
index db1fdbec2..426a82519 100644
--- a/client/src/components/Collections/CollectionPlaceDetail.tsx
+++ b/client/src/components/Collections/CollectionPlaceDetail.tsx
@@ -183,7 +183,7 @@ export default function CollectionPlaceDetail({
{/* Chip and cover controls share the top bar. The controls keep the end and
never shrink, so a long category name ellipsizes instead of sliding under
them, however many buttons there are and whatever size phones give them. */}
- <div className="absolute left-[14px] right-[12px] top-[12px] z-[2] flex items-center gap-[8px]">
+ <div className="absolute start-[14px] end-[12px] top-[12px] z-[2] flex items-center gap-[8px]">
{place.category?.name && (
<span className="col-detail-cover-cat min-w-0" style={{ ['--cat' as string]: place.category.color || '#6366f1' }}>
<CatIcon size={12} className="flex-none" />
diff --git a/client/src/components/Collections/CopyToTripModal.tsx b/client/src/components/Collections/CopyToTripModal.tsx
index 3cf6ad7b8..47eeccaca 100644
--- a/client/src/components/Collections/CopyToTripModal.tsx
+++ b/client/src/components/Collections/CopyToTripModal.tsx
@@ -115,14 +115,14 @@ export default function CopyToTripModal({ isOpen, onClose, placeIds, onCopy, t }
)}
>
<div className="relative">
- <Search size={14} className="pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-content-faint" aria-hidden="true" />
+ <Search size={14} className="pointer-events-none absolute start-3 top-1/2 -translate-y-1/2 text-content-faint" aria-hidden="true" />
<input
autoFocus
value={search}
onChange={e => setSearch(e.target.value)}
placeholder={t('collections.copyToTripSearch')}
aria-label={t('collections.copyToTripSearch')}
- className={`${INPUT} pl-8`}
+ className={`${INPUT} ps-8`}
/>
</div>
{loading ? (
@@ -142,7 +142,7 @@ export default function CopyToTripModal({ isOpen, onClose, placeIds, onCopy, t }
type="button"
onClick={() => handleCopy(trip.id)}
disabled={busy}
- className="flex min-h-[52px] items-center gap-3 rounded-[10px] px-2.5 py-2 text-left hover:bg-surface-card disabled:opacity-60"
+ className="flex min-h-[52px] items-center gap-3 rounded-[10px] px-2.5 py-2 text-start hover:bg-surface-card disabled:opacity-60"
>
<span className="grid h-9 w-9 flex-none place-items-center overflow-hidden rounded-[9px] bg-surface-tertiary text-content-faint">
{trip.cover_image ? <img src={trip.cover_image} alt="" className="h-full w-full object-cover" /> : <MapPin size={15} />}
diff --git a/client/src/components/Collections/ImportCollectionModal.tsx b/client/src/components/Collections/ImportCollectionModal.tsx
index 1e3290e3b..49fa38ba4 100644
--- a/client/src/components/Collections/ImportCollectionModal.tsx
+++ b/client/src/components/Collections/ImportCollectionModal.tsx
@@ -82,7 +82,7 @@ function TargetCard({ active, icon: Icon, title, hint, onClick }: {
type="button"
onClick={onClick}
aria-pressed={active}
- className={`relative flex flex-col items-start gap-1.5 rounded-[14px] border p-3 text-left transition-colors ${
+ className={`relative flex flex-col items-start gap-1.5 rounded-[14px] border p-3 text-start transition-colors ${
active ? 'border-accent bg-surface-card shadow-sm' : 'border-edge-faint bg-surface-secondary hover:bg-surface-card'
}`}
>
@@ -92,7 +92,7 @@ function TargetCard({ active, icon: Icon, title, hint, onClick }: {
<span className="font-semibold text-content" style={fs(13, 'body')}>{title}</span>
<span className="leading-snug text-content-faint" style={fs(11.5)}>{hint}</span>
{active && (
- <span className="absolute right-2 top-2 grid h-4 w-4 place-items-center rounded-full bg-accent text-accent-text">
+ <span className="absolute end-2 top-2 grid h-4 w-4 place-items-center rounded-full bg-accent text-accent-text">
<Check size={11} strokeWidth={3} />
</span>
)}
@@ -117,13 +117,13 @@ function ListChoice({ lists, selectedId, onSelect, t }: {
<div className="flex flex-col gap-2">
{lists.length > 5 && (
<div className="relative">
- <Search size={14} className="pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-content-faint" aria-hidden="true" />
+ <Search size={14} className="pointer-events-none absolute start-3 top-1/2 -translate-y-1/2 text-content-faint" aria-hidden="true" />
<input
value={search}
onChange={e => setSearch(e.target.value)}
aria-label={t('collections.file.searchLists')}
placeholder={t('collections.file.searchLists')}
- className={`${INPUT} pl-8`}
+ className={`${INPUT} ps-8`}
/>
</div>
)}
@@ -136,7 +136,7 @@ function ListChoice({ lists, selectedId, onSelect, t }: {
type="button"
onClick={() => onSelect(list.id)}
aria-pressed={active}
- className={`flex min-h-[46px] items-center gap-3 rounded-[10px] px-2.5 py-2 text-left ${active ? 'bg-surface-card shadow-sm' : 'hover:bg-surface-card'}`}
+ className={`flex min-h-[46px] items-center gap-3 rounded-[10px] px-2.5 py-2 text-start ${active ? 'bg-surface-card shadow-sm' : 'hover:bg-surface-card'}`}
>
<span className="grid h-8 w-8 flex-none place-items-center rounded-[9px]" style={swatch(list.color)}>
<Bookmark size={15} />
diff --git a/client/src/components/Collections/ImportFromTripModal.tsx b/client/src/components/Collections/ImportFromTripModal.tsx
index 142a2fae8..df2663f13 100644
--- a/client/src/components/Collections/ImportFromTripModal.tsx
+++ b/client/src/components/Collections/ImportFromTripModal.tsx
@@ -210,7 +210,7 @@ export default function ImportFromTripModal({ isOpen, collectionId, collectionNa
footer = (
<DialogFooter>
<DialogButton onClick={() => setStep('trip')} icon={<ArrowLeft size={14} strokeWidth={2.2} />}>{t('common.back')}</DialogButton>
- <span className="ml-1 text-content-faint" style={fs(12.5, 'body')}>
+ <span className="ms-1 text-content-faint" style={fs(12.5, 'body')}>
{t('collections.importSelectedCount', { count: selected.size })}
</span>
<FooterSpacer />
@@ -255,7 +255,7 @@ export default function ImportFromTripModal({ isOpen, collectionId, collectionNa
key={tr.id}
type="button"
onClick={() => pickTrip(tr)}
- className="group flex w-full items-center gap-3 rounded-[14px] border border-edge-faint bg-surface-secondary p-2.5 text-left transition-colors hover:bg-surface-card hover:shadow-sm"
+ className="group flex w-full items-center gap-3 rounded-[14px] border border-edge-faint bg-surface-secondary p-2.5 text-start transition-colors hover:bg-surface-card hover:shadow-sm"
>
<span className="grid h-[42px] w-[42px] flex-none place-items-center overflow-hidden rounded-[11px] bg-surface-tertiary text-content-faint">
{tr.cover_image
@@ -291,14 +291,14 @@ export default function ImportFromTripModal({ isOpen, collectionId, collectionNa
<>
<div className={STICKY_BAR}>
<div className="relative min-w-[150px] flex-1">
- <Search size={14} className="pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-content-faint" aria-hidden="true" />
+ <Search size={14} className="pointer-events-none absolute start-3 top-1/2 -translate-y-1/2 text-content-faint" aria-hidden="true" />
<input
type="text"
value={query}
onChange={e => setQuery(e.target.value)}
placeholder={t('collections.importSearchPlaces')}
aria-label={t('collections.importSearchPlaces')}
- className={`${INPUT} pl-8`}
+ className={`${INPUT} ps-8`}
/>
</div>
{savedCount > 0 && (
@@ -349,7 +349,7 @@ export default function ImportFromTripModal({ isOpen, collectionId, collectionNa
onClick={() => !dup && toggle(p.place_id)}
disabled={dup}
aria-pressed={dup ? undefined : on}
- className={`flex min-h-[48px] w-full items-center gap-3 rounded-[10px] px-2.5 py-1.5 text-left disabled:cursor-default disabled:opacity-50 ${on ? 'bg-surface-card shadow-sm' : 'enabled:hover:bg-surface-card'}`}
+ className={`flex min-h-[48px] w-full items-center gap-3 rounded-[10px] px-2.5 py-1.5 text-start disabled:cursor-default disabled:opacity-50 ${on ? 'bg-surface-card shadow-sm' : 'enabled:hover:bg-surface-card'}`}
>
<span className={`grid h-4 w-4 flex-none place-items-center rounded-[5px] ${dup ? 'invisible' : on ? 'bg-accent text-accent-text' : 'border-[1.5px] border-edge'}`}>
{on && <Check size={11} strokeWidth={3} />}
diff --git a/client/src/components/Collections/LabelManager.tsx b/client/src/components/Collections/LabelManager.tsx
index 56fd53430..d9a7bac72 100644
--- a/client/src/components/Collections/LabelManager.tsx
+++ b/client/src/components/Collections/LabelManager.tsx
@@ -69,7 +69,7 @@ function LabelRow({ label, onUpdate, onDelete, t }: {
}
return (
- <div className="flex items-center gap-2.5 rounded-[12px] bg-surface-secondary py-1.5 pl-3 pr-1.5">
+ <div className="flex items-center gap-2.5 rounded-[12px] bg-surface-secondary py-1.5 ps-3 pe-1.5">
<span className="h-2.5 w-2.5 flex-none rounded-full" style={{ background: color }} />
{/* Transparent on the row until pointed at or typed in; the dark: variants
outrank the global dark rule that paints every input. */}
@@ -79,7 +79,7 @@ function LabelRow({ label, onUpdate, onDelete, t }: {
onBlur={commitName}
onKeyDown={e => { if (e.key === 'Enter') (e.target as HTMLInputElement).blur() }}
maxLength={60}
- className="-ml-1.5 min-w-0 flex-1 rounded-[8px] border-0 bg-transparent px-1.5 py-1 font-semibold text-content outline-none hover:bg-surface-card focus:bg-surface-card focus:shadow-sm dark:bg-transparent dark:hover:bg-surface-card dark:focus:bg-surface-card"
+ className="-ms-1.5 min-w-0 flex-1 rounded-[8px] border-0 bg-transparent px-1.5 py-1 font-semibold text-content outline-none hover:bg-surface-card focus:bg-surface-card focus:shadow-sm dark:bg-transparent dark:hover:bg-surface-card dark:focus:bg-surface-card"
style={fs(13, 'body')}
aria-label={t('collections.labels.name')}
/>
diff --git a/client/src/components/Collections/MSaveToCollectionSheet.tsx b/client/src/components/Collections/MSaveToCollectionSheet.tsx
index 9d99d6924..520ddacb3 100644
--- a/client/src/components/Collections/MSaveToCollectionSheet.tsx
+++ b/client/src/components/Collections/MSaveToCollectionSheet.tsx
@@ -200,7 +200,7 @@ export default function MSaveToCollectionSheet() {
type="button"
onClick={() => handleToggle(list)}
disabled={busyId != null}
- className={`mt-2 flex w-full items-center gap-[11px] rounded-[14px] border px-3 py-[10px] text-left disabled:opacity-60 ${
+ className={`mt-2 flex w-full items-center gap-[11px] rounded-[14px] border px-3 py-[10px] text-start disabled:opacity-60 ${
saved
? 'border-[color:var(--m-act)] bg-[color:var(--m-inner)]'
: 'border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)]'
diff --git a/client/src/components/Collections/MoveToListModal.tsx b/client/src/components/Collections/MoveToListModal.tsx
index 7bdba1b32..2162a5163 100644
--- a/client/src/components/Collections/MoveToListModal.tsx
+++ b/client/src/components/Collections/MoveToListModal.tsx
@@ -65,14 +65,14 @@ export default function MoveToListModal({ mode, lists, count, onPick, onClose, t
>
{lists.length > 3 && (
<div className="relative">
- <Search size={14} className="pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-content-faint" aria-hidden="true" />
+ <Search size={14} className="pointer-events-none absolute start-3 top-1/2 -translate-y-1/2 text-content-faint" aria-hidden="true" />
<input
autoFocus
value={search}
onChange={e => setSearch(e.target.value)}
placeholder={t('collections.copyToTripSearch')}
aria-label={t('collections.copyToTripSearch')}
- className={`${INPUT} pl-8`}
+ className={`${INPUT} ps-8`}
/>
</div>
)}
@@ -88,7 +88,7 @@ export default function MoveToListModal({ mode, lists, count, onPick, onClose, t
type="button"
onClick={() => pick(list.id)}
disabled={busy != null}
- className="flex min-h-[48px] items-center gap-3 rounded-[10px] px-3 py-2 text-left hover:bg-surface-card disabled:opacity-60"
+ className="flex min-h-[48px] items-center gap-3 rounded-[10px] px-3 py-2 text-start hover:bg-surface-card disabled:opacity-60"
>
<span className="h-2.5 w-2.5 flex-none rounded-full" style={{ background: list.color || '#6366f1' }} /* theme-lint-disable: the list's own colour, and the default a list without one is drawn in (ListsRail) */ />
<span className="min-w-0 flex-1">
diff --git a/client/src/components/Collections/SaveToCollectionModal.tsx b/client/src/components/Collections/SaveToCollectionModal.tsx
index 2f1d686cf..b3334aaba 100644
--- a/client/src/components/Collections/SaveToCollectionModal.tsx
+++ b/client/src/components/Collections/SaveToCollectionModal.tsx
@@ -205,7 +205,7 @@ export default function SaveToCollectionModal(): React.ReactElement | null {
aria-pressed={saved}
onClick={() => handleToggle(list)}
disabled={busyId != null}
- className={`flex min-h-[46px] items-center gap-3 rounded-[10px] px-3 py-2 text-left disabled:opacity-60 ${saved ? 'bg-surface-card shadow-sm' : 'hover:bg-surface-card'}`}
+ className={`flex min-h-[46px] items-center gap-3 rounded-[10px] px-3 py-2 text-start disabled:opacity-60 ${saved ? 'bg-surface-card shadow-sm' : 'hover:bg-surface-card'}`}
>
<span className="h-2.5 w-2.5 flex-none rounded-full" style={{ background: list.color || 'var(--accent)' }} />
<span className="min-w-0 flex-1 truncate font-semibold text-content" style={fs(13, 'body')}>{list.name}</span>
diff --git a/client/src/components/Collections/SaveTripPlacesToListModal.tsx b/client/src/components/Collections/SaveTripPlacesToListModal.tsx
index 5f8dcb9b3..256ce48f7 100644
--- a/client/src/components/Collections/SaveTripPlacesToListModal.tsx
+++ b/client/src/components/Collections/SaveTripPlacesToListModal.tsx
@@ -94,14 +94,14 @@ export default function SaveTripPlacesToListModal({ isOpen, tripId, placeIds, on
>
{lists.length > 5 && (
<div className="relative">
- <Search size={14} className="pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-content-faint" aria-hidden="true" />
+ <Search size={14} className="pointer-events-none absolute start-3 top-1/2 -translate-y-1/2 text-content-faint" aria-hidden="true" />
<input
autoFocus
value={search}
onChange={e => setSearch(e.target.value)}
placeholder={t('collections.searchLists')}
aria-label={t('collections.searchLists')}
- className={`${INPUT} pl-8`}
+ className={`${INPUT} ps-8`}
/>
</div>
)}
@@ -119,7 +119,7 @@ export default function SaveTripPlacesToListModal({ isOpen, tripId, placeIds, on
type="button"
onClick={() => pick(list)}
disabled={busyId != null}
- className="flex min-h-[48px] items-center gap-3 rounded-[10px] px-3 py-2 text-left hover:bg-surface-card disabled:opacity-60"
+ className="flex min-h-[48px] items-center gap-3 rounded-[10px] px-3 py-2 text-start hover:bg-surface-card disabled:opacity-60"
>
<span className="h-2.5 w-2.5 flex-none rounded-full" style={{ background: list.color || '#6366f1' }} /* theme-lint-disable: the list's own colour, and the default a list without one is drawn in (ListsRail) */ />
<span className="min-w-0 flex-1">
diff --git a/client/src/components/Collections/ShareCollectionModal.tsx b/client/src/components/Collections/ShareCollectionModal.tsx
index d11cf07bc..9573ca507 100644
--- a/client/src/components/Collections/ShareCollectionModal.tsx
+++ b/client/src/components/Collections/ShareCollectionModal.tsx
@@ -274,7 +274,7 @@ export default function ShareCollectionModal({
<div className="min-w-0 flex-1">
<div className="truncate font-semibold text-content" style={fs(13, 'body')}>
{member.username}
- {isSelf && <span className="ml-1 font-normal text-content-faint">({t('collections.share.you')})</span>}
+ {isSelf && <span className="ms-1 font-normal text-content-faint">({t('collections.share.you')})</span>}
</div>
{member.email && !pending && (
<div className="truncate text-content-faint" style={fs(11.5)}>{member.email}</div>
diff --git a/client/src/components/Dawarich/DawarichAtlasDialog.tsx b/client/src/components/Dawarich/DawarichAtlasDialog.tsx
index b450af282..6f9159959 100644
--- a/client/src/components/Dawarich/DawarichAtlasDialog.tsx
+++ b/client/src/components/Dawarich/DawarichAtlasDialog.tsx
@@ -537,7 +537,7 @@ function Row({
aria-label={name}
disabled={disabled}
onClick={onToggle}
- className={`flex w-full items-center gap-3 rounded-xl border p-2.5 text-left transition-colors ${
+ className={`flex w-full items-center gap-3 rounded-xl border p-2.5 text-start transition-colors ${
checked ? 'border-accent bg-accent-subtle' : 'border-edge hover:bg-surface-hover'
} ${disabled ? 'opacity-60' : ''}`}
>
diff --git a/client/src/components/Dawarich/DawarichSuggestionsPanel.tsx b/client/src/components/Dawarich/DawarichSuggestionsPanel.tsx
index 503b699d9..9622f5bff 100644
--- a/client/src/components/Dawarich/DawarichSuggestionsPanel.tsx
+++ b/client/src/components/Dawarich/DawarichSuggestionsPanel.tsx
@@ -146,7 +146,7 @@ export default function DawarichSuggestionsPanel({
type="button"
onClick={() => setCollapsed(value => !value)}
aria-expanded={!collapsed}
- className={`w-full flex items-center gap-2.5 px-3.5 py-2.5 text-left ${
+ className={`w-full flex items-center gap-2.5 px-3.5 py-2.5 text-start ${
phone ? 'active:bg-[color:var(--m-inner)]' : 'hover:bg-surface-hover'
}`}
>
@@ -229,7 +229,7 @@ export default function DawarichSuggestionsPanel({
<button
type="button"
onClick={() => setShowHandled(value => !value)}
- className={`w-full px-3.5 py-2 text-left ${
+ className={`w-full px-3.5 py-2 text-start ${
phone ? 'text-m-muted active:bg-[color:var(--m-inner)]' : 'text-content-muted hover:bg-surface-hover'
}`}
style={TYPE.meta}
diff --git a/client/src/components/Files/FileManagerAssignModal.tsx b/client/src/components/Files/FileManagerAssignModal.tsx
index 326467bfa..a515288c8 100644
--- a/client/src/components/Files/FileManagerAssignModal.tsx
+++ b/client/src/components/Files/FileManagerAssignModal.tsx
@@ -84,7 +84,7 @@ export function AssignModal(S: FileManagerState) {
}
}
}} style={{
- width: '100%', textAlign: 'left', padding: '6px 10px 6px 20px', background: isLinked ? 'var(--bg-hover)' : 'none',
+ width: '100%', textAlign: 'start', paddingBlock: 6, paddingInlineEnd: 10, paddingInlineStart: 20, background: isLinked ? 'var(--bg-hover)' : 'none',
border: 'none', cursor: 'pointer', fontSize: 'calc(13px * var(--fs-scale-body, 1))', color: 'var(--text-primary)',
borderRadius: 8, fontFamily: 'inherit', fontWeight: isLinked ? 600 : 400,
display: 'flex', alignItems: 'center', gap: 6,
@@ -93,7 +93,7 @@ export function AssignModal(S: FileManagerState) {
onMouseLeave={e => e.currentTarget.style.background = isLinked ? 'var(--bg-hover)' : 'transparent'}>
<MapPin size={12} style={{ flexShrink: 0, color: 'var(--text-muted)' }} />
<span style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>{p.name}</span>
- {isLinked && <Check size={14} style={{ marginLeft: 'auto', flexShrink: 0, color: 'var(--accent)' }} />}
+ {isLinked && <Check size={14} style={{ marginInlineStart: 'auto', flexShrink: 0, color: 'var(--accent)' }} />}
</button>
)
}
@@ -159,7 +159,7 @@ export function AssignModal(S: FileManagerState) {
}
}
}} style={{
- width: '100%', textAlign: 'left', padding: '6px 10px 6px 20px', background: isLinked ? 'var(--bg-hover)' : 'none',
+ width: '100%', textAlign: 'start', paddingBlock: 6, paddingInlineEnd: 10, paddingInlineStart: 20, background: isLinked ? 'var(--bg-hover)' : 'none',
border: 'none', cursor: 'pointer', fontSize: 'calc(13px * var(--fs-scale-body, 1))', color: 'var(--text-primary)',
borderRadius: 8, fontFamily: 'inherit', fontWeight: isLinked ? 600 : 400,
display: 'flex', alignItems: 'center', gap: 6,
@@ -168,7 +168,7 @@ export function AssignModal(S: FileManagerState) {
onMouseLeave={e => e.currentTarget.style.background = isLinked ? 'var(--bg-hover)' : 'transparent'}>
<Icon size={12} style={{ flexShrink: 0, color: 'var(--text-muted)' }} />
<span style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>{r.title}</span>
- {isLinked && <Check size={14} style={{ marginLeft: 'auto', flexShrink: 0, color: 'var(--accent)' }} />}
+ {isLinked && <Check size={14} style={{ marginInlineStart: 'auto', flexShrink: 0, color: 'var(--accent)' }} />}
</button>
)
}
@@ -197,10 +197,10 @@ export function AssignModal(S: FileManagerState) {
const hasBoth = placesSection && bookingsSection
return (
<div className={hasBoth ? 'md:flex' : ''}>
- <div className={hasBoth ? 'md:w-1/2' : ''} style={{ overflowY: 'auto', maxHeight: '55vh', paddingRight: hasBoth ? 6 : 0 }}>{placesSection}</div>
+ <div className={hasBoth ? 'md:w-1/2' : ''} style={{ overflowY: 'auto', maxHeight: '55vh', paddingInlineEnd: hasBoth ? 6 : 0 }}>{placesSection}</div>
{hasBoth && <div className="hidden md:block" style={{ width: 1, background: 'var(--border-primary)', flexShrink: 0 }} />}
{hasBoth && <div className="block md:hidden" style={{ height: 1, background: 'var(--border-primary)', margin: '8px 0' }} />}
- <div className={hasBoth ? 'md:w-1/2' : ''} style={{ overflowY: 'auto', maxHeight: '55vh', paddingLeft: hasBoth ? 6 : 0 }}>{bookingsSection}</div>
+ <div className={hasBoth ? 'md:w-1/2' : ''} style={{ overflowY: 'auto', maxHeight: '55vh', paddingInlineStart: hasBoth ? 6 : 0 }}>{bookingsSection}</div>
</div>
)
})()}
diff --git a/client/src/components/Files/FileManagerFilesView.tsx b/client/src/components/Files/FileManagerFilesView.tsx
index 3456a7037..987a95387 100644
--- a/client/src/components/Files/FileManagerFilesView.tsx
+++ b/client/src/components/Files/FileManagerFilesView.tsx
@@ -55,7 +55,7 @@ export function FilesView(S: FileManagerState) {
fontWeight: filterType === tab.id ? 600 : 400,
}}>{tab.icon ? <tab.icon size={13} fill={filterType === tab.id ? '#facc15' : 'none'} color={filterType === tab.id ? '#facc15' : 'currentColor'} /> : tab.label}</button>
))}
- <span style={{ marginLeft: 'auto', fontSize: 'calc(11.5px * var(--fs-scale-caption, 1))', color: 'var(--text-faint)', alignSelf: 'center' }}>
+ <span style={{ marginInlineStart: 'auto', fontSize: 'calc(11.5px * var(--fs-scale-caption, 1))', color: 'var(--text-faint)', alignSelf: 'center' }}>
{t('files.count', { count: filteredFiles.length })}
</span>
</div>
diff --git a/client/src/components/Files/FileManagerImageLightbox.tsx b/client/src/components/Files/FileManagerImageLightbox.tsx
index e66b6dee4..9ad8a2646 100644
--- a/client/src/components/Files/FileManagerImageLightbox.tsx
+++ b/client/src/components/Files/FileManagerImageLightbox.tsx
@@ -95,7 +95,7 @@ export function ImageLightbox({ files, initialIndex, onClose }: ImageLightboxPro
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', padding: '10px 16px', flexShrink: 0 }}>
<span style={{ fontSize: 'calc(12px * var(--fs-scale-body, 1))', color: 'rgba(255,255,255,0.7)', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', flex: 1 }}>
{file.original_name}
- <span style={{ marginLeft: 8, color: 'rgba(255,255,255,0.4)' }}>{index + 1} / {files.length}</span>
+ <span style={{ marginInlineStart: 8, color: 'rgba(255,255,255,0.4)' }}>{index + 1} / {files.length}</span>
</span>
<div style={{ display: 'flex', gap: 8, flexShrink: 0 }}>
<Tooltip label={t('files.openTab')}>
diff --git a/client/src/components/Files/FileManagerRow.tsx b/client/src/components/Files/FileManagerRow.tsx
index ed9f667e4..7f3fb261c 100644
--- a/client/src/components/Files/FileManagerRow.tsx
+++ b/client/src/components/Files/FileManagerRow.tsx
@@ -64,7 +64,7 @@ export function FileRow(p: FileManagerState & { file: TripFile; isTrash?: boolea
type="button"
disabled={isTrash}
onClick={() => !isTrash && openFile(file)}
- style={{ fontWeight: 500, fontSize: 'calc(13px * var(--fs-scale-body, 1))', color: 'var(--text-primary)', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', cursor: isTrash ? 'default' : 'pointer', textAlign: 'left', minWidth: 0 }}
+ style={{ fontWeight: 500, fontSize: 'calc(13px * var(--fs-scale-body, 1))', color: 'var(--text-primary)', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', cursor: isTrash ? 'default' : 'pointer', textAlign: 'start', minWidth: 0 }}
>
{file.original_name}
</button>
diff --git a/client/src/components/Files/FileManagerToolbar.tsx b/client/src/components/Files/FileManagerToolbar.tsx
index 18ee45da5..a399d4592 100644
--- a/client/src/components/Files/FileManagerToolbar.tsx
+++ b/client/src/components/Files/FileManagerToolbar.tsx
@@ -15,7 +15,7 @@ export function FileManagerToolbar(S: FileManagerState) {
const trashLabel = t('files.trash') || 'Trash'
return (
<div className="flex-none px-7 pt-6 max-md:px-4 max-md:pt-4">
- <div className="flex flex-wrap items-center gap-2.5 rounded-[18px] bg-surface-tertiary py-3 pl-[22px] pr-3">
+ <div className="flex flex-wrap items-center gap-2.5 rounded-[18px] bg-surface-tertiary py-3 ps-[22px] pe-3">
<h2 className="m-0 shrink-0 text-subtitle font-semibold tracking-[-0.01em] text-content">
{showTrash ? trashLabel : t('files.title')}
</h2>
diff --git a/client/src/components/Files/docsync/DocSyncBinding.tsx b/client/src/components/Files/docsync/DocSyncBinding.tsx
index c8419c623..81ef95827 100644
--- a/client/src/components/Files/docsync/DocSyncBinding.tsx
+++ b/client/src/components/Files/docsync/DocSyncBinding.tsx
@@ -175,7 +175,7 @@ export default function DocSyncBinding({
type="button"
onClick={() => setOpen(!open)}
aria-expanded={open}
- className="flex w-full items-center gap-1.5 border-t border-edge-faint px-4 py-2.5 text-left text-caption text-content-muted transition-colors hover:bg-surface-hover"
+ className="flex w-full items-center gap-1.5 border-t border-edge-faint px-4 py-2.5 text-start text-caption text-content-muted transition-colors hover:bg-surface-hover"
>
<ChevronDown size={13} className={`transition-transform ${open ? 'rotate-180' : ''}`} />
{t('docsync.binding.settings')}
diff --git a/client/src/components/Files/docsync/DocSyncFlow.tsx b/client/src/components/Files/docsync/DocSyncFlow.tsx
index 2ddb5ed75..012a78e3f 100644
--- a/client/src/components/Files/docsync/DocSyncFlow.tsx
+++ b/client/src/components/Files/docsync/DocSyncFlow.tsx
@@ -193,7 +193,7 @@ function Lane({
{/* Explicitly aligned to the arrow's side: the dialog inherits a centred
text-align, which would otherwise float the label away from it. */}
- <span className={`relative min-w-0 flex-1 truncate font-medium ${reverse ? 'text-right' : 'text-left'}`}>
+ <span className={`relative min-w-0 flex-1 truncate font-medium ${reverse ? 'text-end' : 'text-start'}`}>
{caption}
</span>
diff --git a/client/src/components/Files/docsync/DocSyncPanel.tsx b/client/src/components/Files/docsync/DocSyncPanel.tsx
index c8fd0a432..546b6cab4 100644
--- a/client/src/components/Files/docsync/DocSyncPanel.tsx
+++ b/client/src/components/Files/docsync/DocSyncPanel.tsx
@@ -103,7 +103,7 @@ export default function DocSyncPanel({
onAdd={p => (sync.connectionFor(p.id) ? setScopeFor(p.id) : setConnecting(p))}
/>
- <div className="min-w-0 md:border-l md:border-edge-faint md:pl-6">
+ <div className="min-w-0 md:border-s md:border-edge-faint md:ps-6">
{active ? (
<div className="space-y-5">
<DocSyncBinding
@@ -272,7 +272,7 @@ function StoreButton({
onClick={onClick}
aria-current={active ? 'true' : undefined}
className={[
- 'group flex w-full items-center gap-3 rounded-xl border px-3 py-2.5 text-left transition-colors',
+ 'group flex w-full items-center gap-3 rounded-xl border px-3 py-2.5 text-start transition-colors',
active
? 'border-transparent bg-accent-subtle'
: 'border-edge bg-surface hover:bg-surface-hover',
diff --git a/client/src/components/Files/docsync/DocSyncScopeModal.tsx b/client/src/components/Files/docsync/DocSyncScopeModal.tsx
index 231a6ad02..e4a4af406 100644
--- a/client/src/components/Files/docsync/DocSyncScopeModal.tsx
+++ b/client/src/components/Files/docsync/DocSyncScopeModal.tsx
@@ -137,12 +137,12 @@ export default function DocSyncScopeModal({
<span className="text-body font-medium text-content">{t('docsync.scope.pickTitle')}</span>
{scopes && scopes.length > 6 && (
<span className="relative">
- <Search size={13} className="pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-content-faint" />
+ <Search size={13} className="pointer-events-none absolute start-2.5 top-1/2 -translate-y-1/2 text-content-faint" />
<input
value={query}
onChange={e => setQuery(e.target.value)}
placeholder={t('docsync.scope.search')}
- className="w-44 rounded-lg border border-edge bg-surface-input py-1.5 pl-8 pr-2.5 text-caption text-content ring-accent focus:outline-none focus:ring-2"
+ className="w-44 rounded-lg border border-edge bg-surface-input py-1.5 ps-8 pe-2.5 text-caption text-content ring-accent focus:outline-none focus:ring-2"
/>
</span>
)}
@@ -174,7 +174,7 @@ export default function DocSyncScopeModal({
type="button"
onClick={() => void bind(s)}
disabled={working !== null}
- className="flex w-full items-center justify-between gap-3 px-3 py-2.5 text-left transition-colors hover:bg-surface-hover disabled:opacity-50"
+ className="flex w-full items-center justify-between gap-3 px-3 py-2.5 text-start transition-colors hover:bg-surface-hover disabled:opacity-50"
>
<span className="min-w-0">
<span className="block truncate text-body text-content">{s.label}</span>
diff --git a/client/src/components/Help/HelpBadge.tsx b/client/src/components/Help/HelpBadge.tsx
index f82fc9366..1e2a8db89 100644
--- a/client/src/components/Help/HelpBadge.tsx
+++ b/client/src/components/Help/HelpBadge.tsx
@@ -46,8 +46,8 @@ export default function HelpBadge({
}): React.ReactElement {
return (
<span
- className={`inline-flex items-center gap-1.5 h-7 rounded-full pl-2.5 text-caption font-semibold leading-none whitespace-nowrap ${
- count === undefined ? 'pr-2.5' : 'pr-1'
+ className={`inline-flex items-center gap-1.5 h-7 rounded-full ps-2.5 text-caption font-semibold leading-none whitespace-nowrap ${
+ count === undefined ? 'pe-2.5' : 'pe-1'
} ${uppercase ? 'uppercase tracking-[0.08em]' : ''} ${TONES[tone]} ${className}`}
>
{Icon && <Icon className="w-3.5 h-3.5 flex-shrink-0" />}
diff --git a/client/src/components/Help/HelpGuideView.tsx b/client/src/components/Help/HelpGuideView.tsx
index 508e26517..466220b11 100644
--- a/client/src/components/Help/HelpGuideView.tsx
+++ b/client/src/components/Help/HelpGuideView.tsx
@@ -60,7 +60,7 @@ export default function HelpGuideView({ guide }: { guide: HelpGuide }): React.Re
{guide.media.steps && <HelpBadge tone="neutral" icon={Camera} count={guide.steps}>{t('help.center.screenshot')}</HelpBadge>}
{/* One way out of the header: into the screen. The docs link waits at the bottom. */}
{screen && screenRoute && (
- <Link to={screenRoute} onClick={closeHelp} className="ml-auto">
+ <Link to={screenRoute} onClick={closeHelp} className="ms-auto">
<HelpBadge tone="accent" icon={ArrowUpRight} className="hover:bg-accent-hover transition-colors">
{t('help.center.goToScreen', { screen: t(ctxKey(screen.id, 'title')) })}
</HelpBadge>
@@ -76,7 +76,7 @@ export default function HelpGuideView({ guide }: { guide: HelpGuide }): React.Re
</div>
<ol className="relative flex flex-col gap-3">
{/* The rail: runs behind the step numbers from the first to the last. */}
- <span className="absolute left-[27px] top-6 bottom-6 w-px bg-edge" aria-hidden="true" />
+ <span className="absolute start-[27px] top-6 bottom-6 w-px bg-edge" aria-hidden="true" />
{steps.map(n => {
const text = t(guideStepKey(guide.id, n))
const src = helpMedia.step(guide.id, n)
@@ -117,7 +117,7 @@ export default function HelpGuideView({ guide }: { guide: HelpGuide }): React.Re
box, and covering it would crop away the sides the
ring is drawn on. */}
<img src={src} alt="" loading="lazy" decoding="async" className="block w-full aspect-[16/10] object-contain" />
- <span className="absolute bottom-2 right-2 w-8 h-8 rounded-full bg-inverse text-inverse-text flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity shadow-elevated">
+ <span className="absolute bottom-2 end-2 w-8 h-8 rounded-full bg-inverse text-inverse-text flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity shadow-elevated">
<Maximize2 className="w-3.5 h-3.5" />
</span>
</button>
@@ -146,10 +146,10 @@ export default function HelpGuideView({ guide }: { guide: HelpGuide }): React.Re
className="trek-help-shot group relative rounded-xl overflow-hidden border border-edge-secondary bg-surface-tertiary"
>
<img src={helpMedia.result(guide.id)} alt="" loading="lazy" decoding="async" className="block w-full aspect-video object-contain" />
- <span className="absolute bottom-2 left-2">
+ <span className="absolute bottom-2 start-2">
<HelpBadge tone="success" icon={CheckCircle2}>{t('help.center.result')}</HelpBadge>
</span>
- <span className="absolute bottom-2 right-2 w-8 h-8 rounded-full bg-inverse text-inverse-text flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity shadow-elevated">
+ <span className="absolute bottom-2 end-2 w-8 h-8 rounded-full bg-inverse text-inverse-text flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity shadow-elevated">
<Maximize2 className="w-3.5 h-3.5" />
</span>
</button>
@@ -205,7 +205,7 @@ export default function HelpGuideView({ guide }: { guide: HelpGuide }): React.Re
<button
type="button"
onClick={() => openGuide(g.id)}
- className="group w-full flex items-center gap-2.5 rounded-lg px-2 py-1.5 text-left hover:bg-surface-hover transition-colors"
+ className="group w-full flex items-center gap-2.5 rounded-lg px-2 py-1.5 text-start hover:bg-surface-hover transition-colors"
>
<span className="w-7 h-7 rounded-md bg-surface-tertiary text-content-muted flex items-center justify-center flex-shrink-0 group-hover:bg-accent group-hover:text-accent-text transition-colors">
<RelIcon className="w-3.5 h-3.5" />
diff --git a/client/src/components/Help/HelpHome.tsx b/client/src/components/Help/HelpHome.tsx
index 65fe9c494..f479c31d5 100644
--- a/client/src/components/Help/HelpHome.tsx
+++ b/client/src/components/Help/HelpHome.tsx
@@ -67,7 +67,7 @@ export default function HelpHome({ context }: { context: HelpContext | null }):
<HelpBadge tone="accent" icon={ListOrdered} count={guides.length}>{t('help.center.searchGuides')}</HelpBadge>
{context.docs.length > 0 && <HelpBadge tone="neutral" icon={BookOpen} count={context.docs.length}>{t('help.center.searchDocs')}</HelpBadge>}
{screenRoute && (
- <Link to={screenRoute} onClick={closeHelp} className="ml-auto">
+ <Link to={screenRoute} onClick={closeHelp} className="ms-auto">
<HelpBadge tone="accent" icon={ArrowUpRight} className="hover:bg-accent-hover transition-colors">
{t('help.center.goToScreen', { screen: t(ctxKey(context.id, 'title')) })}
</HelpBadge>
@@ -83,7 +83,7 @@ export default function HelpHome({ context }: { context: HelpContext | null }):
type="button"
onClick={() => setSubScreensOpen(o => !o)}
aria-expanded={subScreensOpen}
- className="flex items-center gap-3 p-4 text-left rounded-2xl hover:bg-surface-hover transition-colors"
+ className="flex items-center gap-3 p-4 text-start rounded-2xl hover:bg-surface-hover transition-colors"
>
<HelpBadge tone="neutral" icon={LayoutGrid} uppercase count={children.length}>{t('help.center.subScreensLabel')}</HelpBadge>
<span className="min-w-0 flex-1 text-caption text-content-muted truncate">
@@ -113,7 +113,7 @@ export default function HelpHome({ context }: { context: HelpContext | null }):
decoding="async"
className="block w-full aspect-video object-contain"
/>
- <span className="absolute bottom-3 left-3">
+ <span className="absolute bottom-3 start-3">
<HelpBadge tone="accent" icon={Camera}>{t(ctxKey(context.id, 'title'))}</HelpBadge>
</span>
</figure>
@@ -178,7 +178,7 @@ function SubScreenCard({ screen }: { screen: HelpContext }): React.ReactElement
<button
type="button"
onClick={() => browse(current ? null : screen.id)}
- className="group w-full h-full flex items-center gap-3 rounded-xl border border-edge bg-surface-secondary px-3 py-2.5 text-left hover:border-content-faint hover:bg-surface-card transition-colors"
+ className="group w-full h-full flex items-center gap-3 rounded-xl border border-edge bg-surface-secondary px-3 py-2.5 text-start hover:border-content-faint hover:bg-surface-card transition-colors"
>
<span className="w-9 h-9 rounded-lg bg-surface-card text-content-secondary flex items-center justify-center flex-shrink-0 group-hover:bg-accent group-hover:text-accent-text transition-colors">
<Icon className="w-4 h-4" />
@@ -214,7 +214,7 @@ export function GuideCard({ guide }: { guide: HelpGuide }): React.ReactElement {
<button
type="button"
onClick={() => openGuide(guide.id)}
- className="group w-full h-full flex flex-col gap-3 rounded-2xl border border-edge bg-surface-card p-4 text-left hover:border-content-faint hover:shadow-elevated transition-[border-color,box-shadow,transform] duration-200 ease-[var(--ease-out-quint)] hover:-translate-y-px"
+ className="group w-full h-full flex flex-col gap-3 rounded-2xl border border-edge bg-surface-card p-4 text-start hover:border-content-faint hover:shadow-elevated transition-[border-color,box-shadow,transform] duration-200 ease-[var(--ease-out-quint)] hover:-translate-y-px"
>
<span className="flex items-center justify-between">
<span className="w-10 h-10 rounded-xl bg-surface-tertiary text-content-secondary flex items-center justify-center group-hover:bg-accent group-hover:text-accent-text transition-colors">
diff --git a/client/src/components/Help/HelpLightbox.tsx b/client/src/components/Help/HelpLightbox.tsx
index 31ca52ba3..51093b035 100644
--- a/client/src/components/Help/HelpLightbox.tsx
+++ b/client/src/components/Help/HelpLightbox.tsx
@@ -22,7 +22,7 @@ export default function HelpLightbox(): React.ReactElement | null {
type="button"
onClick={() => close(null)}
aria-label={t('help.center.close')}
- className="absolute top-4 right-4 w-10 h-10 rounded-full bg-inverse text-inverse-text flex items-center justify-center shadow-elevated hover:scale-105 transition-transform"
+ className="absolute top-4 end-4 w-10 h-10 rounded-full bg-inverse text-inverse-text flex items-center justify-center shadow-elevated hover:scale-105 transition-transform"
>
<X className="w-5 h-5" />
</button>
diff --git a/client/src/components/Help/HelpNav.tsx b/client/src/components/Help/HelpNav.tsx
index a43f5663a..467387b88 100644
--- a/client/src/components/Help/HelpNav.tsx
+++ b/client/src/components/Help/HelpNav.tsx
@@ -41,7 +41,7 @@ export default function HelpNav({ context, currentId, activeGuideId }: {
const [familyOpen, setFamilyOpen] = useState(false)
return (
- <nav className="flex flex-col min-h-0 border-b md:border-b-0 md:border-r border-edge bg-surface-secondary" aria-label={t('help.center.title')}>
+ <nav className="flex flex-col min-h-0 border-b md:border-b-0 md:border-e border-edge bg-surface-secondary" aria-label={t('help.center.title')}>
<div className="px-5 pt-5 pb-3 flex items-center gap-2.5">
<span className="w-8 h-8 rounded-lg flex items-center justify-center bg-accent text-accent-text">
<LifeBuoy className="w-4 h-4" />
@@ -51,7 +51,7 @@ export default function HelpNav({ context, currentId, activeGuideId }: {
<div className="px-5 pb-4">
<label className="relative block">
- <Search className="w-4 h-4 absolute left-3 top-1/2 -translate-y-1/2 text-content-faint pointer-events-none" />
+ <Search className="w-4 h-4 absolute start-3 top-1/2 -translate-y-1/2 text-content-faint pointer-events-none" />
<input
ref={searchRef}
type="search"
@@ -59,7 +59,7 @@ export default function HelpNav({ context, currentId, activeGuideId }: {
onChange={e => setQuery(e.target.value)}
placeholder={t('help.center.searchPlaceholder')}
aria-label={t('help.center.searchPlaceholder')}
- className="w-full rounded-xl bg-surface-card text-content text-body pl-9 pr-3 py-2.5 outline-none border border-edge focus:border-content-faint transition-colors placeholder:text-content-faint"
+ className="w-full rounded-xl bg-surface-card text-content text-body ps-9 pe-3 py-2.5 outline-none border border-edge focus:border-content-faint transition-colors placeholder:text-content-faint"
/>
</label>
</div>
@@ -77,7 +77,7 @@ export default function HelpNav({ context, currentId, activeGuideId }: {
type="button"
onClick={() => setFamilyOpen(o => !o)}
aria-expanded={familyOpen}
- className="flex items-center gap-1.5 px-2 pb-1 text-left text-caption font-semibold uppercase tracking-[0.1em] text-content-faint hover:text-content transition-colors"
+ className="flex items-center gap-1.5 px-2 pb-1 text-start text-caption font-semibold uppercase tracking-[0.1em] text-content-faint hover:text-content transition-colors"
>
<span className="flex-1">{t('help.center.subScreensLabel')}</span>
<span className="text-caption font-bold tabular-nums normal-case tracking-normal">{family.length}</span>
@@ -101,7 +101,7 @@ export default function HelpNav({ context, currentId, activeGuideId }: {
type="button"
onClick={() => { closeGuide(); setQuery('') }}
aria-current={overviewActive ? 'page' : undefined}
- className={`flex items-center gap-2.5 rounded-lg px-2 py-2 text-left transition-colors ${
+ className={`flex items-center gap-2.5 rounded-lg px-2 py-2 text-start transition-colors ${
overviewActive ? 'bg-surface-selected text-content' : 'text-content-secondary hover:bg-surface-hover hover:text-content'
}`}
>
@@ -219,7 +219,7 @@ function ScreenSwitcher({ shown, currentId }: { shown: HelpContext | null; curre
onClick={toggleList}
aria-haspopup="listbox"
aria-expanded={open}
- className="w-full flex items-center gap-2.5 rounded-xl border border-edge bg-surface-card px-3 py-2.5 text-left hover:border-content-faint transition-colors"
+ className="w-full flex items-center gap-2.5 rounded-xl border border-edge bg-surface-card px-3 py-2.5 text-start hover:border-content-faint transition-colors"
>
<span className="w-7 h-7 rounded-md bg-accent text-accent-text flex items-center justify-center flex-shrink-0">
<ShownIcon className="w-3.5 h-3.5" />
@@ -236,7 +236,7 @@ function ScreenSwitcher({ shown, currentId }: { shown: HelpContext | null; curre
<ul
role="listbox"
aria-label={t('help.center.screens')}
- className="trek-help-menu absolute left-2 right-2 top-full mt-1.5 z-10 flex flex-col gap-0.5 rounded-xl border border-edge bg-surface-card p-1.5 shadow-elevated"
+ className="trek-help-menu absolute inset-x-2 top-full mt-1.5 z-10 flex flex-col gap-0.5 rounded-xl border border-edge bg-surface-card p-1.5 shadow-elevated"
>
{screens.map(screen => {
const children = childHelpContexts(screen.id)
@@ -251,7 +251,7 @@ function ScreenSwitcher({ shown, currentId }: { shown: HelpContext | null; curre
group={children.length > 0 ? { expanded, count: children.length, toggle: () => setOpenGroup(expanded ? null : screen.id) } : undefined}
/>
{children.length > 0 && expanded && (
- <ul role="group" className="flex flex-col gap-0.5 pl-3">
+ <ul role="group" className="flex flex-col gap-0.5 ps-3">
{children.map(child => (
<li key={child.id}>
<ScreenRow
@@ -296,7 +296,7 @@ function ScreenRow({
selected ? 'bg-surface-selected text-content' : 'text-content-secondary hover:bg-surface-hover hover:text-content'
}`}
>
- <button type="button" onClick={onPick} className="min-w-0 flex-1 flex items-center gap-2.5 px-2 py-2 text-left">
+ <button type="button" onClick={onPick} className="min-w-0 flex-1 flex items-center gap-2.5 px-2 py-2 text-start">
{nested ? (
<CornerDownRight className="w-3.5 h-3.5 flex-shrink-0 text-content-faint" />
) : (
@@ -312,7 +312,7 @@ function ScreenRow({
onClick={e => { e.stopPropagation(); group.toggle() }}
aria-expanded={group.expanded}
aria-label={t('help.center.subScreens', { count: group.count })}
- className="flex items-center gap-1 rounded-md mr-1.5 px-1.5 py-1 text-caption font-semibold text-content-faint hover:bg-surface-tertiary hover:text-content transition-colors"
+ className="flex items-center gap-1 rounded-md me-1.5 px-1.5 py-1 text-caption font-semibold text-content-faint hover:bg-surface-tertiary hover:text-content transition-colors"
>
{group.count}
<Fold className="w-3.5 h-3.5" />
@@ -332,7 +332,7 @@ function NavScreen({ screen, shown, current }: { screen: HelpContext; shown: boo
type="button"
onClick={() => browse(current ? null : screen.id)}
aria-current={shown ? 'page' : undefined}
- className={`group w-full flex items-center gap-2.5 rounded-lg px-2 py-1.5 text-left transition-colors ${
+ className={`group w-full flex items-center gap-2.5 rounded-lg px-2 py-1.5 text-start transition-colors ${
shown ? 'bg-surface-selected text-content' : 'text-content-secondary hover:bg-surface-hover hover:text-content'
}`}
>
@@ -360,7 +360,7 @@ function NavGuide({ guide, active }: { guide: HelpGuide; active: boolean }): Rea
type="button"
onClick={() => openGuide(guide.id)}
aria-current={active ? 'page' : undefined}
- className={`group w-full flex items-center gap-2.5 rounded-lg px-2 py-1.5 text-left transition-colors ${
+ className={`group w-full flex items-center gap-2.5 rounded-lg px-2 py-1.5 text-start transition-colors ${
active ? 'bg-surface-selected text-content' : 'text-content-secondary hover:bg-surface-hover hover:text-content'
}`}
>
diff --git a/client/src/components/Help/HelpPanel.tsx b/client/src/components/Help/HelpPanel.tsx
index 7153bb2b5..935a6eed9 100644
--- a/client/src/components/Help/HelpPanel.tsx
+++ b/client/src/components/Help/HelpPanel.tsx
@@ -106,7 +106,7 @@ export default function HelpPanel(): React.ReactElement | null {
type="button"
onClick={closeHelp}
aria-label={t('help.center.close')}
- className="absolute top-4 right-4 z-10 w-9 h-9 rounded-full flex items-center justify-center text-content-muted bg-surface-card border border-edge shadow-card hover:text-content hover:bg-surface-hover transition-colors"
+ className="absolute top-4 end-4 z-10 w-9 h-9 rounded-full flex items-center justify-center text-content-muted bg-surface-card border border-edge shadow-card hover:text-content hover:bg-surface-hover transition-colors"
>
<X className="w-4 h-4" />
</button>
diff --git a/client/src/components/Journey/ContributorInviteDialog.tsx b/client/src/components/Journey/ContributorInviteDialog.tsx
index 6c80c3753..9a035e853 100644
--- a/client/src/components/Journey/ContributorInviteDialog.tsx
+++ b/client/src/components/Journey/ContributorInviteDialog.tsx
@@ -105,7 +105,7 @@ export default function ContributorInviteDialog({ journeyId, existingUserIds, on
<button type="button"
key={u.id}
onClick={() => setSelectedUserId(u.id)}
- className={`w-full text-left flex items-center gap-2.5 p-2.5 rounded-lg cursor-pointer transition-all ${
+ className={`w-full text-start flex items-center gap-2.5 p-2.5 rounded-lg cursor-pointer transition-all ${
selectedUserId === u.id
? 'bg-zinc-100 dark:bg-zinc-800 border border-zinc-900 dark:border-white'
: 'hover:bg-zinc-50 dark:hover:bg-zinc-800 border border-transparent'
@@ -204,14 +204,14 @@ export default function ContributorInviteDialog({ journeyId, existingUserIds, on
)}
>
<div className="relative">
- <Search size={14} className="pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-content-faint" aria-hidden="true" />
+ <Search size={14} className="pointer-events-none absolute start-3 top-1/2 -translate-y-1/2 text-content-faint" aria-hidden="true" />
<input
autoFocus
value={search}
onChange={e => setSearch(e.target.value)}
placeholder={t('journey.contributors.searchPlaceholder')}
aria-label={t('journey.contributors.searchUser')}
- className={`${INPUT} pl-8`}
+ className={`${INPUT} ps-8`}
/>
</div>
@@ -227,7 +227,7 @@ export default function ContributorInviteDialog({ journeyId, existingUserIds, on
key={u.id}
onClick={() => setSelectedUserId(u.id)}
aria-pressed={on}
- className={`flex min-h-[48px] w-full items-center gap-3 rounded-[10px] px-2.5 py-1.5 text-left ${on ? 'bg-surface-card shadow-sm' : 'hover:bg-surface-card'}`}
+ className={`flex min-h-[48px] w-full items-center gap-3 rounded-[10px] px-2.5 py-1.5 text-start ${on ? 'bg-surface-card shadow-sm' : 'hover:bg-surface-card'}`}
>
<TripMemberAvatar username={u.username} avatarUrl={avatarSrc(u.avatar)} />
<span className="min-w-0 flex-1">
diff --git a/client/src/components/Journey/JournalBody.tsx b/client/src/components/Journey/JournalBody.tsx
index 952df32e4..962a9ef21 100644
--- a/client/src/components/Journey/JournalBody.tsx
+++ b/client/src/components/Journey/JournalBody.tsx
@@ -24,8 +24,8 @@ export default function JournalBody({ text, dark }: Props) {
p: ({ children }) => <p style={{ margin: '0 0 6px' }}>{children}</p>,
blockquote: ({ children }) => (
<blockquote style={{
- borderLeft: `3px solid var(--journal-accent)`,
- paddingLeft: 16, margin: '12px 0',
+ borderInlineStart: `3px solid var(--journal-accent)`,
+ paddingInlineStart: 16, margin: '12px 0',
fontStyle: 'italic', color: 'var(--journal-muted)',
}}>{children}</blockquote>
),
@@ -35,8 +35,8 @@ export default function JournalBody({ text, dark }: Props) {
{children}
</a>
),
- ul: ({ children }) => <ul style={{ paddingLeft: 20, margin: '8px 0' }}>{children}</ul>,
- ol: ({ children }) => <ol style={{ paddingLeft: 20, margin: '8px 0' }}>{children}</ol>,
+ ul: ({ children }) => <ul style={{ paddingInlineStart: 20, margin: '8px 0' }}>{children}</ul>,
+ ol: ({ children }) => <ol style={{ paddingInlineStart: 20, margin: '8px 0' }}>{children}</ol>,
li: ({ children }) => <li style={{ margin: '4px 0' }}>{children}</li>,
strong: ({ children }) => <strong style={{ fontWeight: 600 }}>{children}</strong>,
em: ({ children }) => <em>{children}</em>,
diff --git a/client/src/components/Journey/JourneyDayDawarich.tsx b/client/src/components/Journey/JourneyDayDawarich.tsx
index b8b25dc9f..4d900cfe5 100644
--- a/client/src/components/Journey/JourneyDayDawarich.tsx
+++ b/client/src/components/Journey/JourneyDayDawarich.tsx
@@ -53,7 +53,7 @@ export default function JourneyDayDawarich({
type="button"
onClick={() => setOpen(v => !v)}
aria-expanded={open}
- className="flex w-full items-center gap-2.5 px-3 py-2.5 text-left transition-colors hover:bg-surface-hover"
+ className="flex w-full items-center gap-2.5 px-3 py-2.5 text-start transition-colors hover:bg-surface-hover"
>
{/* The brand mark in its own colours, which is what tells this row from an entry
at a glance. No second label saying "Dawarich": the mark is the label. */}
diff --git a/client/src/components/Journey/JourneyDayJump.tsx b/client/src/components/Journey/JourneyDayJump.tsx
index ac3d6e845..7a6cdb0c1 100644
--- a/client/src/components/Journey/JourneyDayJump.tsx
+++ b/client/src/components/Journey/JourneyDayJump.tsx
@@ -60,7 +60,7 @@ export default function JourneyDayJump({ days, feedRef }: { days: JumpDay[]; fee
<div key={day.date}>
<div className="flex items-center gap-1">
<button type="button" role="menuitem" onClick={() => goDay(day.date)}
- className="flex min-w-0 flex-1 items-center gap-2.5 rounded-xl px-2 py-1.5 text-left hover:bg-[color:var(--vg-surf2)]">
+ className="flex min-w-0 flex-1 items-center gap-2.5 rounded-xl px-2 py-1.5 text-start hover:bg-[color:var(--vg-surf2)]">
<span className="grid h-6 w-6 flex-none place-items-center rounded-lg text-[11px] font-bold text-white" style={{ background: day.color }}>{i + 1}</span>
<span className="min-w-0 flex-1 truncate text-[12.5px] font-semibold" style={{ color: 'var(--vg-ink)' }}>{dateLabel(day.date)}</span>
<span className="flex-none rounded-full px-1.5 text-[10px] font-bold tabular-nums" style={{ background: 'var(--vg-surf2)', color: 'var(--vg-ink3)' }}>{day.entries.length}</span>
@@ -75,7 +75,7 @@ export default function JourneyDayJump({ days, feedRef }: { days: JumpDay[]; fee
</div>
{isOpen && day.entries.map(entry => (
<button key={entry.id} type="button" role="menuitem" onClick={() => goEntry(entry.id)}
- className="flex w-full items-center gap-2 rounded-lg py-1 pl-11 pr-2 text-left text-[12px] hover:bg-[color:var(--vg-surf2)]" style={{ color: 'var(--vg-ink2)' }}>
+ className="flex w-full items-center gap-2 rounded-lg py-1 ps-11 pe-2 text-start text-[12px] hover:bg-[color:var(--vg-surf2)]" style={{ color: 'var(--vg-ink2)' }}>
<span className="h-1.5 w-1.5 flex-none rounded-full" style={{ background: day.color }} />
<span className="min-w-0 truncate">{entry.title}</span>
</button>
diff --git a/client/src/components/Journey/JourneyDetailPageAddTripDialog.tsx b/client/src/components/Journey/JourneyDetailPageAddTripDialog.tsx
index b1d5e4228..4de598184 100644
--- a/client/src/components/Journey/JourneyDetailPageAddTripDialog.tsx
+++ b/client/src/components/Journey/JourneyDetailPageAddTripDialog.tsx
@@ -68,14 +68,14 @@ export function AddTripDialog({ journeyId, existingTripIds, onClose, onAdded }:
)}
>
<div className="relative">
- <Search size={14} className="pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-content-faint" aria-hidden="true" />
+ <Search size={14} className="pointer-events-none absolute start-3 top-1/2 -translate-y-1/2 text-content-faint" aria-hidden="true" />
<input
autoFocus
value={search}
onChange={e => setSearch(e.target.value)}
placeholder={t('journey.trips.searchPlaceholder')}
aria-label={t('journey.trips.searchTrip')}
- className={`${INPUT} pl-8`}
+ className={`${INPUT} ps-8`}
/>
</div>
diff --git a/client/src/components/Journey/JourneyDetailPageDatePicker.tsx b/client/src/components/Journey/JourneyDetailPageDatePicker.tsx
index 88e013f82..9df012055 100644
--- a/client/src/components/Journey/JourneyDetailPageDatePicker.tsx
+++ b/client/src/components/Journey/JourneyDetailPageDatePicker.tsx
@@ -109,7 +109,7 @@ export function DatePicker({ value, onChange, tripDates }: {
<button
type="button"
onClick={toggleOpen}
- className="w-full px-3 py-2 border border-zinc-200 dark:border-zinc-700 rounded-lg text-[13px] bg-white dark:bg-zinc-800 text-zinc-900 dark:text-white text-left flex items-center justify-between"
+ className="w-full px-3 py-2 border border-zinc-200 dark:border-zinc-700 rounded-lg text-[13px] bg-white dark:bg-zinc-800 text-zinc-900 dark:text-white text-start flex items-center justify-between"
>
{formatted ? (
<span>{formatted}</span>
@@ -127,7 +127,7 @@ export function DatePicker({ value, onChange, tripDates }: {
{/* Click-away catcher — no semantics of its own; the trigger button
above closes the popover again from the keyboard. */}
<div role="presentation" className="fixed inset-0 z-[10]" onClick={() => setOpen(false)} />
- <div className="absolute top-full left-0 mt-1 z-[20] bg-white dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700 rounded-xl shadow-lg p-3 w-[280px]">
+ <div className="absolute top-full start-0 mt-1 z-[20] bg-white dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700 rounded-xl shadow-lg p-3 w-[280px]">
{/* Header: arrows step the current view, the label climbs to the next one up */}
<div className="flex items-center justify-between mb-2">
<button type="button" onClick={handlePrev} aria-label={prevLabel} className={navButton}>
diff --git a/client/src/components/Journey/JourneyDetailPageEntryCard.tsx b/client/src/components/Journey/JourneyDetailPageEntryCard.tsx
index d7b56d441..9cc6e8c55 100644
--- a/client/src/components/Journey/JourneyDetailPageEntryCard.tsx
+++ b/client/src/components/Journey/JourneyDetailPageEntryCard.tsx
@@ -58,7 +58,7 @@ export function EntryCard({ entry, readOnly, onEdit, onDelete, onPhotoClick }: {
<div className="absolute inset-x-0 bottom-0 pointer-events-none" style={{ background: 'linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 50%, transparent 100%)', height: '60%' }} />
{/* Badges top-left */}
- <div className="absolute top-3 left-4 right-14 flex items-center gap-1.5 z-[2]">
+ <div className="absolute top-3 start-4 end-14 flex items-center gap-1.5 z-[2]">
{entry.location_name && (
<span className="inline-flex items-center gap-1 px-2.5 py-1 bg-black/40 backdrop-blur-sm rounded-full text-[10px] font-semibold text-white tracking-wide max-w-full overflow-hidden">
<MapPin size={10} className="flex-shrink-0" />
@@ -90,14 +90,14 @@ export function EntryCard({ entry, readOnly, onEdit, onDelete, onPhotoClick }: {
{/* Menu top-right, raised on the card colour so it reads on any photo */}
{!readOnly && (
- <div className="absolute top-2.5 right-3 z-[2]">
+ <div className="absolute top-2.5 end-3 z-[2]">
<MoreButton label={t('files.menu')} items={menuItems} size={32} alwaysVisible className="bg-surface-card shadow-sm" />
</div>
)}
{/* Title on photo */}
{entry.title && (
- <div className="absolute bottom-4 left-5 right-5 z-[2] pointer-events-none">
+ <div className="absolute bottom-4 inset-x-5 z-[2] pointer-events-none">
<h3 className="text-[22px] font-bold text-white tracking-[-0.02em] leading-tight drop-shadow-sm">{entry.title}</h3>
</div>
)}
@@ -105,7 +105,7 @@ export function EntryCard({ entry, readOnly, onEdit, onDelete, onPhotoClick }: {
) : (
/* No photos: simple header */
<div className="flex items-center justify-between px-4 pt-3">
- <div className="flex items-center gap-2 min-w-0 flex-1 mr-2">
+ <div className="flex items-center gap-2 min-w-0 flex-1 me-2">
{entry.location_name && (
<span className="inline-flex items-center gap-1 px-2 py-0.5 bg-zinc-100 dark:bg-zinc-800 rounded-full text-[10px] font-semibold text-zinc-500 max-w-full overflow-hidden">
<MapPin size={10} className="flex-shrink-0" /> <span className="truncate">{formatLocationName(entry.location_name)}</span>
@@ -172,8 +172,8 @@ export function EntryCard({ entry, readOnly, onEdit, onDelete, onPhotoClick }: {
<div key={`${p.pluginId}-${i}`} className="flex items-baseline justify-between gap-2 text-[12px]">
<span className="font-medium text-zinc-500 dark:text-zinc-400 flex-shrink-0">{it.label}</span>
{it.url
- ? <a href={it.url} target="_blank" rel="noreferrer noopener" className="text-indigo-600 dark:text-indigo-400 truncate text-right">{it.value ?? it.url}</a>
- : <span className="text-zinc-600 dark:text-zinc-300 truncate text-right">{it.value}</span>}
+ ? <a href={it.url} target="_blank" rel="noreferrer noopener" className="text-indigo-600 dark:text-indigo-400 truncate text-end">{it.value ?? it.url}</a>
+ : <span className="text-zinc-600 dark:text-zinc-300 truncate text-end">{it.value}</span>}
</div>
)))}
</div>
diff --git a/client/src/components/Journey/JourneyDetailPageEntryEditor.tsx b/client/src/components/Journey/JourneyDetailPageEntryEditor.tsx
index 8d0a7fa5b..c74684853 100644
--- a/client/src/components/Journey/JourneyDetailPageEntryEditor.tsx
+++ b/client/src/components/Journey/JourneyDetailPageEntryEditor.tsx
@@ -39,9 +39,9 @@ const SOURCE_ON = 'border-content bg-surface-secondary text-content'
const PHOTO_PANEL = 'mt-2 rounded-[12px] border border-edge-faint bg-surface-secondary'
/** A control laid over a photo tile, raised on the card colour so it reads on any picture. */
const ON_PHOTO = 'bg-surface-card text-content shadow-sm'
-const PHOTO_REMOVE = `absolute right-1 top-1 grid h-5 w-5 place-items-center rounded-full opacity-0 transition-opacity group-hover:opacity-100 ${ON_PHOTO}`
+const PHOTO_REMOVE = `absolute end-1 top-1 grid h-5 w-5 place-items-center rounded-full opacity-0 transition-opacity group-hover:opacity-100 ${ON_PHOTO}`
/** What hangs under the location field: the search results, or the note that a search is running. */
-const DROPDOWN = 'absolute left-0 right-0 top-full z-[100] mt-1 rounded-[12px] border border-edge-faint bg-surface-card shadow-dropdown'
+const DROPDOWN = 'absolute inset-x-0 top-full z-[100] mt-1 rounded-[12px] border border-edge-faint bg-surface-card shadow-dropdown'
const VERDICT_TONES = {
pros: { Icon: Check, text: 'text-success', soft: 'bg-success-soft', dot: 'bg-success' },
@@ -659,12 +659,12 @@ export function EntryEditor({ entry, journeyId, tripDates, galleryPhotos, trips,
<img src={photoUrl(p)} className="h-full w-full object-cover" alt="" onError={thumbnailFallback(p)} />
)}
{idx === 0 && photos.length > 1 && (
- <span className={`absolute bottom-0.5 left-0.5 rounded px-1 py-px font-bold ${ON_PHOTO}`} style={fs(8)}>{t('journey.editor.photoFirst')}</span>
+ <span className={`absolute bottom-0.5 start-0.5 rounded px-1 py-px font-bold ${ON_PHOTO}`} style={fs(8)}>{t('journey.editor.photoFirst')}</span>
)}
{idx > 0 && photos.length > 1 && (
<button type="button"
onClick={e => { e.stopPropagation(); photoOrder.makeFirst(idx) }}
- className={`absolute bottom-0.5 left-0.5 rounded px-1.5 py-0.5 font-semibold opacity-0 transition-opacity group-hover:opacity-100 ${ON_PHOTO}`}
+ className={`absolute bottom-0.5 start-0.5 rounded px-1.5 py-0.5 font-semibold opacity-0 transition-opacity group-hover:opacity-100 ${ON_PHOTO}`}
style={fs(8)}
>
{t('journey.editor.makeFirst')}
@@ -825,7 +825,7 @@ export function EntryEditor({ entry, journeyId, tripDates, galleryPhotos, trips,
}}
onFocus={() => { if (locationResults.length > 0) setShowLocationResults(true) }}
placeholder={t('journey.editor.searchLocation')}
- className={`${INPUT} pr-9`}
+ className={`${INPUT} pe-9`}
/>
<Tooltip label={t('journey.editor.useCurrentLocation')}>
<button
@@ -833,7 +833,7 @@ export function EntryEditor({ entry, journeyId, tripDates, galleryPhotos, trips,
onClick={handleUseCurrentLocation}
disabled={locating}
aria-label={t('journey.editor.useCurrentLocation')}
- className="absolute right-1 top-1/2 grid h-7 w-7 -translate-y-1/2 place-items-center rounded-[8px] text-content-faint hover:bg-surface-hover hover:text-content disabled:cursor-default disabled:opacity-50"
+ className="absolute end-1 top-1/2 grid h-7 w-7 -translate-y-1/2 place-items-center rounded-[8px] text-content-faint hover:bg-surface-hover hover:text-content disabled:cursor-default disabled:opacity-50"
>
{locating ? <Loader2 size={14} className="animate-spin" /> : <Locate size={14} />}
</button>
@@ -854,7 +854,7 @@ export function EntryEditor({ entry, journeyId, tripDates, galleryPhotos, trips,
setShowLocationResults(false)
setLocationResults([])
}}
- className="flex w-full items-start gap-2.5 rounded-[8px] px-2.5 py-2 text-left hover:bg-surface-hover"
+ className="flex w-full items-start gap-2.5 rounded-[8px] px-2.5 py-2 text-start hover:bg-surface-hover"
>
<MapPin size={13} className="mt-0.5 flex-none text-content-faint" />
<div className="min-w-0">
diff --git a/client/src/components/Journey/JourneyDetailPageGalleryView.tsx b/client/src/components/Journey/JourneyDetailPageGalleryView.tsx
index 0c9b79d6f..9c88ae6c7 100644
--- a/client/src/components/Journey/JourneyDetailPageGalleryView.tsx
+++ b/client/src/components/Journey/JourneyDetailPageGalleryView.tsx
@@ -163,12 +163,12 @@ export function GalleryView({ entries, gallery, journeyId, userId, trips, onPhot
{/* Delete button */}
<button type="button"
onClick={(e) => { e.stopPropagation(); void handleDeletePhoto(photo.id) }}
- className="absolute top-1.5 right-1.5 w-6 h-6 rounded-full bg-black/60 backdrop-blur text-white flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity z-10"
+ className="absolute top-1.5 end-1.5 w-6 h-6 rounded-full bg-black/60 backdrop-blur text-white flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity z-10"
>
<X size={12} />
</button>
{photo.provider && photo.provider !== 'local' && (
- <div className="absolute top-1.5 left-1.5">
+ <div className="absolute top-1.5 start-1.5">
<span className="text-[8px] font-medium px-1.5 py-0.5 rounded-full bg-black/70 backdrop-blur text-white flex items-center gap-1">
<RefreshCw size={7} />
{photo.provider === 'immich' ? 'Immich' : photo.provider === 'synologyphotos' ? 'Synology Photos' : photo.provider}
@@ -176,7 +176,7 @@ export function GalleryView({ entries, gallery, journeyId, userId, trips, onPhot
</div>
)}
{photo.caption && (
- <div className="absolute bottom-0 left-0 right-0 p-2 bg-gradient-to-t from-black/60 to-transparent opacity-0 group-hover:opacity-100 transition-opacity">
+ <div className="absolute bottom-0 inset-x-0 p-2 bg-gradient-to-t from-black/60 to-transparent opacity-0 group-hover:opacity-100 transition-opacity">
<p className="text-[10px] text-white truncate">{photo.caption}</p>
</div>
)}
diff --git a/client/src/components/Journey/JourneyDetailPageMapView.tsx b/client/src/components/Journey/JourneyDetailPageMapView.tsx
index 3577b1051..07ae3e484 100644
--- a/client/src/components/Journey/JourneyDetailPageMapView.tsx
+++ b/client/src/components/Journey/JourneyDetailPageMapView.tsx
@@ -88,7 +88,7 @@ export function MapView({ entries, mapEntries, sortedDates, activeLocationId, fu
<button
type="button"
onClick={() => onLocationClick(String(e.id))}
- className={`w-full text-left flex items-center gap-3 p-3 rounded-[14px] cursor-pointer transition-all ${
+ className={`w-full text-start flex items-center gap-3 p-3 rounded-[14px] cursor-pointer transition-all ${
isActive
? 'bg-zinc-100 dark:bg-zinc-800 border border-zinc-900 dark:border-zinc-100 translate-x-0.5'
: 'bg-white dark:bg-zinc-900 border border-zinc-200 dark:border-zinc-700 hover:border-zinc-400 dark:hover:border-zinc-500 hover:translate-x-0.5'
@@ -119,7 +119,7 @@ export function MapView({ entries, mapEntries, sortedDates, activeLocationId, fu
{/* Connector line */}
{showConnector && (
- <div className="w-0.5 h-2 bg-zinc-200 dark:bg-zinc-700 ml-[18px] rounded-full" />
+ <div className="w-0.5 h-2 bg-zinc-200 dark:bg-zinc-700 ms-[18px] rounded-full" />
)}
</div>
)
diff --git a/client/src/components/Journey/JourneyDetailPagePhotoGrid.tsx b/client/src/components/Journey/JourneyDetailPagePhotoGrid.tsx
index 93869d6a7..f812b1911 100644
--- a/client/src/components/Journey/JourneyDetailPagePhotoGrid.tsx
+++ b/client/src/components/Journey/JourneyDetailPagePhotoGrid.tsx
@@ -69,7 +69,7 @@ export function PhotoGrid({ photos, onClick }: { photos: JourneyPhoto[]; onClick
<button type="button" className="flex-1 min-h-0 relative cursor-pointer" onClick={() => onClick(2)}>
<PhotoImg photo={photos[2]} className="w-full h-full object-cover" />
{count > 3 && (
- <div className="absolute bottom-2 right-2 bg-black/60 backdrop-blur text-white rounded-full px-2 py-0.5 text-[10px] font-semibold flex items-center gap-1">
+ <div className="absolute bottom-2 end-2 bg-black/60 backdrop-blur text-white rounded-full px-2 py-0.5 text-[10px] font-semibold flex items-center gap-1">
<Image size={10} />
+{count - 3}
</div>
diff --git a/client/src/components/Journey/JourneyDetailPageProviderPicker.tsx b/client/src/components/Journey/JourneyDetailPageProviderPicker.tsx
index 435e5af3a..2c33a61e5 100644
--- a/client/src/components/Journey/JourneyDetailPageProviderPicker.tsx
+++ b/client/src/components/Journey/JourneyDetailPageProviderPicker.tsx
@@ -421,7 +421,7 @@ export function ProviderPicker({
year: 'numeric',
})}
</span>
- <span className="ml-1 text-zinc-400">
+ <span className="ms-1 text-zinc-400">
(
{Math.ceil((new Date(tripRange.to).getTime() - new Date(tripRange.from).getTime()) / 86400000) +
1}{' '}
@@ -501,14 +501,14 @@ export function ProviderPicker({
{addToOpen && (
<>
<div className="fixed inset-0 z-[9]" role="presentation" onClick={() => setAddToOpen(false)} />
- <div className="absolute top-full left-12 z-10 mt-1 max-h-[240px] min-w-[200px] overflow-y-auto rounded-xl border border-zinc-200 bg-white py-1.5 shadow-lg dark:border-zinc-700 dark:bg-zinc-800">
+ <div className="absolute top-full start-12 z-10 mt-1 max-h-[240px] min-w-[200px] overflow-y-auto rounded-xl border border-zinc-200 bg-white py-1.5 shadow-lg dark:border-zinc-700 dark:bg-zinc-800">
<button
type="button"
onClick={() => {
setTargetEntryId(null);
setAddToOpen(false);
}}
- className={`flex w-full items-center gap-2 px-3 py-2 text-left text-[12px] ${
+ className={`flex w-full items-center gap-2 px-3 py-2 text-start text-[12px] ${
!targetEntryId
? 'bg-zinc-100 font-semibold text-zinc-900 dark:bg-zinc-700 dark:text-white'
: 'text-zinc-700 hover:bg-zinc-50 dark:text-zinc-300 dark:hover:bg-zinc-700'
@@ -530,7 +530,7 @@ export function ProviderPicker({
setTargetEntryId(e.id);
setAddToOpen(false);
}}
- className={`w-full truncate px-3 py-2 text-left text-[12px] ${
+ className={`w-full truncate px-3 py-2 text-start text-[12px] ${
targetEntryId === e.id
? 'bg-zinc-100 font-semibold text-zinc-900 dark:bg-zinc-700 dark:text-white'
: 'text-zinc-700 hover:bg-zinc-50 dark:text-zinc-300 dark:hover:bg-zinc-700'
@@ -656,22 +656,22 @@ export function ProviderPicker({
}}
/>
{alreadyAdded && (
- <div className="absolute top-1.5 right-1.5 flex h-5 w-5 items-center justify-center rounded-full bg-zinc-500 text-white">
+ <div className="absolute top-1.5 end-1.5 flex h-5 w-5 items-center justify-center rounded-full bg-zinc-500 text-white">
<Check size={12} />
</div>
)}
{isSelected && !alreadyAdded && (
- <div className="absolute top-1.5 right-1.5 flex h-5 w-5 items-center justify-center rounded-full bg-zinc-900 text-white dark:bg-white dark:text-zinc-900">
+ <div className="absolute top-1.5 end-1.5 flex h-5 w-5 items-center justify-center rounded-full bg-zinc-900 text-white dark:bg-white dark:text-zinc-900">
<Check size={12} />
</div>
)}
{asset.mediaType === 'video' && (
- <div className="pointer-events-none absolute bottom-1.5 left-1.5 z-10 flex h-4 w-4 items-center justify-center rounded-full bg-black/60">
+ <div className="pointer-events-none absolute bottom-1.5 start-1.5 z-10 flex h-4 w-4 items-center justify-center rounded-full bg-black/60">
<Play size={8} className="ml-px text-white" fill="currentColor" />
</div>
)}
{asset.city && (
- <div className="absolute right-0 bottom-0 left-0 bg-gradient-to-t from-black/50 to-transparent p-1">
+ <div className="absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/50 to-transparent p-1">
<p className="truncate text-[8px] text-white">{asset.city}</p>
</div>
)}
diff --git a/client/src/components/Journey/JourneyDetailPageSettingsDialog.tsx b/client/src/components/Journey/JourneyDetailPageSettingsDialog.tsx
index c26741b55..ed6b72fc7 100644
--- a/client/src/components/Journey/JourneyDetailPageSettingsDialog.tsx
+++ b/client/src/components/Journey/JourneyDetailPageSettingsDialog.tsx
@@ -360,7 +360,7 @@ export function JourneySettingsDialog({ journey, onClose, onSaved, onOpenInvite,
<button
type="button"
onClick={() => { void onRestoreSuggestions() }}
- className="flex w-full items-center gap-3 rounded-[14px] border border-edge-faint bg-surface-secondary px-3.5 py-2.5 text-left transition-colors hover:bg-surface-card"
+ className="flex w-full items-center gap-3 rounded-[14px] border border-edge-faint bg-surface-secondary px-3.5 py-2.5 text-start transition-colors hover:bg-surface-card"
>
<Undo2 size={15} className="flex-none text-content-faint" />
<span className="min-w-0 flex-1">
diff --git a/client/src/components/Journey/JourneyDetailPageVerdictSection.tsx b/client/src/components/Journey/JourneyDetailPageVerdictSection.tsx
index f7ea2794a..53b3b65c0 100644
--- a/client/src/components/Journey/JourneyDetailPageVerdictSection.tsx
+++ b/client/src/components/Journey/JourneyDetailPageVerdictSection.tsx
@@ -59,7 +59,7 @@ export function VerdictSection({ pros, cons }: { pros: string[]; cons: string[]
<Check size={14} className="text-white" strokeWidth={3} />
</div>
<span className="hidden md:inline text-[11px] font-bold tracking-[0.1em] uppercase text-green-700 dark:text-green-400">{t('journey.verdict.lovedIt')}</span>
- <span className="ml-auto text-[11px] font-semibold text-green-600">{pros.length}</span>
+ <span className="ms-auto text-[11px] font-semibold text-green-600">{pros.length}</span>
</div>
<div className="flex flex-col gap-2">
{pros.map((p, i) => (
@@ -78,7 +78,7 @@ export function VerdictSection({ pros, cons }: { pros: string[]; cons: string[]
<Minus size={14} className="text-white" strokeWidth={3} />
</div>
<span className="hidden md:inline text-[11px] font-bold tracking-[0.1em] uppercase text-red-700 dark:text-red-400">{t('journey.verdict.couldBeBetter')}</span>
- <span className="ml-auto text-[11px] font-semibold text-red-600">{cons.length}</span>
+ <span className="ms-auto text-[11px] font-semibold text-red-600">{cons.length}</span>
</div>
<div className="flex flex-col gap-2">
{cons.map((c, i) => (
diff --git a/client/src/components/Journey/JourneyEntryCover.tsx b/client/src/components/Journey/JourneyEntryCover.tsx
index acdd73a78..689cb5973 100644
--- a/client/src/components/Journey/JourneyEntryCover.tsx
+++ b/client/src/components/Journey/JourneyEntryCover.tsx
@@ -103,7 +103,7 @@ export default function JourneyEntryCover({
// The whole card is the photo, so its own ring is what separates it from the
// map behind. A suggestion is drawn as an outline rather than a solid thing:
// it is somewhere you planned to be, not somewhere you have written about.
- className={`relative flex-none overflow-hidden rounded-[18px] text-left transition-[width,height] duration-150 ${
+ className={`relative flex-none overflow-hidden rounded-[18px] text-start transition-[width,height] duration-150 ${
isActive ? 'h-[180px] w-[164px] shadow-[0_18px_40px_-16px_rgba(0,0,0,.55)]' : 'h-[152px] w-[136px] shadow-[0_10px_24px_-14px_rgba(0,0,0,.5)]'
} ${src ? '' : emptyGround} ${isSuggestion ? 'opacity-90' : ''}`}
// backgroundImage, not background: the shorthand would drop the opaque colour
@@ -140,7 +140,7 @@ export default function JourneyEntryCover({
was doing, against a bright sky. Sized and placed to sit on the same line
as the date opposite it. */}
{entry.country_code && (
- <span className="absolute left-2 top-2 flex h-[18px] items-center drop-shadow-[0_1px_3px_rgba(0,0,0,.6)]">
+ <span className="absolute start-2 top-2 flex h-[18px] items-center drop-shadow-[0_1px_3px_rgba(0,0,0,.6)]">
<CountryFlag code={entry.country_code} size={14} />
</span>
)}
@@ -150,7 +150,7 @@ export default function JourneyEntryCover({
italic, dimmed title carries the rest. */}
{isSuggestion && (
<span
- className={`absolute top-2 ${entry.country_code ? 'left-[30px]' : 'left-2'} ${badgeDot} text-white`}
+ className={`absolute top-2 ${entry.country_code ? 'start-[30px]' : 'start-2'} ${badgeDot} text-white`}
title={t('journey.entry.suggestion')}
aria-label={t('journey.entry.suggestion')}
>
@@ -160,7 +160,7 @@ export default function JourneyEntryCover({
{/* Top right: when, and how it was. They fit beside each other now that the
flag on the left is a bare mark rather than a chip of its own. */}
- <span className="absolute right-2 top-2 flex items-center gap-1">
+ <span className="absolute end-2 top-2 flex items-center gap-1">
{mood && (
<span className={badgeDot} style={{ color: mood.color }}>
<mood.icon size={11} strokeWidth={2.4} />
diff --git a/client/src/components/Journey/JourneyShareSection.tsx b/client/src/components/Journey/JourneyShareSection.tsx
index 7d0a3e0a3..675c255e1 100644
--- a/client/src/components/Journey/JourneyShareSection.tsx
+++ b/client/src/components/Journey/JourneyShareSection.tsx
@@ -77,7 +77,7 @@ export default function JourneyShareSection({ journeyId }: { journeyId: number }
<div className="flex flex-col gap-3">
{/* URL + Copy */}
<div className="flex items-center gap-2 p-2 rounded-2xl bg-zinc-50 dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700">
- <Link size={13} className="text-zinc-400 flex-shrink-0 ml-1.5" />
+ <Link size={13} className="text-zinc-400 flex-shrink-0 ms-1.5" />
<span className="flex-1 text-[11px] text-zinc-600 dark:text-zinc-400 truncate">{shareUrl}</span>
<button type="button"
onClick={copyLink}
@@ -111,7 +111,7 @@ export default function JourneyShareSection({ journeyId }: { journeyId: number }
>
<Icon size={13} />
{label}
- {link[key] && <Check size={12} className="ml-auto" />}
+ {link[key] && <Check size={12} className="ms-auto" />}
</button>
))}
</div>
diff --git a/client/src/components/Journey/MobileEntryView.tsx b/client/src/components/Journey/MobileEntryView.tsx
index a6cad6306..d8c6bbed8 100644
--- a/client/src/components/Journey/MobileEntryView.tsx
+++ b/client/src/components/Journey/MobileEntryView.tsx
@@ -129,7 +129,7 @@ export default function MobileEntryView({ entry, readOnly, publicPhotoUrl, onClo
</button>
{photos.length > 1 && (
- <div className="absolute bottom-3 right-3 flex items-center gap-1 bg-black/60 backdrop-blur-sm text-white rounded-full px-2.5 py-1 text-[11px] font-medium">
+ <div className="absolute bottom-3 end-3 flex items-center gap-1 bg-black/60 backdrop-blur-sm text-white rounded-full px-2.5 py-1 text-[11px] font-medium">
<Camera size={12} />
{t('mobileJourney.photosCount', { count: photos.length })}
</div>
diff --git a/client/src/components/Journey/MobileMapTimeline.tsx b/client/src/components/Journey/MobileMapTimeline.tsx
index a42e7a7c7..dae09b97d 100644
--- a/client/src/components/Journey/MobileMapTimeline.tsx
+++ b/client/src/components/Journey/MobileMapTimeline.tsx
@@ -180,7 +180,7 @@ export default function MobileMapTimeline({
if (entries.length === 0) {
return (
<div
- className="fixed left-0 right-0 z-10"
+ className="fixed inset-x-0 z-10"
style={{ top: 'var(--nav-h, 0px)', bottom: 'env(safe-area-inset-bottom, 0px)' }}
>
<JourneyMap
@@ -196,7 +196,7 @@ export default function MobileMapTimeline({
cartoApiKey={cartoApiKey}
/>
{!readOnly && onAddEntry && (
- <div className="fixed right-4 z-30" style={{ bottom: 'calc(var(--bottom-nav-h, 84px) + 16px)' }}>
+ <div className="fixed end-4 z-30" style={{ bottom: 'calc(var(--bottom-nav-h, 84px) + 16px)' }}>
<button type="button"
onClick={onAddEntry}
className="w-12 h-12 rounded-full bg-zinc-900 dark:bg-white text-white dark:text-zinc-900 shadow-lg flex items-center justify-center hover:scale-105 active:scale-95 transition-transform"
@@ -211,7 +211,7 @@ export default function MobileMapTimeline({
return (
<div
- className="fixed left-0 right-0 z-10"
+ className="fixed inset-x-0 z-10"
style={{ top: 'var(--nav-h, 0px)', bottom: 'env(safe-area-inset-bottom, 0px)' }}
>
{/* Full-screen map */}
@@ -232,7 +232,7 @@ export default function MobileMapTimeline({
{/* Day bar + card carousel, as one block at the bottom of the map */}
<div
- className="fixed left-0 right-0 z-40"
+ className="fixed inset-x-0 z-40"
style={{ touchAction: 'pan-x', bottom: carouselBottom }}
>
<JourneyDayScrubber
@@ -274,7 +274,7 @@ export default function MobileMapTimeline({
{/* FAB: add entry — bottom right, above the timeline carousel */}
{!readOnly && onAddEntry && (
<div
- className="fixed right-4 z-30"
+ className="fixed end-4 z-30"
style={{ bottom: 'calc(var(--bottom-nav-h, 84px) + 226px)' }}
>
<button type="button"
diff --git a/client/src/components/Journey/PhotoLightbox.tsx b/client/src/components/Journey/PhotoLightbox.tsx
index 619d13df0..00dcae50d 100644
--- a/client/src/components/Journey/PhotoLightbox.tsx
+++ b/client/src/components/Journey/PhotoLightbox.tsx
@@ -105,7 +105,7 @@ export default function PhotoLightbox({ photos, startIndex = 0, onClose }: Props
style={{ flex: 1, display: 'flex', alignItems: 'center', justifyContent: 'center', position: 'relative', overflow: 'hidden' }}
>
{/* Top bar */}
- <div style={{ position: 'absolute', top: 0, left: 0, right: 0, zIndex: 10, display: 'flex', justifyContent: 'space-between', alignItems: 'center', padding: '16px 20px' }}>
+ <div style={{ position: 'absolute', top: 0, insetInline: 0, zIndex: 10, display: 'flex', justifyContent: 'space-between', alignItems: 'center', padding: '16px 20px' }}>
<span style={{ color: 'rgba(255,255,255,0.5)', fontSize: 'calc(13px * var(--fs-scale-body, 1))', fontWeight: 500 }}>
{idx + 1} / {photos.length}
</span>
diff --git a/client/src/components/Layout/BottomNav.tsx b/client/src/components/Layout/BottomNav.tsx
index 2946d8cf3..a252dc697 100644
--- a/client/src/components/Layout/BottomNav.tsx
+++ b/client/src/components/Layout/BottomNav.tsx
@@ -100,7 +100,7 @@ export default function BottomNav() {
<nav
className="md:hidden fixed z-[60] flex items-center"
style={{
- left: 12, right: 12,
+ insetInline: 12,
bottom: 'calc(12px + env(safe-area-inset-bottom, 0px))',
padding: '8px 8px',
borderRadius: 24,
diff --git a/client/src/components/Layout/DemoBanner.tsx b/client/src/components/Layout/DemoBanner.tsx
index 71d97a8a2..b40062b43 100644
--- a/client/src/components/Layout/DemoBanner.tsx
+++ b/client/src/components/Layout/DemoBanner.tsx
@@ -332,8 +332,7 @@ export default function DemoBanner(): React.ReactElement | null {
justifyContent: 'center',
paddingTop: 'max(16px, env(safe-area-inset-top))',
paddingBottom: 'max(16px, calc(env(safe-area-inset-bottom) + 80px))',
- paddingLeft: 16,
- paddingRight: 16,
+ paddingInline: 16,
overflow: 'auto',
fontFamily: 'var(--font-system)',
}}
@@ -508,7 +507,7 @@ export default function DemoBanner(): React.ReactElement | null {
color: '#94a3b8',
margin: 0,
lineHeight: 1.3,
- paddingLeft: 18,
+ paddingInlineStart: 18,
}}
>
{desc}
diff --git a/client/src/components/Layout/InAppNotificationBell.tsx b/client/src/components/Layout/InAppNotificationBell.tsx
index 18754f28e..a824c5077 100644
--- a/client/src/components/Layout/InAppNotificationBell.tsx
+++ b/client/src/components/Layout/InAppNotificationBell.tsx
@@ -52,7 +52,7 @@ export default function InAppNotificationBell(): React.ReactElement {
<Bell className="w-4 h-4" />
{unreadCount > 0 && (
<span
- className="absolute -top-0.5 -right-0.5 flex items-center justify-center rounded-full text-white font-bold"
+ className="absolute -top-0.5 -end-0.5 flex items-center justify-center rounded-full text-white font-bold"
style={{
background: '#ef4444',
fontSize: 'calc(9px * var(--fs-scale-caption, 1))',
@@ -76,7 +76,7 @@ export default function InAppNotificationBell(): React.ReactElement {
style={{
position: 'fixed',
top: 'var(--nav-h)',
- right: 8,
+ insetInlineEnd: 8,
width: 360,
maxWidth: 'calc(100vw - 16px)',
maxHeight: 'min(480px, calc(100vh - var(--nav-h) - 16px))',
@@ -92,7 +92,7 @@ export default function InAppNotificationBell(): React.ReactElement {
<span className="text-sm font-semibold text-content">
{t('notifications.title')}
{unreadCount > 0 && (
- <span className="ml-2 px-1.5 py-0.5 rounded-full text-xs font-medium bg-content text-surface">
+ <span className="ms-2 px-1.5 py-0.5 rounded-full text-xs font-medium bg-content text-surface">
{unreadCount}
</span>
)}
diff --git a/client/src/components/Layout/MobileTopBar.tsx b/client/src/components/Layout/MobileTopBar.tsx
index c87825756..fc5af6661 100644
--- a/client/src/components/Layout/MobileTopBar.tsx
+++ b/client/src/components/Layout/MobileTopBar.tsx
@@ -32,7 +32,7 @@ export default function MobileTopBar() {
>
<Bell size={20} strokeWidth={1.9} />
{unread > 0 && (
- <span style={{ position: 'absolute', top: 7, right: 7, width: 8, height: 8, borderRadius: '50%', background: 'oklch(0.7 0.17 38)', boxShadow: '0 0 0 2px var(--bg, #fff)' }} />
+ <span style={{ position: 'absolute', top: 7, insetInlineEnd: 7, width: 8, height: 8, borderRadius: '50%', background: 'oklch(0.7 0.17 38)', boxShadow: '0 0 0 2px var(--bg, #fff)' }} />
)}
</button>
<button type="button"
@@ -62,7 +62,7 @@ function ProfileSheet({ onClose }: { onClose: () => void }) {
<div className="fixed inset-0 z-[300] md:hidden" role="presentation" onClick={onClose}>
<div className="absolute inset-0 bg-black/50 backdrop-blur-sm" />
<div
- className="absolute bottom-0 left-0 right-0 bg-white dark:bg-zinc-900 rounded-t-2xl overflow-hidden"
+ className="absolute bottom-0 inset-x-0 bg-white dark:bg-zinc-900 rounded-t-2xl overflow-hidden"
style={{ animation: 'slideUp 0.25s ease-out', paddingBottom: 'env(safe-area-inset-bottom, 0px)' }}
role="presentation"
onClick={e => e.stopPropagation()}
@@ -93,7 +93,7 @@ function ProfileSheet({ onClose }: { onClose: () => void }) {
<div className="py-2 px-2">
<button type="button"
onClick={() => handleNav('/settings')}
- className="w-full flex items-center gap-3 px-4 py-3 rounded-xl text-left hover:bg-zinc-50 dark:hover:bg-zinc-800 active:bg-zinc-100 dark:active:bg-zinc-800 transition-colors"
+ className="w-full flex items-center gap-3 px-4 py-3 rounded-xl text-start hover:bg-zinc-50 dark:hover:bg-zinc-800 active:bg-zinc-100 dark:active:bg-zinc-800 transition-colors"
>
<Settings size={18} className="text-zinc-500" />
<span className="text-[14px] font-medium text-zinc-900 dark:text-white">{t('nav.bottomSettings')}</span>
@@ -102,7 +102,7 @@ function ProfileSheet({ onClose }: { onClose: () => void }) {
{user?.role === 'admin' && (
<button type="button"
onClick={() => handleNav('/admin')}
- className="w-full flex items-center gap-3 px-4 py-3 rounded-xl text-left hover:bg-zinc-50 dark:hover:bg-zinc-800 active:bg-zinc-100 dark:active:bg-zinc-800 transition-colors"
+ className="w-full flex items-center gap-3 px-4 py-3 rounded-xl text-start hover:bg-zinc-50 dark:hover:bg-zinc-800 active:bg-zinc-100 dark:active:bg-zinc-800 transition-colors"
>
<Shield size={18} className="text-zinc-500" />
<span className="text-[14px] font-medium text-zinc-900 dark:text-white">{t('nav.bottomAdmin')}</span>
@@ -115,7 +115,7 @@ function ProfileSheet({ onClose }: { onClose: () => void }) {
<div className="py-2 px-2">
<button type="button"
onClick={handleLogout}
- className="w-full flex items-center gap-3 px-4 py-3 rounded-xl text-left hover:bg-red-50 dark:hover:bg-red-900/20 active:bg-red-100 transition-colors"
+ className="w-full flex items-center gap-3 px-4 py-3 rounded-xl text-start hover:bg-red-50 dark:hover:bg-red-900/20 active:bg-red-100 transition-colors"
>
<LogOut size={18} className="text-red-500" />
<span className="text-[14px] font-medium text-red-600 dark:text-red-400">{t('nav.bottomLogout')}</span>
diff --git a/client/src/components/Layout/Navbar.tsx b/client/src/components/Layout/Navbar.tsx
index 9aad83c2e..e40abb83b 100644
--- a/client/src/components/Layout/Navbar.tsx
+++ b/client/src/components/Layout/Navbar.tsx
@@ -110,7 +110,7 @@ export default function Navbar({ tripTitle, tripId, onBack, showBack, onShare }:
paddingTop: 'env(safe-area-inset-top, 0px)',
height: 'var(--nav-h)',
transition: 'background 240ms cubic-bezier(0.23,1,0.32,1), backdrop-filter 240ms cubic-bezier(0.23,1,0.32,1), box-shadow 240ms cubic-bezier(0.23,1,0.32,1)',
- }} className="hidden md:flex items-center px-4 gap-4 fixed top-0 left-0 right-0 z-[200]">
+ }} className="hidden md:flex items-center px-4 gap-4 fixed top-0 inset-x-0 z-[200]">
{/* Left side. flex-1 basis-0, matching the action cluster on the right, so
the tab pill between them sits in the middle of the bar rather than
being centred on top of both (#1983). */}
@@ -277,7 +277,7 @@ export default function Navbar({ tripTitle, tripId, onBack, showBack, onShare }:
{userMenuOpen && createPortal(
<>
<div style={{ position: 'fixed', inset: 0, zIndex: 9998 }} role="presentation" onClick={() => setUserMenuOpen(false)} />
- <div className="trek-menu-enter w-52 rounded-xl shadow-xl border overflow-hidden bg-surface-card border-edge" style={{ position: 'fixed', top: 'var(--nav-h)', right: 8, zIndex: 9999 }}>
+ <div className="trek-menu-enter w-52 rounded-xl shadow-xl border overflow-hidden bg-surface-card border-edge" style={{ position: 'fixed', top: 'var(--nav-h)', insetInlineEnd: 8, zIndex: 9999 }}>
<div className="px-4 py-3 border-b border-edge-secondary">
<p className="text-sm font-medium text-content">{user.username}</p>
<p className="text-xs truncate text-content-muted">{user.email}</p>
diff --git a/client/src/components/Layout/PageSidebar.tsx b/client/src/components/Layout/PageSidebar.tsx
index 348f549db..3559a06ec 100644
--- a/client/src/components/Layout/PageSidebar.tsx
+++ b/client/src/components/Layout/PageSidebar.tsx
@@ -93,7 +93,7 @@ export default function PageSidebar({
/>
<aside
ref={drawerRef}
- className="lg:hidden fixed top-0 left-0 bottom-0 z-50 flex flex-col shadow-2xl bg-surface-secondary"
+ className="lg:hidden fixed top-0 start-0 bottom-0 z-50 flex flex-col shadow-2xl bg-surface-secondary"
style={{
width: 280,
padding: '18px 14px',
@@ -174,7 +174,7 @@ function SidebarInner({
<button type="button"
onClick={() => onTabChange(tab.id)}
aria-current={active ? 'page' : undefined}
- className={`flex items-center gap-2.5 rounded-[11px] px-2 py-1.5 text-left transition-colors ${active ? 'bg-surface-card font-semibold text-content shadow-sm ring-1 ring-edge-faint' : 'font-medium text-content-secondary hover:bg-surface-hover hover:text-content'}`}
+ className={`flex items-center gap-2.5 rounded-[11px] px-2 py-1.5 text-start transition-colors ${active ? 'bg-surface-card font-semibold text-content shadow-sm ring-1 ring-edge-faint' : 'font-medium text-content-secondary hover:bg-surface-hover hover:text-content'}`}
style={{ fontSize: 'calc(13px * var(--fs-scale-body, 1))' }}
>
<span className={`grid h-7 w-7 shrink-0 place-items-center rounded-[8px] ${active ? 'bg-accent text-accent-text' : 'bg-surface-tertiary text-content-muted'}`}>
diff --git a/client/src/components/Map/PlaceHoverCard.tsx b/client/src/components/Map/PlaceHoverCard.tsx
index 93a677caa..ca553eba6 100644
--- a/client/src/components/Map/PlaceHoverCard.tsx
+++ b/client/src/components/Map/PlaceHoverCard.tsx
@@ -36,7 +36,7 @@ export default function PlaceHoverCard({ x, y, name, categoryName, categoryIcon,
const tone = categoryName ? categoryColor || 'var(--text-muted)' : null
return (
<div data-testid="tooltip"
- className="flex max-w-[300px] items-center gap-3 rounded-[18px] border border-edge-faint bg-surface-card p-1.5 pr-4 font-system shadow-popover"
+ className="flex max-w-[300px] items-center gap-3 rounded-[18px] border border-edge-faint bg-surface-card p-1.5 pe-4 font-system shadow-popover"
style={{ position: 'fixed', left: x + 14, top: y - 10, zIndex: 9999, pointerEvents: 'none' }}>
{/* Twelve inside eighteen with six of padding: the picture's corners follow the card's. */}
{photo ? (
diff --git a/client/src/components/Map/TripRouteOverview.tsx b/client/src/components/Map/TripRouteOverview.tsx
index feba9d3c5..4db303931 100644
--- a/client/src/components/Map/TripRouteOverview.tsx
+++ b/client/src/components/Map/TripRouteOverview.tsx
@@ -118,7 +118,7 @@ export function TripRouteOverviewPanel({ overview, unit, selectedDayId, onSelect
)
const style = {
display: 'flex', alignItems: 'center', gap: 8, width: '100%',
- padding: '7px 14px', textAlign: 'left' as const,
+ padding: '7px 14px', textAlign: 'start' as const,
fontSize: 'calc(12px * var(--fs-scale-body, 1))',
background: day.dayId === selectedDayId ? 'var(--bg-hover)' : 'transparent',
border: 'none',
diff --git a/client/src/components/Notifications/InAppNotificationItem.tsx b/client/src/components/Notifications/InAppNotificationItem.tsx
index 6a501baec..3c4eed44e 100644
--- a/client/src/components/Notifications/InAppNotificationItem.tsx
+++ b/client/src/components/Notifications/InAppNotificationItem.tsx
@@ -88,7 +88,7 @@ export default function InAppNotificationItem({ notification, onClose }: Notific
{hasUnknownTitle ? notification.title_key : titleText}
</p>
<div className="flex items-center gap-0.5 flex-shrink-0">
- <span className="text-xs mr-1 text-content-faint">
+ <span className="text-xs me-1 text-content-faint">
{relativeTime(notification.created_at, locale)}
</span>
{!notification.is_read && (
diff --git a/client/src/components/OAuth/ScopeGroupPicker.tsx b/client/src/components/OAuth/ScopeGroupPicker.tsx
index 4b0738d3c..6bf6df654 100644
--- a/client/src/components/OAuth/ScopeGroupPicker.tsx
+++ b/client/src/components/OAuth/ScopeGroupPicker.tsx
@@ -64,7 +64,7 @@ export default function ScopeGroupPicker({ selected, onChange }: Props): React.R
type="button"
onClick={() => setOpen(prev => ({ ...prev, [group]: !prev[group] }))}
aria-expanded={!!open[group]}
- className="flex min-w-0 flex-1 items-center gap-1.5 text-left text-content-secondary hover:text-content"
+ className="flex min-w-0 flex-1 items-center gap-1.5 text-start text-content-secondary hover:text-content"
>
{open[group]
? <ChevronDown size={13} className="flex-none" />
@@ -102,7 +102,7 @@ export default function ScopeGroupPicker({ selected, onChange }: Props): React.R
role="checkbox"
aria-checked={on}
onClick={() => onChange(on ? selected.filter(s => s !== scope) : [...selected, scope])}
- className="flex w-full items-start gap-2.5 px-3.5 py-2.5 text-left transition-colors hover:bg-surface-tertiary"
+ className="flex w-full items-start gap-2.5 px-3.5 py-2.5 text-start transition-colors hover:bg-surface-tertiary"
>
<span className="mt-px"><CheckBox checked={on} /></span>
<span className="min-w-0 flex-1">
diff --git a/client/src/components/Packing/ApplyTemplateButton.tsx b/client/src/components/Packing/ApplyTemplateButton.tsx
index 01de45335..1efc173ba 100644
--- a/client/src/components/Packing/ApplyTemplateButton.tsx
+++ b/client/src/components/Packing/ApplyTemplateButton.tsx
@@ -72,7 +72,7 @@ export default function ApplyTemplateButton({ tripId, visibility, style, classNa
<div
className="trek-menu-enter"
style={{
- position: 'absolute', right: 0, top: '100%', marginTop: 6, zIndex: 50,
+ position: 'absolute', insetInlineEnd: 0, top: '100%', marginTop: 6, zIndex: 50,
background: 'var(--bg-card)', border: '1px solid var(--border-primary)', borderRadius: 10,
boxShadow: '0 4px 16px rgba(0,0,0,0.12)', padding: 4, minWidth: 220,
transformOrigin: 'top right',
@@ -89,7 +89,7 @@ export default function ApplyTemplateButton({ tripId, visibility, style, classNa
onMouseLeave={e => e.currentTarget.style.background = 'transparent'}
>
<Package size={13} className="text-content-faint" />
- <div style={{ flex: 1, textAlign: 'left' }}>
+ <div style={{ flex: 1, textAlign: 'start' }}>
<div style={{ fontWeight: 600 }}>{tmpl.name}</div>
<div style={{ fontSize: 'calc(10px * var(--fs-scale-caption, 1))', color: 'var(--text-faint)' }}>
{tmpl.item_count} {t('admin.packingTemplates.items')}
diff --git a/client/src/components/Packing/PackingExportMenu.tsx b/client/src/components/Packing/PackingExportMenu.tsx
index 7822df1f2..00f33c902 100644
--- a/client/src/components/Packing/PackingExportMenu.tsx
+++ b/client/src/components/Packing/PackingExportMenu.tsx
@@ -18,7 +18,7 @@ function MenuItem({ icon: Icon, label, onClick }: { icon: LucideIcon; label: str
type="button"
role="menuitem"
onClick={onClick}
- className="flex w-full items-center gap-2 rounded-lg px-3 py-2 text-left text-caption font-medium text-content hover:bg-surface-tertiary"
+ className="flex w-full items-center gap-2 rounded-lg px-3 py-2 text-start text-caption font-medium text-content hover:bg-surface-tertiary"
>
<Icon size={13} className="text-content-faint" />
{label}
@@ -76,7 +76,7 @@ export default function PackingExportMenu({ tripId, view, style, className }: Pa
{open && (
<div
role="menu"
- className="trek-menu-enter absolute right-0 top-full z-50 mt-1.5 min-w-[220px] origin-top-right rounded-[10px] border border-edge bg-surface-card p-1 shadow-dropdown"
+ className="trek-menu-enter absolute end-0 top-full z-50 mt-1.5 min-w-[220px] origin-top-right rounded-[10px] border border-edge bg-surface-card p-1 shadow-dropdown"
>
<MenuItem icon={Printer} label={t('packing.exportPrint')} onClick={choose(packingExport.openPrint)} />
<MenuItem icon={FileText} label={t('packing.exportMarkdown')} onClick={choose(packingExport.exportMarkdown)} />
diff --git a/client/src/components/Packing/PackingListPanelBagCard.tsx b/client/src/components/Packing/PackingListPanelBagCard.tsx
index be279b529..c56806c50 100644
--- a/client/src/components/Packing/PackingListPanelBagCard.tsx
+++ b/client/src/components/Packing/PackingListPanelBagCard.tsx
@@ -72,7 +72,7 @@ export function BagCard({ bag, bagItems, totalWeight, pct, tripId, tripMembers,
style={{ flex: 1, fontSize: sz.name, fontWeight: 600, padding: '1px 4px', borderRadius: 4, border: '1px solid var(--border-primary)', outline: 'none', fontFamily: 'inherit', color: 'var(--text-primary)', background: 'transparent' }} />
) : (
<button type="button" disabled={!canEdit} onClick={() => setEditingName(true)}
- style={{ flex: 1, minWidth: 0, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', fontSize: sz.name, fontWeight: 700, color: 'var(--text-primary)', cursor: canEdit ? 'text' : 'default', background: 'none', border: 'none', padding: 0, textAlign: 'left', fontFamily: 'inherit' }}>{bag.name}</button>
+ style={{ flex: 1, minWidth: 0, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', fontSize: sz.name, fontWeight: 700, color: 'var(--text-primary)', cursor: canEdit ? 'text' : 'default', background: 'none', border: 'none', padding: 0, textAlign: 'start', fontFamily: 'inherit' }}>{bag.name}</button>
)}
{/* Members */}
<div ref={membersRef} style={{ display: 'flex', alignItems: 'center', gap: 3, flexShrink: 0, position: 'relative' }}>
diff --git a/client/src/components/Packing/PackingListPanelBagSidebar.tsx b/client/src/components/Packing/PackingListPanelBagSidebar.tsx
index 2054e586c..81c0edb3e 100644
--- a/client/src/components/Packing/PackingListPanelBagSidebar.tsx
+++ b/client/src/components/Packing/PackingListPanelBagSidebar.tsx
@@ -36,9 +36,9 @@ export function BagSidebar(S: PackingState) {
useDismissOnOutside(composerRef, showAddBag, closeComposer)
return (
- <div className="hidden xl:block" style={{ width: 272, marginLeft: 16, overflowY: 'auto', padding: '10px 0 16px', flexShrink: 0 }}>
+ <div className="hidden xl:block" style={{ width: 272, marginInlineStart: 16, overflowY: 'auto', padding: '10px 0 16px', flexShrink: 0 }}>
<div style={{ background: 'var(--bg-card)', borderRadius: 16, border: '1px solid var(--border-secondary)' }}>
- <div style={{ display: 'flex', alignItems: 'center', gap: 8, padding: '9px 10px 9px 14px', background: 'var(--bg-tertiary)', borderRadius: '15px 15px 0 0' }}>
+ <div style={{ display: 'flex', alignItems: 'center', gap: 8, paddingBlock: 9, paddingInlineEnd: 10, paddingInlineStart: 14, background: 'var(--bg-tertiary)', borderRadius: '15px 15px 0 0' }}>
<Briefcase size={14} style={{ color: 'var(--text-faint)', flexShrink: 0 }} />
<span style={{ flex: 1, fontSize: 'calc(14px * var(--fs-scale-body, 1))', fontWeight: 700, color: 'var(--text-primary)', letterSpacing: '-0.01em' }}>
{t('packing.bags')}
@@ -52,7 +52,7 @@ export function BagSidebar(S: PackingState) {
</div>
{canEdit && showAddBag && (
- <div ref={composerRef} style={{ ...COMPOSER, margin: '10px 10px 0', padding: '4px 4px 4px 10px' }}>
+ <div ref={composerRef} style={{ ...COMPOSER, margin: '10px 10px 0', paddingBlock: 4, paddingInlineEnd: 4, paddingInlineStart: 10 }}>
<span aria-hidden style={{ width: 10, height: 10, borderRadius: '50%', border: '1.5px dashed var(--text-faint)', flexShrink: 0 }} />
<input autoFocus value={newBagName} onChange={e => setNewBagName(e.target.value)}
onKeyDown={e => { if (e.key === 'Enter') void handleCreateBag(); if (e.key === 'Escape') closeComposer() }}
diff --git a/client/src/components/Packing/PackingListPanelCategoryGroup.tsx b/client/src/components/Packing/PackingListPanelCategoryGroup.tsx
index 8b6010312..78a4761b1 100644
--- a/client/src/components/Packing/PackingListPanelCategoryGroup.tsx
+++ b/client/src/components/Packing/PackingListPanelCategoryGroup.tsx
@@ -121,7 +121,7 @@ export function KategorieGruppe({ kategorie, items, tripId, allCategories, onRen
// Shaped after the phone's category card: a tinted head band carrying the
// name as written, the count, and the fold arrow on the far right.
<div style={{ marginBottom: 6, background: 'var(--bg-card)', borderRadius: 16, border: '1px solid var(--border-secondary)', overflow: 'visible' }}>
- <div style={{ display: 'flex', alignItems: 'center', gap: 8, padding: '11px 12px 11px 14px', background: 'var(--bg-tertiary)', borderRadius: offen ? '15px 15px 0 0' : 15 }}>
+ <div style={{ display: 'flex', alignItems: 'center', gap: 8, paddingBlock: 11, paddingInlineEnd: 12, paddingInlineStart: 14, background: 'var(--bg-tertiary)', borderRadius: offen ? '15px 15px 0 0' : 15 }}>
<span style={{ width: 10, height: 10, borderRadius: '50%', background: dot, flexShrink: 0 }} />
{editingName && canEdit ? (
@@ -139,7 +139,7 @@ export function KategorieGruppe({ kategorie, items, tripId, allCategories, onRen
)}
{/* Assignee chips */}
- <div style={{ display: 'flex', alignItems: 'center', gap: 3, flex: 1, minWidth: 0, marginLeft: 4 }}>
+ <div style={{ display: 'flex', alignItems: 'center', gap: 3, flex: 1, minWidth: 0, marginInlineStart: 4 }}>
{assignees.map(a => {
// The chip is only ever clickable for an editor, so read-only members
// get the plain div back rather than a focusable stop that does nothing.
@@ -191,7 +191,7 @@ export function KategorieGruppe({ kategorie, items, tripId, allCategories, onRen
<UserPlus size={10} />
</button>
{showAssigneeDropdown && (
- <div className="trek-menu-enter" style={{ ...POPOVER, position: 'absolute', left: 0, top: '100%', marginTop: 6, zIndex: 50, minWidth: 190 }}>
+ <div className="trek-menu-enter" style={{ ...POPOVER, position: 'absolute', insetInlineStart: 0, top: '100%', marginTop: 6, zIndex: 50, minWidth: 190 }}>
{tripMembers.map(m => {
const isAssigned = assignees.some(a => a.user_id === m.id)
return (
@@ -299,7 +299,7 @@ export function KategorieGruppe({ kategorie, items, tripId, allCategories, onRen
{canEdit && (showAddItem ? (
// The new item already looks like a row: an empty box in the checkbox
// column, the name typed where names sit, and the add as the accent.
- <div style={{ ...COMPOSER, gap: 9, margin: '6px 4px 0', padding: '4px 4px 4px 27px' }}>
+ <div style={{ ...COMPOSER, gap: 9, margin: '6px 4px 0', paddingBlock: 4, paddingInlineEnd: 4, paddingInlineStart: 27 }}>
<span aria-hidden style={{ width: 20, height: 20, borderRadius: 6, border: '1.5px solid var(--text-faint)', opacity: 0.6, flexShrink: 0 }} />
<input
ref={addItemRef}
@@ -333,7 +333,7 @@ export function KategorieGruppe({ kategorie, items, tripId, allCategories, onRen
// of trailing off: a dashed box in the checkbox column (past the drag
// grip's width) and the label where an item's name sits.
<button type="button" onClick={() => { setShowAddItem(true); setTimeout(() => addItemRef.current?.focus(), 30) }}
- style={{ display: 'flex', alignItems: 'center', gap: 9, width: 'calc(100% - 8px)', margin: '6px 4px 0', padding: '8px 10px 8px 28px', borderRadius: 10, border: 'none', background: 'var(--bg-secondary)', cursor: 'pointer', fontSize: 'calc(13px * var(--fs-scale-body, 1))', fontWeight: 500, color: 'var(--text-faint)', fontFamily: 'inherit', textAlign: 'left' }}
+ style={{ display: 'flex', alignItems: 'center', gap: 9, width: 'calc(100% - 8px)', margin: '6px 4px 0', paddingBlock: 8, paddingInlineEnd: 10, paddingInlineStart: 28, borderRadius: 10, border: 'none', background: 'var(--bg-secondary)', cursor: 'pointer', fontSize: 'calc(13px * var(--fs-scale-body, 1))', fontWeight: 500, color: 'var(--text-faint)', fontFamily: 'inherit', textAlign: 'start' }}
onMouseEnter={e => e.currentTarget.style.color = 'var(--text-secondary)'}
onMouseLeave={e => e.currentTarget.style.color = 'var(--text-faint)'}>
<span style={{ width: 20, height: 20, borderRadius: 6, border: '1.5px dashed currentColor', display: 'grid', placeItems: 'center', flexShrink: 0 }}>
diff --git a/client/src/components/Packing/PackingListPanelHeader.tsx b/client/src/components/Packing/PackingListPanelHeader.tsx
index 49848e318..68c803b40 100644
--- a/client/src/components/Packing/PackingListPanelHeader.tsx
+++ b/client/src/components/Packing/PackingListPanelHeader.tsx
@@ -58,7 +58,7 @@ export function PackingHeader(S: PackingState) {
</button>
{showTemplateDropdown && (
<div style={{
- position: 'absolute', right: 0, top: '100%', marginTop: 6, zIndex: 50,
+ position: 'absolute', insetInlineEnd: 0, top: '100%', marginTop: 6, zIndex: 50,
background: 'var(--bg-card)', border: '1px solid var(--border-primary)', borderRadius: 10,
boxShadow: '0 4px 16px rgba(0,0,0,0.12)', padding: 4, minWidth: 200,
}}>
@@ -74,7 +74,7 @@ export function PackingHeader(S: PackingState) {
onMouseLeave={e => e.currentTarget.style.background = 'transparent'}
>
<Package size={13} className="text-content-faint" />
- <div style={{ flex: 1, textAlign: 'left' }}>
+ <div style={{ flex: 1, textAlign: 'start' }}>
<div style={{ fontWeight: 600 }}>{tmpl.name}</div>
<div style={{ fontSize: 'calc(10px * var(--fs-scale-caption, 1))', color: 'var(--text-faint)' }}>{tmpl.item_count} {t('admin.packingTemplates.items')}</div>
</div>
@@ -131,7 +131,7 @@ export function PackingHeader(S: PackingState) {
}}>{abgehakt}</span>
<span style={{
fontSize: 'calc(14px * var(--fs-scale-body, 1))', fontWeight: 500, color: 'var(--text-faint)',
- fontVariantNumeric: 'tabular-nums', lineHeight: 1, marginLeft: 1,
+ fontVariantNumeric: 'tabular-nums', lineHeight: 1, marginInlineStart: 1,
}}>/{items.length}</span>
</div>
<span style={{
diff --git a/client/src/components/Packing/PackingListPanelImportModal.tsx b/client/src/components/Packing/PackingListPanelImportModal.tsx
index 477deb82f..a527df0f0 100644
--- a/client/src/components/Packing/PackingListPanelImportModal.tsx
+++ b/client/src/components/Packing/PackingListPanelImportModal.tsx
@@ -42,7 +42,7 @@ export function BulkImportModal(S: PackingState) {
{t('packing.importHintMarkdown')}
</p>
<div className="flex overflow-hidden rounded-[10px] border border-edge bg-surface-input focus-within:ring-2 focus-within:ring-[color:var(--text-primary)]">
- <div aria-hidden className="min-w-8 flex-none select-none border-r border-edge-faint bg-surface-tertiary py-2.5 text-right font-mono leading-normal text-content-faint" style={text}>
+ <div aria-hidden className="min-w-8 flex-none select-none border-e border-edge-faint bg-surface-tertiary py-2.5 text-end font-mono leading-normal text-content-faint" style={text}>
{(importText || ' ').split('\n').map((_, i) => (
<div key={i} className="px-1.5">{i + 1}</div>
))}
diff --git a/client/src/components/Packing/PackingListPanelItemRow.tsx b/client/src/components/Packing/PackingListPanelItemRow.tsx
index 2487ec8f2..0f3f65c4a 100644
--- a/client/src/components/Packing/PackingListPanelItemRow.tsx
+++ b/client/src/components/Packing/PackingListPanelItemRow.tsx
@@ -196,7 +196,7 @@ export function ArtikelZeile({ item, tripId, categories, onCategoryChange: _onCa
<button
type="button"
onClick={() => setEditing(true)}
- style={{ ...nameStyle, border: 'none', background: 'none', padding: 0, textAlign: 'left', fontFamily: 'inherit' }}
+ style={{ ...nameStyle, border: 'none', background: 'none', padding: 0, textAlign: 'start', fontFamily: 'inherit' }}
>
{item.name}
</button>
@@ -256,7 +256,7 @@ export function ArtikelZeile({ item, tripId, categories, onCategoryChange: _onCa
try { await updatePackingItem(tripId, item.id, { weight_grams: v }) } catch { toast.error(t('packing.toast.saveError')) }
}}
placeholder="—"
- style={{ width: 36, border: 'none', fontSize: 'calc(12px * var(--fs-scale-body, 1))', textAlign: 'right', fontFamily: 'inherit', outline: 'none', color: 'var(--text-secondary)', background: 'transparent', padding: 0 }}
+ style={{ width: 36, border: 'none', fontSize: 'calc(12px * var(--fs-scale-body, 1))', textAlign: 'end', fontFamily: 'inherit', outline: 'none', color: 'var(--text-secondary)', background: 'transparent', padding: 0 }}
/>
<span style={{ fontSize: 'calc(10px * var(--fs-scale-caption, 1))', color: 'var(--text-faint)', userSelect: 'none' }}>g</span>
</div>
@@ -385,7 +385,7 @@ export function ArtikelZeile({ item, tripId, categories, onCategoryChange: _onCa
try { await updatePackingItem(tripId, item.id, { weight_grams: v }) } catch { toast.error(t('packing.toast.saveError')) }
}}
placeholder="—"
- style={{ width: 42, border: 'none', fontSize: 'calc(12px * var(--fs-scale-body, 1))', textAlign: 'right', fontFamily: 'inherit', outline: 'none', color: 'var(--text-secondary)', background: 'transparent', padding: 0 }}
+ style={{ width: 42, border: 'none', fontSize: 'calc(12px * var(--fs-scale-body, 1))', textAlign: 'end', fontFamily: 'inherit', outline: 'none', color: 'var(--text-secondary)', background: 'transparent', padding: 0 }}
/>
<span style={{ fontSize: 'calc(10px * var(--fs-scale-caption, 1))', color: 'var(--text-faint)', userSelect: 'none' }}>g</span>
</div>
@@ -411,7 +411,7 @@ export function ArtikelZeile({ item, tripId, categories, onCategoryChange: _onCa
<PopoverItem icon={<span style={{ width: 9, height: 9, borderRadius: '50%', background: katColor(item.category || t('packing.defaultCategory'), categories), display: 'inline-block' }} />} label={t('packing.changeCategory')} onClick={() => setShowMenuCategories(v => !v)}
trailing={showMenuCategories ? <ChevronDown size={13} style={{ color: 'var(--text-faint)', flexShrink: 0 }} /> : <ChevronRight size={13} style={{ color: 'var(--text-faint)', flexShrink: 0 }} />} />
{showMenuCategories && (
- <div style={{ margin: '2px 0 4px 18px', paddingLeft: 6, borderLeft: '1px solid var(--border-faint)' }}>
+ <div style={{ marginBlock: '2px 4px', marginInlineStart: 18, paddingInlineStart: 6, borderInlineStart: '1px solid var(--border-faint)' }}>
{categories.map(cat => (
<PopoverItem key={cat} icon={<span style={{ width: 8, height: 8, borderRadius: '50%', background: katColor(cat, categories), display: 'inline-block' }} />} label={cat} active={cat === (item.category || t('packing.defaultCategory'))} onClick={() => handleCatChange(cat)} />
))}
diff --git a/client/src/components/Packing/PackingListPanelQuantityInput.tsx b/client/src/components/Packing/PackingListPanelQuantityInput.tsx
index 68dce06f0..7f3197d6b 100644
--- a/client/src/components/Packing/PackingListPanelQuantityInput.tsx
+++ b/client/src/components/Packing/PackingListPanelQuantityInput.tsx
@@ -19,7 +19,7 @@ export function QuantityInput({ value, onSave, style }: { value: number; onSave:
onValueChange={setLocal}
onBlur={commit}
onKeyDown={e => { if (e.key === 'Enter') { commit(); (e.target as HTMLInputElement).blur() } }}
- style={{ width: 24, border: 'none', outline: 'none', background: 'transparent', fontSize: 'calc(12px * var(--fs-scale-body, 1))', textAlign: 'right', fontFamily: 'inherit', color: 'var(--text-secondary)', padding: 0 }}
+ style={{ width: 24, border: 'none', outline: 'none', background: 'transparent', fontSize: 'calc(12px * var(--fs-scale-body, 1))', textAlign: 'end', fontFamily: 'inherit', color: 'var(--text-secondary)', padding: 0 }}
/>
<span style={{ fontSize: 'calc(10px * var(--fs-scale-caption, 1))', color: 'var(--text-faint)', fontWeight: 500 }}>x</span>
</div>
diff --git a/client/src/components/Packing/PackingListPanelViewTabs.tsx b/client/src/components/Packing/PackingListPanelViewTabs.tsx
index 62759b643..4178b094d 100644
--- a/client/src/components/Packing/PackingListPanelViewTabs.tsx
+++ b/client/src/components/Packing/PackingListPanelViewTabs.tsx
@@ -58,7 +58,7 @@ export function PackingViewTabs(S: PackingState) {
)}
{items.length > 0 && (
// A second click on the active switch goes back to the manual order.
- <div role="group" aria-label={t('packing.sortBy')} style={{ ...track, marginLeft: 'auto' }}>
+ <div role="group" aria-label={t('packing.sortBy')} style={{ ...track, marginInlineStart: 'auto' }}>
<button type="button" aria-pressed={sort === 'name'} title={t('packing.sortByName')}
onClick={() => setSort(sort === 'name' ? 'manual' : 'name')} style={segment(sort === 'name')}>
<ArrowDownAZ size={14} /><span className="hidden sm:inline">{t('packing.sortByName')}</span>
diff --git a/client/src/components/Packing/PackingPopover.tsx b/client/src/components/Packing/PackingPopover.tsx
index 1b46c493e..c64396b3d 100644
--- a/client/src/components/Packing/PackingPopover.tsx
+++ b/client/src/components/Packing/PackingPopover.tsx
@@ -24,7 +24,7 @@ export function PopoverItem({ icon, label, onClick, active = false, danger = fal
padding: '8px 10px', borderRadius: 9, border: 'none', cursor: 'pointer',
background: active ? 'var(--bg-tertiary)' : 'none',
color: tone,
- fontFamily: 'inherit', fontSize: 'calc(12.5px * var(--fs-scale-body, 1))', fontWeight: 500, textAlign: 'left',
+ fontFamily: 'inherit', fontSize: 'calc(12.5px * var(--fs-scale-body, 1))', fontWeight: 500, textAlign: 'start',
}}
onMouseEnter={e => { if (!active) e.currentTarget.style.background = danger ? 'rgba(239,68,68,0.1)' : 'var(--bg-tertiary)' }}
onMouseLeave={e => { if (!active) e.currentTarget.style.background = 'none' }}
diff --git a/client/src/components/Packing/PackingShareControl.tsx b/client/src/components/Packing/PackingShareControl.tsx
index 13eb80ecb..21e87183f 100644
--- a/client/src/components/Packing/PackingShareControl.tsx
+++ b/client/src/components/Packing/PackingShareControl.tsx
@@ -123,7 +123,7 @@ export default function PackingShareControl({ item, tripMembers, currentUserId,
onMouseEnter={e => e.currentTarget.style.background = 'var(--bg-tertiary)'}
onMouseLeave={e => e.currentTarget.style.background = 'none'}>
<span style={{ width: 18, height: 18, borderRadius: '50%', flexShrink: 0, background: `hsl(${(m.username.codePointAt(0) ?? 0) * 37 % 360}, 55%, 55%)`, display: 'flex', alignItems: 'center', justifyContent: 'center', fontSize: 'calc(9px * var(--fs-scale-caption, 1))', fontWeight: 700, color: 'white', textTransform: 'uppercase' }}>{m.username[0]}</span>
- <span style={{ flex: 1, textAlign: 'left', overflow: 'hidden', textOverflow: 'ellipsis' }}>{m.username}</span>
+ <span style={{ flex: 1, textAlign: 'start', overflow: 'hidden', textOverflow: 'ellipsis' }}>{m.username}</span>
{on && <Check size={13} className="text-content-muted" />}
</button>
)
@@ -139,7 +139,7 @@ export default function PackingShareControl({ item, tripMembers, currentUserId,
function Row({ icon, label, sub, active, onClick }: { icon: React.ReactNode; label: string; sub: string; active: boolean; onClick: () => void }) {
return (
<button type="button" onClick={onClick}
- style={{ display: 'flex', alignItems: 'flex-start', gap: 8, width: '100%', padding: '7px 10px', borderRadius: 7, border: 'none', cursor: 'pointer', background: active ? 'var(--bg-tertiary)' : 'none', fontFamily: 'inherit', textAlign: 'left' }}
+ style={{ display: 'flex', alignItems: 'flex-start', gap: 8, width: '100%', padding: '7px 10px', borderRadius: 7, border: 'none', cursor: 'pointer', background: active ? 'var(--bg-tertiary)' : 'none', fontFamily: 'inherit', textAlign: 'start' }}
onMouseEnter={e => { if (!active) e.currentTarget.style.background = 'var(--bg-tertiary)' }}
onMouseLeave={e => { if (!active) e.currentTarget.style.background = 'none' }}>
<span style={{ color: active ? 'var(--accent)' : 'var(--text-muted)', marginTop: 1 }}>{icon}</span>
@@ -159,7 +159,7 @@ function MenuRow({ icon, label, hint, active = false, onClick, buttonRef }: {
}) {
return (
<button type="button" ref={buttonRef} onClick={onClick}
- style={{ display: 'flex', alignItems: 'center', gap: 9, width: '100%', padding: '8px 10px', borderRadius: 9, border: 'none', cursor: 'pointer', background: active ? 'var(--bg-tertiary)' : 'none', color: 'var(--text-primary)', fontFamily: 'inherit', fontSize: 'calc(12.5px * var(--fs-scale-body, 1))', fontWeight: 500, textAlign: 'left' }}
+ style={{ display: 'flex', alignItems: 'center', gap: 9, width: '100%', padding: '8px 10px', borderRadius: 9, border: 'none', cursor: 'pointer', background: active ? 'var(--bg-tertiary)' : 'none', color: 'var(--text-primary)', fontFamily: 'inherit', fontSize: 'calc(12.5px * var(--fs-scale-body, 1))', fontWeight: 500, textAlign: 'start' }}
onMouseEnter={e => { if (!active) e.currentTarget.style.background = 'var(--bg-tertiary)' }}
onMouseLeave={e => { if (!active) e.currentTarget.style.background = 'none' }}>
<span style={{ width: 16, display: 'inline-flex', alignItems: 'center', justifyContent: 'center', flexShrink: 0, color: 'var(--text-muted)' }}>{icon}</span>
diff --git a/client/src/components/Planner/AddressInput.tsx b/client/src/components/Planner/AddressInput.tsx
index ea415beb3..7c024a76b 100644
--- a/client/src/components/Planner/AddressInput.tsx
+++ b/client/src/components/Planner/AddressInput.tsx
@@ -96,7 +96,7 @@ export default function AddressInput({ value, onChange, placeholder, className }
className={className}
/>
{open && (loading || results.length > 0) && (
- <div className="bg-surface-card" style={{ position: 'absolute', top: 'calc(100% + 4px)', left: 0, right: 0, border: '1px solid var(--border-primary)', borderRadius: 10, boxShadow: '0 8px 24px rgba(0,0,0,0.18)', maxHeight: 260, overflowY: 'auto', zIndex: 1000 }}>
+ <div className="bg-surface-card" style={{ position: 'absolute', top: 'calc(100% + 4px)', insetInline: 0, border: '1px solid var(--border-primary)', borderRadius: 10, boxShadow: '0 8px 24px rgba(0,0,0,0.18)', maxHeight: 260, overflowY: 'auto', zIndex: 1000 }}>
{loading && results.length === 0 && (
<div className="text-content-faint" style={{ padding: 10, fontSize: 'calc(12px * var(--fs-scale-body, 1))' }}>{t('common.loading')}</div>
)}
@@ -109,7 +109,7 @@ export default function AddressInput({ value, onChange, placeholder, className }
className={`text-content ${i === highlight ? 'bg-surface-hover' : 'bg-transparent'}`}
style={{
display: 'flex', alignItems: 'flex-start', gap: 8, width: '100%',
- padding: '8px 12px', border: 'none', cursor: 'pointer', textAlign: 'left',
+ padding: '8px 12px', border: 'none', cursor: 'pointer', textAlign: 'start',
fontFamily: 'inherit',
}}
>
diff --git a/client/src/components/Planner/AirTrailImportModal.tsx b/client/src/components/Planner/AirTrailImportModal.tsx
index 3e7bb09cd..df98ee47c 100644
--- a/client/src/components/Planner/AirTrailImportModal.tsx
+++ b/client/src/components/Planner/AirTrailImportModal.tsx
@@ -242,7 +242,7 @@ export default function AirTrailImportModal({ isOpen, onClose, tripId, pushUndo
disabled={already}
className={already ? 'bg-surface-tertiary' : isSelected ? 'bg-surface-secondary' : 'bg-transparent'}
style={{
- width: '100%', textAlign: 'left', borderRadius: 10, padding: '10px 12px', marginBottom: 8,
+ width: '100%', textAlign: 'start', borderRadius: 10, padding: '10px 12px', marginBottom: 8,
border: `1px solid ${isSelected && !already ? 'var(--accent)' : 'var(--border-primary)'}`,
opacity: already ? 0.55 : 1, cursor: already ? 'default' : 'pointer',
display: 'flex', gap: 10, alignItems: 'center', fontFamily: 'inherit',
@@ -283,7 +283,7 @@ export default function AirTrailImportModal({ isOpen, onClose, tripId, pushUndo
onClick={() => toggleJoin(chain)}
className="bg-transparent"
style={{
- display: 'flex', alignItems: 'center', gap: 10, width: '100%', textAlign: 'left',
+ display: 'flex', alignItems: 'center', gap: 10, width: '100%', textAlign: 'start',
border: 'none', borderTop: '1px solid var(--border-faint)', borderRadius: 0,
padding: '9px 4px 10px', cursor: 'pointer', fontFamily: 'inherit',
}}
diff --git a/client/src/components/Planner/AirportSelect.tsx b/client/src/components/Planner/AirportSelect.tsx
index caec9ff69..d5811cd62 100644
--- a/client/src/components/Planner/AirportSelect.tsx
+++ b/client/src/components/Planner/AirportSelect.tsx
@@ -128,7 +128,7 @@ export default function AirportSelect({ value, onChange, placeholder, style }: P
</div>
{open && (loading || results.length > 0) && (
- <div className="bg-surface-card" style={{ position: 'absolute', top: 'calc(100% + 4px)', left: 0, right: 0, border: '1px solid var(--border-primary)', borderRadius: 10, boxShadow: '0 8px 24px rgba(0,0,0,0.18)', maxHeight: 260, overflowY: 'auto', zIndex: 1000 }}>
+ <div className="bg-surface-card" style={{ position: 'absolute', top: 'calc(100% + 4px)', insetInline: 0, border: '1px solid var(--border-primary)', borderRadius: 10, boxShadow: '0 8px 24px rgba(0,0,0,0.18)', maxHeight: 260, overflowY: 'auto', zIndex: 1000 }}>
{loading && results.length === 0 && (
<div className="text-content-faint" style={{ padding: 10, fontSize: 'calc(12px * var(--fs-scale-body, 1))' }}>{t('common.loading')}</div>
)}
@@ -141,7 +141,7 @@ export default function AirportSelect({ value, onChange, placeholder, style }: P
className={`text-content ${i === highlight ? 'bg-surface-hover' : 'bg-transparent'}`}
style={{
display: 'flex', alignItems: 'center', gap: 8, width: '100%',
- padding: '8px 12px', border: 'none', cursor: 'pointer', textAlign: 'left',
+ padding: '8px 12px', border: 'none', cursor: 'pointer', textAlign: 'start',
fontFamily: 'inherit',
}}
>
diff --git a/client/src/components/Planner/BookingFileButtons.tsx b/client/src/components/Planner/BookingFileButtons.tsx
index f3699e48f..7cad39c3f 100644
--- a/client/src/components/Planner/BookingFileButtons.tsx
+++ b/client/src/components/Planner/BookingFileButtons.tsx
@@ -54,7 +54,7 @@ export function BookingFileButtons({ canAttach, uploading, onAttach, linkable, o
</button>
{open && (
<div className="bg-surface-card" style={{
- position: 'absolute', bottom: '100%', left: 0, right: 0, marginBottom: 6, zIndex: 50,
+ position: 'absolute', bottom: '100%', insetInline: 0, marginBottom: 6, zIndex: 50,
border: '1px solid var(--border-secondary)', borderRadius: 12,
boxShadow: '0 12px 32px -8px rgba(0,0,0,0.25), 0 2px 6px rgba(0,0,0,0.06)', padding: 6, maxHeight: 220, overflowY: 'auto',
}}>
@@ -64,7 +64,7 @@ export function BookingFileButtons({ canAttach, uploading, onAttach, linkable, o
style={{
display: 'flex', alignItems: 'center', gap: 8, width: '100%', padding: '8px 10px',
border: 'none', cursor: 'pointer', fontSize: 'calc(12.5px * var(--fs-scale-body, 1))', fontFamily: 'inherit',
- borderRadius: 8, textAlign: 'left',
+ borderRadius: 8, textAlign: 'start',
}}>
<FileText size={13} className="text-content-faint" style={{ flexShrink: 0 }} />
<span style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>{f.original_name}</span>
diff --git a/client/src/components/Planner/BookingLinkAndFiles.tsx b/client/src/components/Planner/BookingLinkAndFiles.tsx
index 21581a995..8db0d1efd 100644
--- a/client/src/components/Planner/BookingLinkAndFiles.tsx
+++ b/client/src/components/Planner/BookingLinkAndFiles.tsx
@@ -59,9 +59,9 @@ export function BookingLinkAndFiles({
<div>
<label className={labelClass}>{t('reservations.urlLabel')}</label>
<div className="relative">
- <Link2 size={15} className="absolute left-3 top-1/2 -translate-y-1/2 text-content-muted pointer-events-none" />
+ <Link2 size={15} className="absolute start-3 top-1/2 -translate-y-1/2 text-content-muted pointer-events-none" />
<input type="url" value={url} onChange={e => onUrlChange(e.target.value)}
- placeholder={t('reservations.urlPlaceholder')} className={inputClass} style={{ paddingLeft: 34 }} />
+ placeholder={t('reservations.urlPlaceholder')} className={inputClass} style={{ paddingInlineStart: 34 }} />
</div>
</div>
<div>
diff --git a/client/src/components/Planner/DayDetailPanel.tsx b/client/src/components/Planner/DayDetailPanel.tsx
index 5874c8d18..267999cd6 100644
--- a/client/src/components/Planner/DayDetailPanel.tsx
+++ b/client/src/components/Planner/DayDetailPanel.tsx
@@ -203,7 +203,7 @@ export default function DayDetailPanel({ day, days, places, categories = [], tri
) : collapsed ? (
<div className="truncate font-bold text-content" style={fs(13.5, 'body')}>
{heading.primary}
- {heading.secondary && <span className="ml-2 font-medium text-content-muted">{heading.secondary}</span>}
+ {heading.secondary && <span className="ms-2 font-medium text-content-muted">{heading.secondary}</span>}
</div>
) : (
<div className="flex min-w-0 items-center gap-1">
@@ -381,7 +381,7 @@ function DayWeather({ weather, loading, isFahrenheit, placeName }: { weather: We
}
/** A row or box that opens a booking: the hover lift and focus ring of the inspector's booking cards. */
-const OPENS_BOOKING = 'w-full cursor-pointer text-left transition-shadow hover:shadow-md focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-[color:var(--text-primary)]'
+const OPENS_BOOKING = 'w-full cursor-pointer text-start transition-shadow hover:shadow-md focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-[color:var(--text-primary)]'
/** The bookings of the day, hotels aside (they have their own block). With `onOpen` each row opens its booking. */
function DayReservations({ day, assignments, reservations, is12h, onOpen }: { day: Day; assignments: AssignmentsMap; reservations: Reservation[]; is12h: boolean; onOpen?: (r: Reservation) => void }) {
@@ -684,7 +684,7 @@ function HotelPickerModal({ mode, onClose, onSave, days, categories, places, hot
const cat = categories.find(c => c.id === p.category_id)
return (
<button type="button" key={p.id} aria-pressed={on} onClick={() => onSelectPlace(p.id)}
- className={`flex w-full flex-none items-center gap-3 rounded-[11px] px-2.5 py-2 text-left transition-colors ${on ? 'bg-surface-card shadow-sm ring-2 ring-accent' : 'hover:bg-surface-card'}`}>
+ className={`flex w-full flex-none items-center gap-3 rounded-[11px] px-2.5 py-2 text-start transition-colors ${on ? 'bg-surface-card shadow-sm ring-2 ring-accent' : 'hover:bg-surface-card'}`}>
{p.image_url ? (
<img src={p.image_url} alt="" className="h-10 w-10 flex-none rounded-[10px] bg-surface-tertiary object-cover" />
) : (
diff --git a/client/src/components/Planner/DayPlanSidebar.tsx b/client/src/components/Planner/DayPlanSidebar.tsx
index 74ed8b8f8..edb6be637 100644
--- a/client/src/components/Planner/DayPlanSidebar.tsx
+++ b/client/src/components/Planner/DayPlanSidebar.tsx
@@ -1883,7 +1883,7 @@ const DayPlanSidebar = React.memo(function DayPlanSidebar(props: DayPlanSidebarP
onContextMenu={canEditDays ? e => ctxMenu.open(e, dayMenuItems) : undefined}
style={{
display: 'flex', alignItems: 'flex-start', gap: 10,
- padding: '10px 8px 10px 10px',
+ paddingBlock: 10, paddingInlineEnd: 8, paddingInlineStart: 10,
cursor: 'pointer',
background: isDragTarget ? DAY_HEAD_DROP : (isSelected ? DAY_HEAD_SELECTED : headerTintBg),
transition: 'background 0.12s',
@@ -1961,7 +1961,7 @@ const DayPlanSidebar = React.memo(function DayPlanSidebar(props: DayPlanSidebarP
<Tooltip label={tip}>
<button type="button" data-dp="day-pill" data-pending={pending || undefined}
onClick={e => { e.stopPropagation(); if ((acc as any).place_id) onPlaceClick((acc as any).place_id) }}
- className={`inline-flex min-w-0 items-center gap-1 py-[2px] font-geist font-normal text-content-secondary hover:text-content ${stayBooking ? 'pl-2 pr-1.5' : 'px-2'}`}
+ className={`inline-flex min-w-0 items-center gap-1 py-[2px] font-geist font-normal text-content-secondary hover:text-content ${stayBooking ? 'ps-2 pe-1.5' : 'px-2'}`}
style={{ ...fs(10.5), cursor: (acc as any).place_id ? 'pointer' : 'default' }}>
<Hotel size={11} strokeWidth={2} className={`flex-none ${iconTone}`} />
<span className="truncate">{accName}</span>
@@ -1971,7 +1971,7 @@ const DayPlanSidebar = React.memo(function DayPlanSidebar(props: DayPlanSidebarP
<Tooltip label={t('day.openStayBooking')}>
<button type="button" data-dp="day-pill-booking" aria-label={t('day.openStayBooking')}
onClick={e => { e.stopPropagation(); onOpenBooking!(stayBooking) }}
- className="flex flex-none items-center border-l border-edge-faint pl-1.5 pr-2 text-content-faint hover:text-content">
+ className="flex flex-none items-center border-s border-edge-faint ps-1.5 pe-2 text-content-faint hover:text-content">
<Ticket size={11} strokeWidth={2} />
</button>
</Tooltip>
@@ -2278,7 +2278,7 @@ const DayPlanSidebar = React.memo(function DayPlanSidebar(props: DayPlanSidebarP
onMouseLeave={() => setHoveredAssignmentId(null)}
style={{
display: 'flex', alignItems: 'center', gap: 8,
- padding: `6px 4px 6px ${gripsShown ? 2 : 8}px`,
+ paddingBlock: 6, paddingInlineEnd: 4, paddingInlineStart: gripsShown ? 2 : 8,
borderRadius: 12,
cursor: 'pointer',
// A locked stop keeps a whisper of the danger tone; the lock on its avatar says why.
@@ -2435,18 +2435,18 @@ const DayPlanSidebar = React.memo(function DayPlanSidebar(props: DayPlanSidebarP
<div className="mt-1 flex items-center">
{assignment.participants.slice(0, 5).map((p, pi) => (
<div key={p.user_id} className="grid h-4 w-4 flex-none place-items-center overflow-hidden rounded-full border-[1.5px] border-surface-card bg-surface-tertiary font-bold text-content-muted"
- style={{ ...fs(7), marginLeft: pi > 0 ? -4 : 0 }}>
+ style={{ ...fs(7), marginInlineStart: pi > 0 ? -4 : 0 }}>
{p.avatar ? <img src={avatarSrc(p.avatar)!} alt={p.username ?? ''} className="h-full w-full object-cover" /> : p.username?.[0]?.toUpperCase()}
</div>
))}
{assignment.participants.length > 5 && (
- <span className="ml-0.5 text-content-faint" style={fs(8)}>+{assignment.participants.length - 5}</span>
+ <span className="ms-0.5 text-content-faint" style={fs(8)}>+{assignment.participants.length - 5}</span>
)}
</div>
)}
</div>
{/* The row's own controls, with room between them so each is its own target. */}
- <div className="flex flex-none items-center gap-2.5 pl-1">
+ <div className="flex flex-none items-center gap-2.5 ps-1">
{canEditDays && <div className="reorder-buttons" style={{ flexShrink: 0, display: 'flex', gap: 1, transition: 'opacity 0.15s' }}>
<button type="button" onClick={moveUp} disabled={idx === 0} aria-label={t('dayplan.moveUp')} className="flex text-content-faint hover:text-content disabled:cursor-default disabled:text-edge">
<ChevronUp size={12} strokeWidth={2} />
@@ -2612,7 +2612,7 @@ const DayPlanSidebar = React.memo(function DayPlanSidebar(props: DayPlanSidebarP
onMouseLeave={e => { e.currentTarget.style.background = tintOf(color, 7) }}
style={{
display: 'flex', alignItems: 'center', gap: 8,
- padding: `6px 4px 6px ${gripsShown ? 2 : 8}px`,
+ paddingBlock: 6, paddingInlineEnd: 4, paddingInlineStart: gripsShown ? 2 : 8,
margin: '2px 0',
borderRadius: 12,
border: `1px solid ${tintOf(color, 24)}`,
@@ -2712,7 +2712,7 @@ const DayPlanSidebar = React.memo(function DayPlanSidebar(props: DayPlanSidebarP
})()}
</div>
{transitMeta && expandedTransitIds.has(res.id) && (
- <div style={{ margin: '2px 0 4px', padding: '9px 10px 9px 12px', borderRadius: 12, border: `1px solid ${tintOf(color, 18)}`, background: tintOf(color, 4) }}>
+ <div style={{ margin: '2px 0 4px', paddingBlock: 9, paddingInlineEnd: 10, paddingInlineStart: 12, borderRadius: 12, border: `1px solid ${tintOf(color, 18)}`, background: tintOf(color, 4) }}>
<TransitItineraryInline legs={transitMeta.legs} t={t} />
</div>
)}
@@ -2804,7 +2804,7 @@ const DayPlanSidebar = React.memo(function DayPlanSidebar(props: DayPlanSidebarP
style={{
position: 'relative',
display: 'flex', alignItems: 'center', gap: 8,
- padding: `7px 4px 7px ${gripsShown ? 2 : 8}px`,
+ paddingBlock: 7, paddingInlineEnd: 4, paddingInlineStart: gripsShown ? 2 : 8,
margin: '2px 0',
borderRadius: 12,
border: `1px solid ${noteSkin.border}`,
diff --git a/client/src/components/Planner/DayPlanSidebarMobileAddPlaceButton.tsx b/client/src/components/Planner/DayPlanSidebarMobileAddPlaceButton.tsx
index 4864d75f2..1932c0a59 100644
--- a/client/src/components/Planner/DayPlanSidebarMobileAddPlaceButton.tsx
+++ b/client/src/components/Planner/DayPlanSidebarMobileAddPlaceButton.tsx
@@ -67,7 +67,7 @@ export function MobileAddPlaceButton({ dayId, places, assignments, onAssign, onA
style={{
width: '100%', display: 'flex', alignItems: 'center', gap: 8,
padding: '10px 12px', border: 'none', background: 'transparent',
- cursor: 'pointer', fontFamily: 'inherit', textAlign: 'left',
+ cursor: 'pointer', fontFamily: 'inherit', textAlign: 'start',
}}
>
<MapPin size={13} style={{ color: 'var(--text-faint)', flexShrink: 0 }} />
diff --git a/client/src/components/Planner/DayPlanSidebarTransportDetailModal.tsx b/client/src/components/Planner/DayPlanSidebarTransportDetailModal.tsx
index e4679368a..115149181 100644
--- a/client/src/components/Planner/DayPlanSidebarTransportDetailModal.tsx
+++ b/client/src/components/Planner/DayPlanSidebarTransportDetailModal.tsx
@@ -146,7 +146,7 @@ function TransportDetailDialog({ res, setTransportDetail, onNavigateToFiles, onE
<div className="flex flex-col gap-1.5">
{files.map(f => (
<button key={f.id} type="button" onClick={() => { close(); onNavigateToFiles?.() }}
- className={`${BOX} flex items-center gap-2.5 px-3.5 py-2.5 text-left hover:bg-surface-hover`}>
+ className={`${BOX} flex items-center gap-2.5 px-3.5 py-2.5 text-start hover:bg-surface-hover`}>
<FileText size={14} strokeWidth={2} className="flex-none text-content-muted" />
<span className="min-w-0 flex-1 truncate font-medium text-content" style={fs(13, 'body')}>{f.original_name}</span>
<ExternalLink size={12} strokeWidth={2} className="flex-none text-content-faint" />
diff --git a/client/src/components/Planner/DayReorderPopup.tsx b/client/src/components/Planner/DayReorderPopup.tsx
index b53cf3aa8..96cd5bd29 100644
--- a/client/src/components/Planner/DayReorderPopup.tsx
+++ b/client/src/components/Planner/DayReorderPopup.tsx
@@ -196,7 +196,7 @@ export function DayReorderPopup({ isOpen, days, t, locale, onReorder, onAddDay,
if (dragIndex !== null && dragIndex !== index) move(dragIndex, index)
setDragIndex(null); setOverIndex(null)
}}
- className={`flex items-center gap-2.5 rounded-[14px] border border-edge-faint py-2 pl-2.5 pr-2 ${
+ className={`flex items-center gap-2.5 rounded-[14px] border border-edge-faint py-2 ps-2.5 pe-2 ${
dropTarget ? 'bg-surface-hover outline-dashed outline-2 -outline-offset-2 outline-edge' : 'bg-surface-card'
} ${dragIndex === index ? 'opacity-50' : ''}`}
>
diff --git a/client/src/components/Planner/FileImportModal.tsx b/client/src/components/Planner/FileImportModal.tsx
index 519f041af..59e3362f3 100644
--- a/client/src/components/Planner/FileImportModal.tsx
+++ b/client/src/components/Planner/FileImportModal.tsx
@@ -34,7 +34,7 @@ const MAX_FILE_BYTES = 10 * 1024 * 1024
function TypeCheck({ checked, label, onToggle }: { checked: boolean; label: string; onToggle: () => void }) {
return (
<button type="button" role="checkbox" aria-checked={checked} onClick={onToggle}
- className="flex w-full items-center gap-2.5 rounded-[10px] px-2 py-1.5 text-left hover:bg-surface-hover">
+ className="flex w-full items-center gap-2.5 rounded-[10px] px-2 py-1.5 text-start hover:bg-surface-hover">
<span className={`grid h-4 w-4 flex-none place-items-center rounded-[5px] ${checked ? 'bg-accent' : 'border-[1.5px] border-edge'}`}>
{checked && <Check size={11} strokeWidth={3} className="text-accent-text" />}
</span>
diff --git a/client/src/components/Planner/LocationSelect.tsx b/client/src/components/Planner/LocationSelect.tsx
index 2e5150fe5..08562ac55 100644
--- a/client/src/components/Planner/LocationSelect.tsx
+++ b/client/src/components/Planner/LocationSelect.tsx
@@ -137,7 +137,7 @@ export default function LocationSelect({ value, onChange, placeholder, style, pl
</div>
{open && ((loading && !showPicks) || rows.length > 0) && (
- <div className="bg-surface-card" style={{ position: 'absolute', top: 'calc(100% + 4px)', left: 0, right: 0, border: '1px solid var(--border-primary)', borderRadius: 10, boxShadow: '0 8px 24px rgba(0,0,0,0.18)', maxHeight: 260, overflowY: 'auto', zIndex: 1000 }}>
+ <div className="bg-surface-card" style={{ position: 'absolute', top: 'calc(100% + 4px)', insetInline: 0, border: '1px solid var(--border-primary)', borderRadius: 10, boxShadow: '0 8px 24px rgba(0,0,0,0.18)', maxHeight: 260, overflowY: 'auto', zIndex: 1000 }}>
{loading && !showPicks && rows.length === 0 && (
<div className="text-content-faint" style={{ padding: 10, fontSize: 'calc(12px * var(--fs-scale-body, 1))' }}>{t('common.loading')}</div>
)}
@@ -150,7 +150,7 @@ export default function LocationSelect({ value, onChange, placeholder, style, pl
className={`text-content ${i === highlight ? 'bg-surface-hover' : 'bg-transparent'}`}
style={{
display: 'flex', alignItems: 'flex-start', gap: 8, width: '100%',
- padding: '8px 12px', border: 'none', cursor: 'pointer', textAlign: 'left',
+ padding: '8px 12px', border: 'none', cursor: 'pointer', textAlign: 'start',
fontFamily: 'inherit',
}}
>
diff --git a/client/src/components/Planner/PlaceContactFields.tsx b/client/src/components/Planner/PlaceContactFields.tsx
index 7d6452c39..aea631b5a 100644
--- a/client/src/components/Planner/PlaceContactFields.tsx
+++ b/client/src/components/Planner/PlaceContactFields.tsx
@@ -78,16 +78,16 @@ export function PlaceContactFields({ id: anchorId, phone, email, openingHours, o
<div className={GRID_2}>
<EditorField label={t('places.formPhone')} htmlFor={`${id}-phone`}>
<div className="relative">
- <Phone size={13} strokeWidth={2} className="pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-content-faint" />
+ <Phone size={13} strokeWidth={2} className="pointer-events-none absolute start-3 top-1/2 -translate-y-1/2 text-content-faint" />
<input id={`${id}-phone`} type="tel" value={phone} onChange={e => onChange('phone', e.target.value)}
- maxLength={50} placeholder="+49 …" className={`${INPUT} pl-8`} />
+ maxLength={50} placeholder="+49 …" className={`${INPUT} ps-8`} />
</div>
</EditorField>
<EditorField label={t('places.formEmail')} htmlFor={`${id}-email`}>
<div className="relative">
- <Mail size={13} strokeWidth={2} className="pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-content-faint" />
+ <Mail size={13} strokeWidth={2} className="pointer-events-none absolute start-3 top-1/2 -translate-y-1/2 text-content-faint" />
<input id={`${id}-email`} type="email" value={email} onChange={e => onChange('email', e.target.value)}
- maxLength={254} placeholder="info@…" className={`${INPUT} pl-8`} />
+ maxLength={254} placeholder="info@…" className={`${INPUT} ps-8`} />
</div>
</EditorField>
</div>
diff --git a/client/src/components/Planner/PlaceDetailsColumn.tsx b/client/src/components/Planner/PlaceDetailsColumn.tsx
index 137c579fe..c146626b8 100644
--- a/client/src/components/Planner/PlaceDetailsColumn.tsx
+++ b/client/src/components/Planner/PlaceDetailsColumn.tsx
@@ -494,7 +494,7 @@ function PhotoTile({
className="w-full h-full object-cover transition-transform duration-500 group-hover:scale-[1.06]"
/>
{selected && (
- <span className="absolute top-1 right-1 rounded-full bg-accent p-0.5 shadow-card">
+ <span className="absolute top-1 end-1 rounded-full bg-accent p-0.5 shadow-card">
<Check className="w-2.5 h-2.5 text-accent-on" />
</span>
)}
@@ -689,7 +689,7 @@ function OpeningHoursBlock({
type="button"
onClick={() => setExpanded((v) => !v)}
aria-expanded={expanded}
- className="w-full flex items-center gap-2 px-2.5 py-2 text-left hover:bg-surface-hover transition-colors"
+ className="w-full flex items-center gap-2 px-2.5 py-2 text-start hover:bg-surface-hover transition-colors"
>
<Clock className="w-3.5 h-3.5 shrink-0 text-content-faint" />
<span className="min-w-0 flex-1">
@@ -733,7 +733,7 @@ function OpeningHoursBlock({
<span className="shrink-0">{day}</span>
{/* Wraps rather than truncates: this is the view someone
opened on purpose, and split shifts run long. */}
- <span className="min-w-0 text-right break-words tabular-nums">
+ <span className="min-w-0 text-end break-words tabular-nums">
{isUnknownHoursLine(times) ? '–' : times}
</span>
</li>
diff --git a/client/src/components/Planner/PlaceFormModal.tsx b/client/src/components/Planner/PlaceFormModal.tsx
index 04b3d6f63..b5cf10706 100644
--- a/client/src/components/Planner/PlaceFormModal.tsx
+++ b/client/src/components/Planner/PlaceFormModal.tsx
@@ -885,7 +885,7 @@ const ROW = 'flex items-stretch gap-5'
const STACK = 'flex flex-col gap-5'
const FORM_COLUMN = 'flex min-w-0 flex-1 flex-col gap-4'
/** A row of the typed-ahead list or of the search results. */
-const PICK_ROW = 'flex w-full items-center gap-2 rounded-[8px] px-2.5 py-2 text-left'
+const PICK_ROW = 'flex w-full items-center gap-2 rounded-[8px] px-2.5 py-2 text-start'
const WARNING_BANNER = 'flex items-start gap-1.5 rounded-[10px] bg-warning-soft px-2.5 py-1.5 text-warning'
/** The small accent square beside a field that runs its action, sized by the row it sits in. */
const SIDE_BUTTON = 'grid w-[38px] flex-none place-items-center rounded-[10px] transition-colors disabled:cursor-default disabled:opacity-60'
@@ -1090,7 +1090,7 @@ export default function PlaceFormModal(props: PlaceFormModalProps) {
follow the core ones (#2221) and the list must stay inside the dialog;
the row the arrow keys land on is scrolled into view. */}
{acSuggestions.length > 0 && (
- <div className="absolute left-0 right-0 z-20 mt-1 max-h-96 overflow-y-auto rounded-[12px] border border-edge-faint bg-surface-card p-1 shadow-dropdown">
+ <div className="absolute inset-x-0 z-20 mt-1 max-h-96 overflow-y-auto rounded-[12px] border border-edge-faint bg-surface-card p-1 shadow-dropdown">
{acSuggestions.map((s, idx) => (
<button
key={s.placeId}
diff --git a/client/src/components/Planner/PlaceInspector.tsx b/client/src/components/Planner/PlaceInspector.tsx
index cabef92a5..ed2d21b50 100644
--- a/client/src/components/Planner/PlaceInspector.tsx
+++ b/client/src/components/Planner/PlaceInspector.tsx
@@ -504,8 +504,8 @@ export default function PlaceInspector({
<div key={`${p.pluginId}-${i}`} className="flex items-baseline justify-between gap-3" style={fs(12.5, 'body')}>
<span className="flex-none font-medium text-content-secondary">{it.label}</span>
{it.url
- ? <a href={it.url} target="_blank" rel="noreferrer noopener" className="truncate text-right text-accent-on hover:underline">{it.value ?? '↗'}</a>
- : <span className="text-right text-content-muted">{it.value}</span>}
+ ? <a href={it.url} target="_blank" rel="noreferrer noopener" className="truncate text-end text-accent-on hover:underline">{it.value ?? '↗'}</a>
+ : <span className="text-end text-content-muted">{it.value}</span>}
</div>
)))}
</div>
@@ -875,7 +875,7 @@ function LinkedBookingCard({ res, timeFormat, open, opens = 'editor' }: { res: R
onKeyDown={open ? (e: React.KeyboardEvent) => {
if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); open() }
} : undefined}
- className={`group flex flex-col overflow-hidden rounded-xl border border-edge-faint bg-surface-secondary text-left ${open ? 'cursor-pointer transition-shadow hover:shadow-md focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-[color:var(--text-primary)]' : ''}`}
+ className={`group flex flex-col overflow-hidden rounded-xl border border-edge-faint bg-surface-secondary text-start ${open ? 'cursor-pointer transition-shadow hover:shadow-md focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-[color:var(--text-primary)]' : ''}`}
>
<div className="flex items-center gap-2 px-2.5 py-1.5" style={{ background: toneTint(toneOf(res)) }}>
<TypeTile type={res.type} size={24} />
@@ -996,7 +996,7 @@ function ParticipantsBox({ tripMembers, participantIds, allJoined, onSetParticip
{activeMembers.map(member => (
<button type="button" key={member.id} disabled={!canRemove}
onClick={() => { if (canRemove) handleRemove(member.id) }}
- className="group/chip inline-flex max-w-full items-center gap-1.5 rounded-full border border-edge-faint bg-surface-card py-[2px] pl-[2px] pr-2.5 font-semibold text-content transition-colors enabled:hover:border-danger enabled:hover:bg-danger-soft enabled:hover:text-danger disabled:cursor-default"
+ className="group/chip inline-flex max-w-full items-center gap-1.5 rounded-full border border-edge-faint bg-surface-card py-[2px] ps-[2px] pe-2.5 font-semibold text-content transition-colors enabled:hover:border-danger enabled:hover:bg-danger-soft enabled:hover:text-danger disabled:cursor-default"
style={fs(11.5, 'body')}>
<MemberAvatar member={member} size={18} />
<span className={`truncate ${canRemove ? 'group-hover/chip:line-through' : ''}`}>{member.username}</span>
@@ -1012,10 +1012,10 @@ function ParticipantsBox({ tripMembers, participantIds, allJoined, onSetParticip
</Tooltip>
{showAdd && (
- <div className="absolute left-0 top-[26px] z-[100] min-w-[160px] rounded-[10px] border border-edge bg-surface-card p-1 shadow-dropdown">
+ <div className="absolute start-0 top-[26px] z-[100] min-w-[160px] rounded-[10px] border border-edge bg-surface-card p-1 shadow-dropdown">
{availableToAdd.map(member => (
<button type="button" key={member.id} onClick={() => handleAdd(member.id)}
- className="flex w-full items-center gap-2 rounded-[6px] px-2 py-1.5 text-left text-content transition-colors hover:bg-surface-hover"
+ className="flex w-full items-center gap-2 rounded-[6px] px-2 py-1.5 text-start text-content transition-colors hover:bg-surface-hover"
style={fs(11.5, 'body')}>
<MemberAvatar member={member} size={18} />
<span className="min-w-0 flex-1 truncate">{member.username}</span>
@@ -1043,7 +1043,7 @@ function TrackColorRow({ place, trackColor, onUpdatePlace }: { place: Place; tra
<DialogSection className="flex-none" label={t('inspector.trackColor')}>
<div className={BOX}>
<button type="button" onClick={() => setOpen(o => !o)} aria-expanded={open}
- className="flex w-full items-center gap-2 rounded-[10px] px-3 py-2 text-left transition-colors hover:bg-surface-hover">
+ className="flex w-full items-center gap-2 rounded-[10px] px-3 py-2 text-start transition-colors hover:bg-surface-hover">
<span className="h-4 w-4 flex-none rounded-full ring-1 ring-inset ring-edge" style={{ backgroundColor: trackColor }} />
<span className="min-w-0 flex-1 truncate font-medium text-content-secondary" style={fs(12, 'body')}>
<span className="sr-only">{t('inspector.trackColor')}: </span>
@@ -1200,7 +1200,7 @@ function PlaceExtras({ openingHours, weekdayIndex, hoursExpanded, setHoursExpand
<div className={`${BOX} relative`}>
{hoursExpanded ? (
<>
- <div className="flex flex-col py-2 pl-3 pr-10" style={fs(12, 'body')}>
+ <div className="flex flex-col py-2 ps-3 pe-10" style={fs(12, 'body')}>
{openingHours.map((line, i) => (
<span key={i} className={`py-[2px] ${i === weekdayIndex ? 'font-semibold text-content' : 'text-content-muted'}`}>
{convertHoursLine(line, timeFormat)}
@@ -1209,14 +1209,14 @@ function PlaceExtras({ openingHours, weekdayIndex, hoursExpanded, setHoursExpand
</div>
<Tooltip label={t('common.collapse')}>
<button type="button" onClick={() => setHoursExpanded(false)} aria-expanded aria-label={t('common.collapse')}
- className="absolute right-1.5 top-1.5 grid h-7 w-7 place-items-center rounded-full text-content-faint transition-colors hover:bg-surface-hover hover:text-content">
+ className="absolute end-1.5 top-1.5 grid h-7 w-7 place-items-center rounded-full text-content-faint transition-colors hover:bg-surface-hover hover:text-content">
<ChevronUp size={14} strokeWidth={2} />
</button>
</Tooltip>
</>
) : (
<button type="button" onClick={() => setHoursExpanded(true)} aria-expanded={false}
- className="flex w-full items-center gap-2 rounded-[10px] px-3 py-2 text-left transition-colors hover:bg-surface-hover">
+ className="flex w-full items-center gap-2 rounded-[10px] px-3 py-2 text-start transition-colors hover:bg-surface-hover">
<Clock size={13} strokeWidth={2} className="flex-none text-content-faint" />
<span className="min-w-0 flex-1 truncate font-medium text-content-secondary" style={fs(12, 'body')}>
{convertHoursLine(openingHours[weekdayIndex] || '', timeFormat) || t('inspector.showHours')}
@@ -1243,7 +1243,7 @@ function PlaceExtras({ openingHours, weekdayIndex, hoursExpanded, setHoursExpand
>
<div className={BOX}>
<button type="button" onClick={() => setFilesExpanded(f => !f)} aria-expanded={filesExpanded}
- className="flex w-full items-center gap-2 rounded-[10px] px-3 py-2 text-left transition-colors hover:bg-surface-hover">
+ className="flex w-full items-center gap-2 rounded-[10px] px-3 py-2 text-start transition-colors hover:bg-surface-hover">
<FileText size={13} strokeWidth={2} className="flex-none text-content-faint" />
<span className="min-w-0 flex-1 truncate font-medium text-content-secondary" style={fs(12, 'body')}>
{placeFiles.length > 0 ? t('inspector.filesCount', { count: placeFiles.length }) : t('inspector.files')}
@@ -1254,7 +1254,7 @@ function PlaceExtras({ openingHours, weekdayIndex, hoursExpanded, setHoursExpand
<div className="flex flex-col gap-0.5 border-t border-edge-faint p-1">
{placeFiles.map(f => (
<button type="button" key={f.id} onClick={() => openFile(f)}
- className="flex w-full items-center gap-2 rounded-[8px] px-2 py-1.5 text-left transition-colors hover:bg-surface-hover">
+ className="flex w-full items-center gap-2 rounded-[8px] px-2 py-1.5 text-start transition-colors hover:bg-surface-hover">
{(f.mime_type || '').startsWith('image/')
? <FileImage size={12} strokeWidth={2} className="flex-none text-content-muted" />
: <File size={12} strokeWidth={2} className="flex-none text-content-muted" />}
diff --git a/client/src/components/Planner/PlacesBulkCategoryModal.tsx b/client/src/components/Planner/PlacesBulkCategoryModal.tsx
index 93629b64d..1b88c6d3c 100644
--- a/client/src/components/Planner/PlacesBulkCategoryModal.tsx
+++ b/client/src/components/Planner/PlacesBulkCategoryModal.tsx
@@ -34,7 +34,7 @@ export function CategoryTile({ category, size = 24 }: { category?: Pick<Category
)
}
-const ROW = 'flex w-full items-center gap-2.5 rounded-[10px] px-2 py-1.5 text-left hover:bg-surface-hover'
+const ROW = 'flex w-full items-center gap-2.5 rounded-[10px] px-2 py-1.5 text-start hover:bg-surface-hover'
/**
* Popup for the Places selection toolbar: pick one category to apply to every
diff --git a/client/src/components/Planner/PlacesSidebarHeader.tsx b/client/src/components/Planner/PlacesSidebarHeader.tsx
index 926eb5be8..f3d03fb6a 100644
--- a/client/src/components/Planner/PlacesSidebarHeader.tsx
+++ b/client/src/components/Planner/PlacesSidebarHeader.tsx
@@ -100,7 +100,7 @@ export function PlacesHeader(S: SidebarState) {
function SearchField({ t, search, setSearch, selectMode, setSelectedIds }: SidebarState) {
return (
- <label className={`${CONTROL} flex min-w-0 flex-1 items-center gap-2 bg-surface-card pl-2.5 pr-1.5 text-content-faint focus-within:ring-2 focus-within:ring-[color:var(--text-primary)]`}>
+ <label className={`${CONTROL} flex min-w-0 flex-1 items-center gap-2 bg-surface-card ps-2.5 pe-1.5 text-content-faint focus-within:ring-2 focus-within:ring-[color:var(--text-primary)]`}>
<Search size={13} strokeWidth={2} className="flex-none" />
<input
type="text"
@@ -127,7 +127,7 @@ function SearchField({ t, search, setSearch, selectMode, setSelectedIds }: Sideb
function CategoryChoice({ on, onClick, tile, label }: { on: boolean; onClick: () => void; tile: ReactNode; label: string }) {
return (
<button type="button" onClick={onClick} aria-pressed={on}
- className={`flex w-full items-center gap-2 rounded-[9px] px-1.5 py-1 text-left transition-colors ${on ? 'bg-surface-tertiary' : 'hover:bg-surface-hover'}`}
+ className={`flex w-full items-center gap-2 rounded-[9px] px-1.5 py-1 text-start transition-colors ${on ? 'bg-surface-tertiary' : 'hover:bg-surface-hover'}`}
style={fs(12.5, 'body')}>
{tile}
<span className="min-w-0 flex-1 truncate text-content">{label}</span>
@@ -168,7 +168,7 @@ function ShowDropdown(S: SidebarState) {
const on = filter === tab.id
return (
<button type="button" key={tab.id} onClick={() => { pickFilter(tab.id); setOpen(false) }} aria-pressed={on}
- className={`flex w-full items-center gap-2 rounded-[9px] px-2 py-1.5 text-left transition-colors ${on ? 'bg-surface-tertiary' : 'hover:bg-surface-hover'}`}
+ className={`flex w-full items-center gap-2 rounded-[9px] px-2 py-1.5 text-start transition-colors ${on ? 'bg-surface-tertiary' : 'hover:bg-surface-hover'}`}
style={fs(12.5, 'body')}>
<span className="min-w-0 flex-1 truncate text-content">{tab.label}</span>
<span className="font-geist tabular-nums text-content-faint" style={fs(11)}>{filterCounts[tab.id]}</span>
@@ -225,9 +225,9 @@ function FilterDropdown({ label, active, badge, icon, open, setOpen, name, child
<button type="button" onClick={() => setOpen(v => !v)} aria-expanded={open} aria-haspopup="listbox" aria-label={name}
className={`${CONTROL} flex w-full min-w-0 items-center gap-1.5 bg-surface-card px-2.5 font-semibold transition-colors ${active || open ? 'text-content' : 'text-content-secondary hover:text-content'}`}
style={fs(12, 'body')}>
- <span className="min-w-0 truncate text-left">{label}</span>
+ <span className="min-w-0 truncate text-start">{label}</span>
{count != null && <span className="font-geist tabular-nums text-content-faint" style={fs(10.5)}>{count}</span>}
- <ChevronDown size={13} strokeWidth={2.2} className={`ml-auto flex-none text-content-faint transition-transform ${open ? 'rotate-180' : ''}`} />
+ <ChevronDown size={13} strokeWidth={2.2} className={`ms-auto flex-none text-content-faint transition-transform ${open ? 'rotate-180' : ''}`} />
</button>
) : (
<Tooltip label={active ? `${name}: ${label}` : name} disabled={open}>
@@ -235,7 +235,7 @@ function FilterDropdown({ label, active, badge, icon, open, setOpen, name, child
className={`${CONTROL} relative grid w-8 place-items-center bg-surface-card transition-colors ${active || open ? 'text-content' : 'text-content-secondary hover:text-content'}`}>
{icon}
{active && badge != null && (
- <span className="absolute -right-1 -top-1 grid h-4 min-w-4 place-items-center rounded-full bg-accent px-1 font-geist font-bold tabular-nums text-accent-text" style={fs(9)}>
+ <span className="absolute -end-1 -top-1 grid h-4 min-w-4 place-items-center rounded-full bg-accent px-1 font-geist font-bold tabular-nums text-accent-text" style={fs(9)}>
{badge}
</span>
)}
@@ -243,7 +243,7 @@ function FilterDropdown({ label, active, badge, icon, open, setOpen, name, child
</Tooltip>
)}
{open && (
- <div className={`trek-popover-enter absolute ${wide ? 'left-0' : 'right-0'} top-full z-50 mt-1.5 flex max-h-[min(60vh,360px)] flex-col overflow-y-auto rounded-[12px] border border-edge-secondary bg-surface-card p-1.5 shadow-popover`} style={{ width: 'max-content', minWidth: 180, maxWidth: 260 }}>
+ <div className={`trek-popover-enter absolute ${wide ? 'start-0' : 'end-0'} top-full z-50 mt-1.5 flex max-h-[min(60vh,360px)] flex-col overflow-y-auto rounded-[12px] border border-edge-secondary bg-surface-card p-1.5 shadow-popover`} style={{ width: 'max-content', minWidth: 180, maxWidth: 260 }}>
{children}
</div>
)}
@@ -286,7 +286,7 @@ function CategoryFilter(S: SidebarState) {
)}
{categoryFilters.size > 0 && (
<button type="button" onClick={() => setCategoryFilters(new Set())}
- className="mt-1 flex w-full items-center gap-1.5 rounded-[9px] border-t border-edge-faint px-1.5 pb-1 pt-2 text-left font-semibold text-content-muted hover:text-content"
+ className="mt-1 flex w-full items-center gap-1.5 rounded-[9px] border-t border-edge-faint px-1.5 pb-1 pt-2 text-start font-semibold text-content-muted hover:text-content"
style={fs(12, 'body')}>
<X size={12} strokeWidth={2.4} />
{t('places.clearFilter')}
@@ -315,7 +315,7 @@ function RatingFilter(S: SidebarState) {
const on = ratingFilter === opt
return (
<button type="button" key={String(opt)} onClick={() => { setRatingFilter(opt); setOpen(false) }} aria-pressed={on}
- className={`flex w-full items-center gap-2 rounded-[9px] px-2 py-1.5 text-left transition-colors ${on ? 'bg-surface-tertiary' : 'hover:bg-surface-hover'}`}
+ className={`flex w-full items-center gap-2 rounded-[9px] px-2 py-1.5 text-start transition-colors ${on ? 'bg-surface-tertiary' : 'hover:bg-surface-hover'}`}
style={fs(12.5, 'body')}>
{opt === 'all' ? <span className="w-3" /> : star}
<span className="min-w-0 flex-1 text-content">{opt === 'all' ? t('common.all') : `${opt}+`}</span>
@@ -355,7 +355,7 @@ function SortDropdown(S: SidebarState) {
const on = placesSort === opt
return (
<button type="button" key={opt} onClick={() => { setPlacesSort(opt); setOpen(false) }} aria-pressed={on}
- className={`flex w-full items-center gap-2 rounded-[9px] px-2 py-1.5 text-left transition-colors ${on ? 'bg-surface-tertiary' : 'hover:bg-surface-hover'}`}
+ className={`flex w-full items-center gap-2 rounded-[9px] px-2 py-1.5 text-start transition-colors ${on ? 'bg-surface-tertiary' : 'hover:bg-surface-hover'}`}
style={fs(12.5, 'body')}>
<span className="min-w-0 flex-1 text-content">{t(SORT_LABEL_KEYS[opt])}</span>
{on && <Check size={13} strokeWidth={2.4} className="flex-none text-content-muted" />}
@@ -378,7 +378,7 @@ function LocalityFilterDropdown(S: SidebarState) {
const pick = (country: string, region: string | null) => { setLocalityFilter({ country, region }); setOpen(false) }
const row = (key: string, label: string, count: number, on: boolean, onClick: () => void, indent: boolean) => (
<button type="button" key={key} onClick={onClick} aria-pressed={on}
- className={`flex w-full items-center gap-2 rounded-[9px] py-1.5 pr-2 text-left transition-colors ${indent ? 'pl-5' : 'pl-2'} ${on ? 'bg-surface-tertiary' : 'hover:bg-surface-hover'}`}
+ className={`flex w-full items-center gap-2 rounded-[9px] py-1.5 pe-2 text-start transition-colors ${indent ? 'ps-5' : 'ps-2'} ${on ? 'bg-surface-tertiary' : 'hover:bg-surface-hover'}`}
style={fs(indent ? 12 : 12.5, 'body')}>
<span className={`min-w-0 flex-1 truncate ${indent ? 'text-content-secondary' : 'font-semibold text-content'}`}>{label}</span>
<span className="rounded-full bg-surface-secondary px-1.5 font-geist tabular-nums text-content-faint" style={fs(10.5)}>{count}</span>
@@ -397,7 +397,7 @@ function LocalityFilterDropdown(S: SidebarState) {
))}
{localityFilter && (
<button type="button" onClick={() => { setLocalityFilter(null); setOpen(false) }}
- className="mt-1 flex w-full items-center gap-1.5 rounded-[9px] border-t border-edge-faint px-1.5 pb-1 pt-2 text-left font-semibold text-content-muted hover:text-content"
+ className="mt-1 flex w-full items-center gap-1.5 rounded-[9px] border-t border-edge-faint px-1.5 pb-1 pt-2 text-start font-semibold text-content-muted hover:text-content"
style={fs(12, 'body')}>
<X size={12} strokeWidth={2.4} />
{t('places.clearFilter')}
@@ -485,7 +485,7 @@ function FilterChip({ label, clearLabel, onClear, icon, tone = 'neutral' }: {
}) {
const look = tone === 'info' ? 'bg-info-soft text-info' : 'border border-edge-faint bg-surface-card text-content-secondary'
return (
- <span className={`inline-flex min-w-0 max-w-full items-center gap-1 rounded-full py-[3px] font-semibold ${onClear ? 'pl-2 pr-[3px]' : 'px-2'} ${look}`} style={fs(11)}>
+ <span className={`inline-flex min-w-0 max-w-full items-center gap-1 rounded-full py-[3px] font-semibold ${onClear ? 'ps-2 pe-[3px]' : 'px-2'} ${look}`} style={fs(11)}>
{icon}
<span className="min-w-0 truncate">{label}</span>
{onClear && (
diff --git a/client/src/components/Planner/PlacesSidebarMobileDayPicker.tsx b/client/src/components/Planner/PlacesSidebarMobileDayPicker.tsx
index a510960d0..e81d6313b 100644
--- a/client/src/components/Planner/PlacesSidebarMobileDayPicker.tsx
+++ b/client/src/components/Planner/PlacesSidebarMobileDayPicker.tsx
@@ -28,7 +28,7 @@ export function MobileDayPickerSheet(S: SidebarState) {
<button type="button"
onClick={() => { onPlaceClick(dayPickerPlace.id); setDayPickerPlace(null); setMobileShowDays(false) }}
className="bg-transparent text-content"
- style={{ display: 'flex', alignItems: 'center', gap: 12, width: '100%', padding: '12px 14px', borderRadius: 12, border: 'none', cursor: 'pointer', fontFamily: 'inherit', textAlign: 'left', fontSize: 'calc(14px * var(--fs-scale-body, 1))' }}
+ style={{ display: 'flex', alignItems: 'center', gap: 12, width: '100%', padding: '12px 14px', borderRadius: 12, border: 'none', cursor: 'pointer', fontFamily: 'inherit', textAlign: 'start', fontSize: 'calc(14px * var(--fs-scale-body, 1))' }}
>
<Eye size={18} color="var(--text-muted)" /> {t('places.viewDetails')}
</button>
@@ -37,7 +37,7 @@ export function MobileDayPickerSheet(S: SidebarState) {
<button type="button"
onClick={() => { onEditPlace(dayPickerPlace); setDayPickerPlace(null); setMobileShowDays(false) }}
className="bg-transparent text-content"
- style={{ display: 'flex', alignItems: 'center', gap: 12, width: '100%', padding: '12px 14px', borderRadius: 12, border: 'none', cursor: 'pointer', fontFamily: 'inherit', textAlign: 'left', fontSize: 'calc(14px * var(--fs-scale-body, 1))' }}
+ style={{ display: 'flex', alignItems: 'center', gap: 12, width: '100%', padding: '12px 14px', borderRadius: 12, border: 'none', cursor: 'pointer', fontFamily: 'inherit', textAlign: 'start', fontSize: 'calc(14px * var(--fs-scale-body, 1))' }}
>
<Pencil size={18} color="var(--text-muted)" /> {t('common.edit')}
</button>
@@ -48,18 +48,18 @@ export function MobileDayPickerSheet(S: SidebarState) {
<button type="button"
onClick={() => setMobileShowDays(v => !v)}
className="bg-transparent text-content"
- style={{ display: 'flex', alignItems: 'center', gap: 12, width: '100%', padding: '12px 14px', borderRadius: 12, border: 'none', cursor: 'pointer', fontFamily: 'inherit', textAlign: 'left', fontSize: 'calc(14px * var(--fs-scale-body, 1))' }}
+ style={{ display: 'flex', alignItems: 'center', gap: 12, width: '100%', padding: '12px 14px', borderRadius: 12, border: 'none', cursor: 'pointer', fontFamily: 'inherit', textAlign: 'start', fontSize: 'calc(14px * var(--fs-scale-body, 1))' }}
>
<CalendarDays size={18} color="var(--text-muted)" /> {t('places.assignToDay')}
- <ChevronDown size={14} style={{ marginLeft: 'auto', color: 'var(--text-faint)', transform: mobileShowDays ? 'rotate(180deg)' : 'none', transition: 'transform 0.15s' }} />
+ <ChevronDown size={14} style={{ marginInlineStart: 'auto', color: 'var(--text-faint)', transform: mobileShowDays ? 'rotate(180deg)' : 'none', transition: 'transform 0.15s' }} />
</button>
{mobileShowDays && (
- <div style={{ paddingLeft: 20 }}>
+ <div style={{ paddingInlineStart: 20 }}>
{days.map((day, i) => (
<button type="button"
key={day.id}
onClick={() => { onAssignToDay(dayPickerPlace.id, day.id); setDayPickerPlace(null); setMobileShowDays(false) }}
- style={{ display: 'flex', alignItems: 'center', gap: 10, width: '100%', padding: '10px 14px', borderRadius: 10, border: 'none', cursor: 'pointer', background: 'transparent', fontFamily: 'inherit', textAlign: 'left' }}
+ style={{ display: 'flex', alignItems: 'center', gap: 10, width: '100%', padding: '10px 14px', borderRadius: 10, border: 'none', cursor: 'pointer', background: 'transparent', fontFamily: 'inherit', textAlign: 'start' }}
>
<div className="bg-surface-tertiary text-content" style={{ width: 28, height: 28, borderRadius: '50%', display: 'flex', alignItems: 'center', justifyContent: 'center', fontSize: 'calc(12px * var(--fs-scale-body, 1))', fontWeight: 700, flexShrink: 0 }}>{i + 1}</div>
<div style={{ flex: 1, minWidth: 0 }}>
@@ -77,7 +77,7 @@ export function MobileDayPickerSheet(S: SidebarState) {
{canEditPlaces && (
<button type="button"
onClick={() => { onDeletePlace(dayPickerPlace.id); setDayPickerPlace(null); setMobileShowDays(false) }}
- style={{ display: 'flex', alignItems: 'center', gap: 12, width: '100%', padding: '12px 14px', borderRadius: 12, border: 'none', cursor: 'pointer', background: 'transparent', fontFamily: 'inherit', textAlign: 'left', fontSize: 'calc(14px * var(--fs-scale-body, 1))', color: '#ef4444' }}
+ style={{ display: 'flex', alignItems: 'center', gap: 12, width: '100%', padding: '12px 14px', borderRadius: 12, border: 'none', cursor: 'pointer', background: 'transparent', fontFamily: 'inherit', textAlign: 'start', fontSize: 'calc(14px * var(--fs-scale-body, 1))', color: '#ef4444' }}
>
<Trash2 size={18} /> {t('common.delete')}
</button>
diff --git a/client/src/components/Planner/PlacesSidebarSelectionBar.tsx b/client/src/components/Planner/PlacesSidebarSelectionBar.tsx
index 1943d0244..cf83d2a02 100644
--- a/client/src/components/Planner/PlacesSidebarSelectionBar.tsx
+++ b/client/src/components/Planner/PlacesSidebarSelectionBar.tsx
@@ -34,7 +34,7 @@ export function PlacesSelectionBar(S: SidebarState) {
const allLabel = selectedIds.size === filtered.length && filtered.length > 0 ? t('common.deselectAll') : t('common.selectAll')
return (
<div className="flex-none p-2">
- <div className="flex items-center gap-0.5 rounded-[14px] bg-accent py-1 pl-1.5 pr-1 text-accent-text shadow-lg">
+ <div className="flex items-center gap-0.5 rounded-[14px] bg-accent py-1 ps-1.5 pe-1 text-accent-text shadow-lg">
{/* Just the number, on a white badge: the words are its name and its tooltip. */}
<Tooltip label={t('places.selectionCount', { count: selectedIds.size })} placement="top">
<span role="status" aria-label={t('places.selectionCount', { count: selectedIds.size })}
diff --git a/client/src/components/Planner/ReservationModal.tsx b/client/src/components/Planner/ReservationModal.tsx
index 755dbeb3a..1db64b8bf 100644
--- a/client/src/components/Planner/ReservationModal.tsx
+++ b/client/src/components/Planner/ReservationModal.tsx
@@ -449,7 +449,7 @@ export function ReservationModal({ isOpen, onClose, onSave, reservation, days, p
{form.type !== 'hotel' && (
<div className="flex flex-col gap-3">
{assignmentOptions.length > 0 && (
- <EditorField label={<><Link2 size={10} className="mr-[3px] inline align-[-1px]" />{t('reservations.linkAssignment')}</>}>
+ <EditorField label={<><Link2 size={10} className="me-[3px] inline align-[-1px]" />{t('reservations.linkAssignment')}</>}>
<CustomSelect
value={form.assignment_id}
onChange={value => {
diff --git a/client/src/components/Planner/TransitJourneyModal.tsx b/client/src/components/Planner/TransitJourneyModal.tsx
index d88886dc5..1fb655dbe 100644
--- a/client/src/components/Planner/TransitJourneyModal.tsx
+++ b/client/src/components/Planner/TransitJourneyModal.tsx
@@ -402,7 +402,7 @@ export default function TransitJourneyModal({ reservation, onClose, onSave, onDe
</div>
)
const timeCell = (time?: string | null) => (
- <div className="text-content-muted" style={{ fontSize: 'calc(11.5px * var(--fs-scale-caption, 1))', fontWeight: 600, textAlign: 'right', paddingTop: 1 }}>
+ <div className="text-content-muted" style={{ fontSize: 'calc(11.5px * var(--fs-scale-caption, 1))', fontWeight: 600, textAlign: 'end', paddingTop: 1 }}>
{time || ''}
</div>
)
@@ -444,7 +444,7 @@ export default function TransitJourneyModal({ reservation, onClose, onSave, onDe
}
return (
<div key={i} style={{ display: 'flex', alignItems: 'flex-start', gap: 12 }}>
- <div className="text-content-muted" style={{ width: 44, flexShrink: 0, textAlign: 'right', fontSize: 'calc(12px * var(--fs-scale-body, 1))', fontWeight: 600, paddingTop: 1 }}>
+ <div className="text-content-muted" style={{ width: 44, flexShrink: 0, textAlign: 'end', fontSize: 'calc(12px * var(--fs-scale-body, 1))', fontWeight: 600, paddingTop: 1 }}>
{leg.from?.time || ''}
</div>
<span style={{ display: 'inline-flex', alignItems: 'center', background: leg.line_color || 'var(--bg-hover)', color: leg.line_color ? (leg.line_text_color || '#fff') : 'var(--text-primary)', borderRadius: 6, padding: '2px 8px', fontSize: 'calc(11.5px * var(--fs-scale-caption, 1))', fontWeight: 700, flexShrink: 0 }}>
diff --git a/client/src/components/Planner/TransitSearchPanel.tsx b/client/src/components/Planner/TransitSearchPanel.tsx
index efd1845ab..5a45b9c57 100644
--- a/client/src/components/Planner/TransitSearchPanel.tsx
+++ b/client/src/components/Planner/TransitSearchPanel.tsx
@@ -273,20 +273,20 @@ function StopPicker({ label, value, onPick, quickPicks, near, placeholder }: {
? results.map((r, i) => (
<button type="button" key={i} onClick={() => { onPick({ name: r.name, lat: r.lat, lng: r.lng }); setText(''); setResults([]); setOpen(false) }}
className="text-content"
- style={{ display: 'flex', alignItems: 'center', gap: 8, width: '100%', textAlign: 'left', padding: '8px 10px', border: 'none', background: 'none', cursor: 'pointer', fontFamily: 'inherit', fontSize: 'calc(13px * var(--fs-scale-body, 1))' }}
+ style={{ display: 'flex', alignItems: 'center', gap: 8, width: '100%', textAlign: 'start', padding: '8px 10px', border: 'none', background: 'none', cursor: 'pointer', fontFamily: 'inherit', fontSize: 'calc(13px * var(--fs-scale-body, 1))' }}
onMouseEnter={e => e.currentTarget.style.background = 'var(--bg-hover)'}
onMouseLeave={e => e.currentTarget.style.background = 'none'}>
<MapPin size={13} className="text-content-faint" style={{ flexShrink: 0 }} />
<span style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>
{r.name}
- {r.area && <span className="ml-1.5 text-content-faint">{r.area}</span>}
+ {r.area && <span className="ms-1.5 text-content-faint">{r.area}</span>}
</span>
</button>
))
: quickPicks.map((p, i) => (
<button type="button" key={i} onClick={() => { onPick(p); setText(''); setOpen(false) }}
className="text-content"
- style={{ display: 'flex', alignItems: 'center', gap: 8, width: '100%', textAlign: 'left', padding: '8px 10px', border: 'none', background: 'none', cursor: 'pointer', fontFamily: 'inherit', fontSize: 'calc(13px * var(--fs-scale-body, 1))' }}
+ style={{ display: 'flex', alignItems: 'center', gap: 8, width: '100%', textAlign: 'start', padding: '8px 10px', border: 'none', background: 'none', cursor: 'pointer', fontFamily: 'inherit', fontSize: 'calc(13px * var(--fs-scale-body, 1))' }}
onMouseEnter={e => e.currentTarget.style.background = 'var(--bg-hover)'}
onMouseLeave={e => e.currentTarget.style.background = 'none'}>
<MapPin size={13} className="text-content-faint" style={{ flexShrink: 0 }} />
@@ -329,13 +329,13 @@ function ItineraryCard({ it, tzFrom, tzTo, is12h, expanded, onToggle, onAdd, add
const walkMins = Math.round(it.walkSeconds / 60)
return (
<div className="bg-surface-card border border-edge" style={{ borderRadius: 14, overflow: 'hidden' }}>
- <button type="button" onClick={onToggle} style={{ display: 'block', width: '100%', textAlign: 'left', padding: '12px 14px', border: 'none', background: 'none', cursor: 'pointer', fontFamily: 'inherit' }}>
+ <button type="button" onClick={onToggle} style={{ display: 'block', width: '100%', textAlign: 'start', padding: '12px 14px', border: 'none', background: 'none', cursor: 'pointer', fontFamily: 'inherit' }}>
<div style={{ display: 'flex', alignItems: 'baseline', gap: 10, flexWrap: 'wrap' }}>
<span className="text-content" style={{ fontSize: 'calc(15px * var(--fs-scale-subtitle, 1))', fontWeight: 700, letterSpacing: '-0.01em' }}>
{fmtTimeInTz(it.startTime, tzFrom, is12h)} – {fmtTimeInTz(it.endTime, tzTo, is12h)}
</span>
<span className="text-content-muted" style={{ fontSize: 'calc(13px * var(--fs-scale-body, 1))', fontWeight: 600 }}>{fmtDuration(it.duration, t)}</span>
- <span className="text-content-faint" style={{ marginLeft: 'auto', fontSize: 'calc(12px * var(--fs-scale-body, 1))', display: 'inline-flex', alignItems: 'center', gap: 10 }}>
+ <span className="text-content-faint" style={{ marginInlineStart: 'auto', fontSize: 'calc(12px * var(--fs-scale-body, 1))', display: 'inline-flex', alignItems: 'center', gap: 10 }}>
<span>{it.transfers === 0 ? t('transit.direct') : t('transit.transfers', { count: it.transfers })}</span>
{walkMins > 0 && <span style={{ display: 'inline-flex', alignItems: 'center', gap: 3 }}><Footprints size={12} />{t('transit.min', { count: walkMins })}</span>}
{expanded ? <ChevronUp size={14} /> : <ChevronDown size={14} />}
@@ -377,7 +377,7 @@ function ItineraryCard({ it, tzFrom, tzTo, is12h, expanded, onToggle, onAdd, add
const color = leg.mode === 'WALK' ? 'var(--border-primary)' : (leg.lineColor || 'var(--text-muted)')
return (
<div key={i} style={{ display: 'grid', gridTemplateColumns: '44px 18px 1fr', gap: 8, alignItems: 'stretch' }}>
- <div className="text-content-muted" style={{ fontSize: 'calc(11.5px * var(--fs-scale-caption, 1))', fontWeight: 600, paddingTop: 2, textAlign: 'right' }}>
+ <div className="text-content-muted" style={{ fontSize: 'calc(11.5px * var(--fs-scale-caption, 1))', fontWeight: 600, paddingTop: 2, textAlign: 'end' }}>
{fmtTimeInTz(leg.from.time ?? leg.from.scheduledTime, tzAt(leg.from.lat, leg.from.lng), is12h)}
</div>
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center' }}>
@@ -413,7 +413,7 @@ function ItineraryCard({ it, tzFrom, tzTo, is12h, expanded, onToggle, onAdd, add
})}
{/* arrival row */}
<div style={{ display: 'grid', gridTemplateColumns: '44px 18px 1fr', gap: 8, alignItems: 'center' }}>
- <div className="text-content-muted" style={{ fontSize: 'calc(11.5px * var(--fs-scale-caption, 1))', fontWeight: 600, textAlign: 'right' }}>
+ <div className="text-content-muted" style={{ fontSize: 'calc(11.5px * var(--fs-scale-caption, 1))', fontWeight: 600, textAlign: 'end' }}>
{fmtTimeInTz(it.endTime, tzTo, is12h)}
</div>
<div style={{ display: 'flex', justifyContent: 'center' }}>
diff --git a/client/src/components/Planner/TransportModal.tsx b/client/src/components/Planner/TransportModal.tsx
index 42a3abc1d..3c26795f3 100644
--- a/client/src/components/Planner/TransportModal.tsx
+++ b/client/src/components/Planner/TransportModal.tsx
@@ -748,7 +748,7 @@ export function TransportModal({ isOpen, onClose, onSave, reservation, days, sel
// dates has no day to depart on, so it gets the manual form alone. The switch
// sits in the head band, which stays put while the body swaps modes.
const modeSwitch = !reservation && tripHasDates && (
- <span className="ml-auto">
+ <span className="ms-auto">
<Segmented
label={`${t('transport.modeManual')} / ${t('transport.modeAutomated')}`}
value={automated ? 'automated' : 'manual'}
@@ -1144,12 +1144,12 @@ const GRID_4 = 'grid grid-cols-4 items-start gap-3 max-sm:grid-cols-1'
/** One stop on the route: a dot on the line from origin to destination, its fields beside it. */
function RailStop({ first, last, children }: { first: boolean; last: boolean; children: ReactNode }) {
return (
- <li className="relative pl-7">
- {!first && <span aria-hidden="true" className="absolute left-[7px] top-0 h-6 w-0.5 bg-edge" />}
- {!last && <span aria-hidden="true" className="absolute bottom-0 left-[7px] top-6 w-0.5 bg-edge" />}
+ <li className="relative ps-7">
+ {!first && <span aria-hidden="true" className="absolute start-[7px] top-0 h-6 w-0.5 bg-edge" />}
+ {!last && <span aria-hidden="true" className="absolute bottom-0 start-[7px] top-6 w-0.5 bg-edge" />}
<span
aria-hidden="true"
- className={`absolute left-[3px] top-[19px] h-2.5 w-2.5 rounded-full border-2 bg-surface-card ${first || last ? 'border-content-muted' : 'border-content-faint'}`}
+ className={`absolute start-[3px] top-[19px] h-2.5 w-2.5 rounded-full border-2 bg-surface-card ${first || last ? 'border-content-muted' : 'border-content-faint'}`}
/>
{children}
</li>
diff --git a/client/src/components/Planner/TravelerPicker.tsx b/client/src/components/Planner/TravelerPicker.tsx
index fc2dc8add..14c75e547 100644
--- a/client/src/components/Planner/TravelerPicker.tsx
+++ b/client/src/components/Planner/TravelerPicker.tsx
@@ -59,11 +59,11 @@ export function TravelerPicker({ tripMembers, selectedIds, onToggle }: {
const field = {
width: '100%', minHeight: 38, display: 'flex', alignItems: 'center', gap: 8, padding: '5px 12px 5px 8px',
borderRadius: 10, border: '1px solid var(--border-primary)', background: 'var(--bg-input)',
- fontSize: 'calc(13px * var(--fs-scale-body, 1))', fontWeight: 500, fontFamily: 'inherit', textAlign: 'left',
+ fontSize: 'calc(13px * var(--fs-scale-body, 1))', fontWeight: 500, fontFamily: 'inherit', textAlign: 'start',
} as const
if (tripMembers.length === 0) {
- return <div className="text-content-faint" style={{ ...field, paddingLeft: 12 }}>{t('reservations.travelers.none')}</div>
+ return <div className="text-content-faint" style={{ ...field, paddingInlineStart: 12 }}>{t('reservations.travelers.none')}</div>
}
const chosen = tripMembers.filter(m => selectedIds.has(m.id))
@@ -75,7 +75,7 @@ export function TravelerPicker({ tripMembers, selectedIds, onToggle }: {
<>
<span style={{ display: 'inline-flex', flexShrink: 0 }}>
{chosen.slice(0, 4).map((m, i) => (
- <span key={m.id} style={{ marginLeft: i ? -7 : 0, borderRadius: '50%', boxShadow: '0 0 0 2px var(--bg-input)', display: 'inline-flex' }}>
+ <span key={m.id} style={{ marginInlineStart: i ? -7 : 0, borderRadius: '50%', boxShadow: '0 0 0 2px var(--bg-input)', display: 'inline-flex' }}>
<Avatar userId={m.id} username={m.username} avatarUrl={m.avatar_url} />
</span>
))}
@@ -86,7 +86,7 @@ export function TravelerPicker({ tripMembers, selectedIds, onToggle }: {
</>
) : (
<>
- <Users size={15} className="text-content-faint" style={{ flexShrink: 0, marginLeft: 4 }} />
+ <Users size={15} className="text-content-faint" style={{ flexShrink: 0, marginInlineStart: 4 }} />
<span className="text-content-faint" style={{ flex: 1 }}>{t('reservations.travelers.assign')}</span>
</>
)}
@@ -95,7 +95,7 @@ export function TravelerPicker({ tripMembers, selectedIds, onToggle }: {
{open && (
<div role="listbox" aria-multiselectable="true" className="bg-surface-card" style={{
- position: 'absolute', top: '100%', left: 0, right: 0, marginTop: 4, zIndex: 50,
+ position: 'absolute', top: '100%', insetInline: 0, marginTop: 4, zIndex: 50,
border: '1px solid var(--border-secondary)', borderRadius: 12, padding: 6, maxHeight: 260, overflowY: 'auto',
boxShadow: '0 12px 32px -8px rgba(0,0,0,0.25), 0 2px 6px rgba(0,0,0,0.06)',
}}>
@@ -106,7 +106,7 @@ export function TravelerPicker({ tripMembers, selectedIds, onToggle }: {
className={`transition-colors hover:bg-surface-tertiary ${on ? 'text-content' : 'text-content-muted'}`}
style={{
display: 'flex', alignItems: 'center', gap: 9, width: '100%', padding: '7px 9px', borderRadius: 8,
- border: 'none', cursor: 'pointer', fontFamily: 'inherit', textAlign: 'left',
+ border: 'none', cursor: 'pointer', fontFamily: 'inherit', textAlign: 'start',
fontSize: 'calc(13px * var(--fs-scale-body, 1))', fontWeight: on ? 600 : 500,
}}>
<Avatar userId={m.id} username={m.username} avatarUrl={m.avatar_url} dim={!on} />
@@ -161,7 +161,7 @@ export function TravelerFilterAvatars({ members, active, onToggle, label }: {
const hasFilter = active.size > 0
return (
<div style={{ display: 'inline-flex', alignItems: 'center', gap: 5, flexWrap: 'wrap' }} title={label} aria-label={label}>
- <Users size={13} className="text-content-faint" style={{ flexShrink: 0, marginRight: 1 }} />
+ <Users size={13} className="text-content-faint" style={{ flexShrink: 0, marginInlineEnd: 1 }} />
{members.map(m => {
const on = active.has(m.id)
const dim = hasFilter && !on
@@ -194,7 +194,7 @@ export function TravelerFilterAvatars({ members, active, onToggle, label }: {
</span>
{on && (
<span style={{
- position: 'absolute', right: -2, bottom: -2, width: 13, height: 13, borderRadius: '50%',
+ position: 'absolute', insetInlineEnd: -2, bottom: -2, width: 13, height: 13, borderRadius: '50%',
background: 'var(--accent)', display: 'grid', placeItems: 'center', boxShadow: '0 0 0 1.5px var(--bg-tertiary)',
}}>
<Check size={8} strokeWidth={3.5} color="#fff" />
diff --git a/client/src/components/Planner/TripExportModal.tsx b/client/src/components/Planner/TripExportModal.tsx
index b532c174e..6ebf58ed4 100644
--- a/client/src/components/Planner/TripExportModal.tsx
+++ b/client/src/components/Planner/TripExportModal.tsx
@@ -251,7 +251,7 @@ function ExportRow({ icon: Icon, title, sub, busy = false, disabled = false, onC
type="button"
onClick={onClick}
disabled={disabled}
- className="group flex w-full items-center gap-3 rounded-[14px] border border-edge-faint bg-surface-card px-3 py-2.5 text-left transition-colors enabled:hover:bg-surface-hover disabled:cursor-default disabled:opacity-50"
+ className="group flex w-full items-center gap-3 rounded-[14px] border border-edge-faint bg-surface-card px-3 py-2.5 text-start transition-colors enabled:hover:bg-surface-hover disabled:cursor-default disabled:opacity-50"
>
<span className="grid h-9 w-9 flex-none place-items-center rounded-[10px] bg-surface-tertiary text-content-secondary transition-colors group-enabled:group-hover:bg-surface-card group-enabled:group-hover:text-content">
{busy ? <Loader2 size={16} strokeWidth={2} className="animate-spin" /> : <Icon size={16} strokeWidth={1.9} />}
diff --git a/client/src/components/Planner/TripWarningsBanner.tsx b/client/src/components/Planner/TripWarningsBanner.tsx
index 52a06381c..dd303a489 100644
--- a/client/src/components/Planner/TripWarningsBanner.tsx
+++ b/client/src/components/Planner/TripWarningsBanner.tsx
@@ -75,7 +75,7 @@ export default function TripWarningsBanner({ tripId, onOpenPluginTab }: { tripId
navSlot
)}
{floating.length > 0 && (
- <div style={{ position: 'absolute', bottom: 'calc(var(--bottom-nav-h, 0px) + 8px)', left: 0, right: 0, zIndex: 6, pointerEvents: 'none', display: 'flex', flexDirection: 'column', gap: 6, padding: '0 16px' }}>
+ <div style={{ position: 'absolute', bottom: 'calc(var(--bottom-nav-h, 0px) + 8px)', insetInline: 0, zIndex: 6, pointerEvents: 'none', display: 'flex', flexDirection: 'column', gap: 6, padding: '0 16px' }}>
{floating.map((w, i) => {
const s = STYLE[w.level] ?? STYLE.warning
return (
diff --git a/client/src/components/Planner/bookings/BookingDetailDialog.tsx b/client/src/components/Planner/bookings/BookingDetailDialog.tsx
index 5a7b4a02c..1fa744b7f 100644
--- a/client/src/components/Planner/bookings/BookingDetailDialog.tsx
+++ b/client/src/components/Planner/bookings/BookingDetailDialog.tsx
@@ -144,7 +144,7 @@ export default function BookingDetailDialog(p: BookingDetailDialogProps) {
{!!r.needs_review && <ReviewPill pill />}
<AirTrailPill r={r} pill />
{r.confirmation_number && (
- <span className={`${PILL} ml-auto gap-1 py-0.5 pr-1`}>
+ <span className={`${PILL} ms-auto gap-1 py-0.5 pe-1`}>
<BlurredCode className="font-geist tabular-nums">#{r.confirmation_number}</BlurredCode>
<Tooltip label={t('reservations.copyCode')}>
<button type="button" onClick={copyCode} aria-label={t('reservations.copyCode')}
@@ -202,9 +202,9 @@ export default function BookingDetailDialog(p: BookingDetailDialogProps) {
<div className={`${BOX} flex flex-col gap-2 px-3.5 py-3`}>
{facts.endpoints.map((ep, i) => (
<div key={ep.id ?? i} className="flex items-center gap-2.5" style={fs(13, 'body')}>
- <span className="w-12 flex-none text-right font-semibold tabular-nums text-content">{ep.local_time ? formatTime(ep.local_time, locale, timeFormat) : ''}</span>
+ <span className="w-12 flex-none text-end font-semibold tabular-nums text-content">{ep.local_time ? formatTime(ep.local_time, locale, timeFormat) : ''}</span>
<span className="h-2.5 w-2.5 flex-none rounded-full border-2" style={{ borderColor: 'var(--text-faint)' }} />
- <span className="min-w-0 flex-1 truncate font-medium text-content">{ep.code ? <b className="mr-1.5">{ep.code}</b> : null}{ep.name}</span>
+ <span className="min-w-0 flex-1 truncate font-medium text-content">{ep.code ? <b className="me-1.5">{ep.code}</b> : null}{ep.name}</span>
</div>
))}
</div>
@@ -262,7 +262,7 @@ export default function BookingDetailDialog(p: BookingDetailDialogProps) {
<div className="flex flex-col gap-1.5">
{p.linkedCosts.map(item => (
<button key={item.id} type="button" disabled={!p.onEditExpense} onClick={() => p.onEditExpense?.(item)}
- className={`${BOX} flex items-center gap-2.5 px-3.5 py-2.5 text-left enabled:hover:bg-surface-hover`} style={fs(13, 'body')}>
+ className={`${BOX} flex items-center gap-2.5 px-3.5 py-2.5 text-start enabled:hover:bg-surface-hover`} style={fs(13, 'body')}>
<Wallet size={14} strokeWidth={2} className="flex-none text-content-faint" />
<span className="min-w-0 flex-1 truncate font-medium text-content">{item.name}</span>
<span className="flex-none font-semibold tabular-nums text-content">{formatMoney(item.total_price, (item.currency || tripCurrency || 'EUR'), locale)}</span>
diff --git a/client/src/components/Planner/bookings/BookingsHeader.tsx b/client/src/components/Planner/bookings/BookingsHeader.tsx
index 08aeb2082..798ca3a13 100644
--- a/client/src/components/Planner/bookings/BookingsHeader.tsx
+++ b/client/src/components/Planner/bookings/BookingsHeader.tsx
@@ -76,7 +76,7 @@ export default function BookingsHeader(p: BookingsHeaderProps) {
const hasEntries = p.total > 0
return (
- <div className="flex flex-wrap items-center gap-2.5 rounded-[18px] bg-surface-tertiary py-3 pl-[22px] pr-3">
+ <div className="flex flex-wrap items-center gap-2.5 rounded-[18px] bg-surface-tertiary py-3 ps-[22px] pe-3">
<h2 className="m-0 shrink-0 text-subtitle font-semibold tracking-[-0.01em] text-content">{p.title}</h2>
<span className="flex-1" />
@@ -161,7 +161,7 @@ function usePopover() {
function Menu({ children, onClose, width = 260 }: { children: ReactNode; onClose: () => void; width?: number }) {
return (
- <div role="menu" onKeyDown={e => { if (e.key === 'Escape') onClose() }} className="absolute right-0 top-11 z-30" style={{ ...POPOVER, width }}>
+ <div role="menu" onKeyDown={e => { if (e.key === 'Escape') onClose() }} className="absolute end-0 top-11 z-30" style={{ ...POPOVER, width }}>
{children}
</div>
)
@@ -179,7 +179,7 @@ function FilterMenu(p: BookingsHeaderProps) {
<Tooltip label={t('reservations.filter')}>
<button type="button" onClick={() => setOpen(o => !o)} aria-expanded={open} aria-label={t('reservations.filter')} className={`${BAR_BTN} ${active ? 'text-content' : ''}`}>
<Filter size={15} strokeWidth={2} />
- {active > 0 && <span className="absolute -right-1 -top-1 grid h-4 min-w-4 place-items-center rounded-full bg-accent px-1 font-geist font-bold text-accent-text" style={fs(9)}>{active}</span>}
+ {active > 0 && <span className="absolute -end-1 -top-1 grid h-4 min-w-4 place-items-center rounded-full bg-accent px-1 font-geist font-bold text-accent-text" style={fs(9)}>{active}</span>}
</button>
</Tooltip>
{open && (
@@ -220,7 +220,7 @@ function FilterMenu(p: BookingsHeaderProps) {
const on = p.activeTravelers.has(m.id)
return (
<button key={m.id} type="button" onClick={() => p.onToggleTraveler(m.id)} aria-pressed={on}
- className={`flex items-center gap-1.5 rounded-full border py-[3px] pl-[3px] pr-2.5 ${on ? 'border-[color:var(--text-primary)] text-content' : 'border-edge-faint text-content-muted hover:text-content'}`} style={fs(12, 'body')}>
+ className={`flex items-center gap-1.5 rounded-full border py-[3px] ps-[3px] pe-2.5 ${on ? 'border-[color:var(--text-primary)] text-content' : 'border-edge-faint text-content-muted hover:text-content'}`} style={fs(12, 'body')}>
<span className="grid h-5 w-5 flex-none place-items-center overflow-hidden rounded-full bg-surface-tertiary font-bold" style={fs(9)}>
{m.avatar_url ? <img src={m.avatar_url} alt="" className="h-full w-full object-cover" /> : m.username?.[0]?.toUpperCase()}
</span>
@@ -256,7 +256,7 @@ function ViewOptions(p: BookingsHeaderProps) {
<Tooltip label={t('reservations.viewOptions')}>
<button type="button" onClick={() => setOpen(o => !o)} aria-expanded={open} aria-label={t('reservations.viewOptions')} className={BAR_BTN}>
<SlidersHorizontal size={15} strokeWidth={2} />
- {!p.viewIsDefault && <span className="absolute right-1.5 top-1.5 h-1.5 w-1.5 rounded-full bg-accent" />}
+ {!p.viewIsDefault && <span className="absolute end-1.5 top-1.5 h-1.5 w-1.5 rounded-full bg-accent" />}
</button>
</Tooltip>
{open && (
diff --git a/client/src/components/Planner/bookings/BookingsList.tsx b/client/src/components/Planner/bookings/BookingsList.tsx
index 0eea5c74b..3934bea52 100644
--- a/client/src/components/Planner/bookings/BookingsList.tsx
+++ b/client/src/components/Planner/bookings/BookingsList.tsx
@@ -51,7 +51,7 @@ export default function BookingsList(p: BookingsListProps) {
<section key={g.id} className="overflow-hidden rounded-2xl border border-edge-faint bg-surface-card">
{g.label && (
<button type="button" onClick={() => p.onToggleGroup(g.id)} aria-expanded={open}
- className="flex w-full items-center gap-2 bg-surface-secondary px-3.5 py-2.5 text-left">
+ className="flex w-full items-center gap-2 bg-surface-secondary px-3.5 py-2.5 text-start">
<span className={EYEBROW} style={fs(10.5)}>{g.label}</span>
{g.sub && <span className="truncate font-geist font-medium text-content-muted" style={fs(11.5)}>{g.sub}</span>}
<CountPill>{g.items.length}</CountPill>
@@ -123,7 +123,7 @@ function Row({ r, p, facts, files, costs, t, locale }: {
</div>
)}
</div>
- <div className="text-right tabular-nums">
+ <div className="text-end tabular-nums">
<div className="font-geist text-content-faint" style={fs(11)}>{facts.day ? [facts.day.label, facts.day.date].filter(Boolean).join(' ') : t('reservations.undated')}</div>
{facts.time && <div className="font-semibold text-content" style={fs(12.5, 'body')}>{facts.time}</div>}
</div>
diff --git a/client/src/components/Planner/bookings/BookingsTimeline.tsx b/client/src/components/Planner/bookings/BookingsTimeline.tsx
index b50c791d2..820aea318 100644
--- a/client/src/components/Planner/bookings/BookingsTimeline.tsx
+++ b/client/src/components/Planner/bookings/BookingsTimeline.tsx
@@ -402,7 +402,7 @@ function TrayCard({ r, selected, onSelect }: { r: Reservation; selected: boolean
const status = tone === 'transit' ? null : tone === 'confirmed' ? t('reservations.confirmed') : t('reservations.pending')
return (
<button type="button" onClick={onSelect} aria-pressed={selected}
- className={`group flex items-center gap-3 rounded-2xl border bg-surface-secondary px-3 py-2.5 text-left transition-shadow hover:shadow-md ${selected ? 'border-[color:var(--text-primary)]' : 'border-edge-faint'}`}>
+ className={`group flex items-center gap-3 rounded-2xl border bg-surface-secondary px-3 py-2.5 text-start transition-shadow hover:shadow-md ${selected ? 'border-[color:var(--text-primary)]' : 'border-edge-faint'}`}>
<TypeTile type={r.type} size={38} raised />
<span className="min-w-0 flex-1">
<span className="block truncate font-bold text-content" style={fs(13.5, 'body')}>{displayTitle(r)}</span>
diff --git a/client/src/components/Planner/bookings/bookingParts.tsx b/client/src/components/Planner/bookings/bookingParts.tsx
index 484261807..2f42f838b 100644
--- a/client/src/components/Planner/bookings/bookingParts.tsx
+++ b/client/src/components/Planner/bookings/bookingParts.tsx
@@ -66,7 +66,7 @@ export function WhenFields({ facts }: { facts: BookingFacts }) {
{facts.day && (
<Field label={t('reservations.date')} className="flex-[1.4]">
{facts.day.label}
- {facts.day.date && <span className="ml-1.5 font-medium text-content-faint">{facts.day.date}</span>}
+ {facts.day.date && <span className="ms-1.5 font-medium text-content-faint">{facts.day.date}</span>}
</Field>
)}
{facts.time && <Field label={t('reservations.time')} className="flex-1" tabular>{facts.time}</Field>}
@@ -104,13 +104,13 @@ export function CountPill({ children }: { children: ReactNode }) {
/** A collapsible section head: the label, what the day is, the count, and the chevron on the right. */
export function SectionHead({ label, sub, count, open, onToggle }: { label: string; sub?: string; count: number; open: boolean; onToggle: () => void }) {
return (
- <button type="button" onClick={onToggle} aria-expanded={open} className="mb-3 flex w-full items-center gap-2 px-0.5 text-left">
+ <button type="button" onClick={onToggle} aria-expanded={open} className="mb-3 flex w-full items-center gap-2 px-0.5 text-start">
<span className={EYEBROW} style={fs(11)}>{label}</span>
{sub && <span className="truncate font-geist font-medium text-content-muted" style={fs(11.5)}>{sub}</span>}
<CountPill>{count}</CountPill>
{open
- ? <ChevronUp size={14} strokeWidth={2} className="ml-auto flex-none text-content-faint" />
- : <ChevronDown size={14} strokeWidth={2} className="ml-auto flex-none text-content-faint" />}
+ ? <ChevronUp size={14} strokeWidth={2} className="ms-auto flex-none text-content-faint" />
+ : <ChevronDown size={14} strokeWidth={2} className="ms-auto flex-none text-content-faint" />}
</button>
)
}
@@ -235,7 +235,7 @@ export function TravelerChips({ travelers }: { travelers: ReservationTraveler[]
{travelers.map(tv => {
const src = tv.avatar_url || avatarSrc(tv.avatar)
return (
- <span key={tv.user_id} className={`${BOX} flex items-center gap-1.5 rounded-full py-[3px] pl-[3px] pr-2.5`}>
+ <span key={tv.user_id} className={`${BOX} flex items-center gap-1.5 rounded-full py-[3px] ps-[3px] pe-2.5`}>
<span className="grid h-5 w-5 flex-none place-items-center overflow-hidden rounded-full bg-accent font-bold text-accent-text" style={fs(9)}>
{src ? <img src={src} alt="" className="h-full w-full object-cover" /> : tv.username?.[0]?.toUpperCase()}
</span>
@@ -258,12 +258,12 @@ export function TravelerStack({ travelers, max = 3 }: { travelers: ReservationTr
{travelers.slice(0, max).map((tv, i) => {
const src = tv.avatar_url || avatarSrc(tv.avatar)
return (
- <span key={tv.user_id} className="grid h-[22px] w-[22px] flex-none place-items-center overflow-hidden rounded-full border-2 border-surface-card bg-accent font-bold text-accent-text" style={{ ...fs(9), marginLeft: i ? -7 : 0 }}>
+ <span key={tv.user_id} className="grid h-[22px] w-[22px] flex-none place-items-center overflow-hidden rounded-full border-2 border-surface-card bg-accent font-bold text-accent-text" style={{ ...fs(9), marginInlineStart: i ? -7 : 0 }}>
{src ? <img src={src} alt="" className="h-full w-full object-cover" /> : tv.username?.[0]?.toUpperCase()}
</span>
)
})}
- {travelers.length > max && <span className="ml-1 font-geist font-semibold text-content-faint" style={fs(10.5)}>+{travelers.length - max}</span>}
+ {travelers.length > max && <span className="ms-1 font-geist font-semibold text-content-faint" style={fs(10.5)}>+{travelers.length - max}</span>}
</span>
</Tooltip>
)
@@ -291,7 +291,7 @@ export function FileRows({ files }: { files: TripFile[] }) {
key={f.id}
type="button"
onClick={e => { e.stopPropagation(); open(f) }}
- className={`${BOX} flex items-center gap-1.5 px-[10px] py-[7px] text-left hover:bg-surface-hover`}
+ className={`${BOX} flex items-center gap-1.5 px-[10px] py-[7px] text-start hover:bg-surface-hover`}
>
<FileText size={12} strokeWidth={2} className="flex-none text-content-muted" />
<span className="truncate font-geist font-semibold text-content-muted" style={fs(11.5)}>{f.original_name}</span>
diff --git a/client/src/components/Planner/transitDisplay.tsx b/client/src/components/Planner/transitDisplay.tsx
index d92c970fc..7ed222002 100644
--- a/client/src/components/Planner/transitDisplay.tsx
+++ b/client/src/components/Planner/transitDisplay.tsx
@@ -72,7 +72,7 @@ export function TransitItineraryInline({ legs, t }: {
const mins = leg.duration ? Math.round(leg.duration / 60) : null
return (
<div key={i} style={{ display: 'flex', alignItems: 'flex-start', gap: 7 }}>
- <span className="text-content-muted" style={{ width: 34, flexShrink: 0, textAlign: 'right', fontSize: 'calc(10px * var(--fs-scale-caption, 1))', fontWeight: 600, paddingTop: 1 }}>
+ <span className="text-content-muted" style={{ width: 34, flexShrink: 0, textAlign: 'end', fontSize: 'calc(10px * var(--fs-scale-caption, 1))', fontWeight: 600, paddingTop: 1 }}>
{leg.from?.time || ''}
</span>
<span style={{
@@ -205,7 +205,7 @@ export function TransitLegChips({ legs, transfers, size = 'sm', t }: {
</React.Fragment>
))}
{typeof transfers === 'number' && transfers > 0 && (
- <span className="text-content-faint" style={{ fontSize: badgeFont, marginLeft: 2 }}>
+ <span className="text-content-faint" style={{ fontSize: badgeFont, marginInlineStart: 2 }}>
· {t('transit.transfers', { count: transfers })}
</span>
)}
diff --git a/client/src/components/Plugins/PluginContributions.tsx b/client/src/components/Plugins/PluginContributions.tsx
index a1d3cafc3..b1771cba8 100644
--- a/client/src/components/Plugins/PluginContributions.tsx
+++ b/client/src/components/Plugins/PluginContributions.tsx
@@ -59,8 +59,8 @@ export function PluginColumns({ items }: { items: ViewContribution[] }) {
<div key={c.pluginId + c.id} className="flex items-baseline justify-between gap-2 text-xs">
<span className="text-content-secondary font-medium shrink-0">{c.label}</span>
{c.url
- ? <a href={c.url} target="_blank" rel="noreferrer noopener" className="text-accent truncate text-right" onClick={(e) => e.stopPropagation()}>{c.value ?? '↗'}</a>
- : <span className={`${TONE_CLASS[c.tone] ?? TONE_CLASS.default} text-right truncate`}>{c.value}</span>}
+ ? <a href={c.url} target="_blank" rel="noreferrer noopener" className="text-accent truncate text-end" onClick={(e) => e.stopPropagation()}>{c.value ?? '↗'}</a>
+ : <span className={`${TONE_CLASS[c.tone] ?? TONE_CLASS.default} text-end truncate`}>{c.value}</span>}
</div>
))}
</div>
diff --git a/client/src/components/Roadtrip/ChargingInfo.tsx b/client/src/components/Roadtrip/ChargingInfo.tsx
index 2dfc81e03..8c705dddd 100644
--- a/client/src/components/Roadtrip/ChargingInfo.tsx
+++ b/client/src/components/Roadtrip/ChargingInfo.tsx
@@ -65,9 +65,9 @@ export default function ChargingInfo({ placeId, lat, lng, name, compact = false
<summary className="flex cursor-pointer list-none items-center gap-1.5 px-3 py-2 [&::-webkit-details-marker]:hidden">
<PlugZap size={13} className="shrink-0 text-content-faint" />
<span className="font-medium">{t('roadtrip.poi.charging')}</span>
- <span className="ml-2 text-content-muted">{status}</span>
- {cheapest && <span className="ml-auto whitespace-nowrap font-medium">{price(cheapest.price, cheapest.currency)}/kWh*</span>}
- <ChevronDown size={13} className={'shrink-0 text-content-faint group-open:rotate-180 ' + (cheapest ? '' : 'ml-auto')} />
+ <span className="ms-2 text-content-muted">{status}</span>
+ {cheapest && <span className="ms-auto whitespace-nowrap font-medium">{price(cheapest.price, cheapest.currency)}/kWh*</span>}
+ <ChevronDown size={13} className={'shrink-0 text-content-faint group-open:rotate-180 ' + (cheapest ? '' : 'ms-auto')} />
</summary>
<div className="space-y-2 px-3 pb-3 text-content-muted">
{info?.station && <p>{info.station}</p>}
diff --git a/client/src/components/Settings/AccountTab.tsx b/client/src/components/Settings/AccountTab.tsx
index 5e1f96ee5..debce647a 100644
--- a/client/src/components/Settings/AccountTab.tsx
+++ b/client/src/components/Settings/AccountTab.tsx
@@ -194,7 +194,7 @@ export default function AccountTab(): React.ReactElement {
<button type="button"
onClick={() => avatarInputRef.current?.click()}
aria-label={t('settings.uploadAvatar')}
- className="absolute -bottom-1 -right-1 grid h-7 w-7 place-items-center rounded-full border-2 border-[color:var(--bg-card)] bg-[color:var(--text-primary)] text-[color:var(--bg-card)] shadow-sm transition-transform hover:scale-110"
+ className="absolute -bottom-1 -end-1 grid h-7 w-7 place-items-center rounded-full border-2 border-[color:var(--bg-card)] bg-[color:var(--text-primary)] text-[color:var(--bg-card)] shadow-sm transition-transform hover:scale-110"
>
<Camera size={13} strokeWidth={2.2} />
</button>
@@ -204,7 +204,7 @@ export default function AccountTab(): React.ReactElement {
<button type="button"
onClick={handleAvatarRemove}
aria-label={t('settings.removeAvatar')}
- className="absolute -right-1 -top-1 grid h-6 w-6 place-items-center rounded-full border-2 border-[color:var(--bg-card)] bg-danger text-white shadow-sm transition-transform hover:scale-110" // theme-lint-disable: white glyph on the danger fill, as ConfirmDialog draws it
+ className="absolute -end-1 -top-1 grid h-6 w-6 place-items-center rounded-full border-2 border-[color:var(--bg-card)] bg-danger text-white shadow-sm transition-transform hover:scale-110" // theme-lint-disable: white glyph on the danger fill, as ConfirmDialog draws it
>
<Trash2 size={11} strokeWidth={2.2} />
</button>
diff --git a/client/src/components/Settings/ApiKeysSection.tsx b/client/src/components/Settings/ApiKeysSection.tsx
index a421bc64a..b65ef35a0 100644
--- a/client/src/components/Settings/ApiKeysSection.tsx
+++ b/client/src/components/Settings/ApiKeysSection.tsx
@@ -321,7 +321,7 @@ export default function ApiKeysSection(): React.ReactElement {
<div className="flex items-stretch overflow-hidden rounded-[12px] border border-edge-faint bg-surface-secondary">
<code className="min-w-0 flex-1 select-all break-all px-3.5 py-3 font-geist text-content" style={fs(12.5, 'body')}>{created}</code>
<button type="button" onClick={() => handleCopy(created, 'key')} title={t('settings.apiKeys.copy')}
- className="flex flex-none items-center gap-1.5 border-l border-edge-faint bg-surface-card px-3.5 font-medium text-content-secondary transition-colors hover:text-content"
+ className="flex flex-none items-center gap-1.5 border-s border-edge-faint bg-surface-card px-3.5 font-medium text-content-secondary transition-colors hover:text-content"
style={fs(12.5, 'body')}>
{copied === 'key' ? <Check size={14} className="text-success" /> : <Copy size={14} />}
{copied === 'key' ? t('common.copied') : t('settings.apiKeys.copy')}
@@ -346,7 +346,7 @@ export default function ApiKeysSection(): React.ReactElement {
</span>
<button type="button"
onClick={() => setNewScopes(allSelected ? new Set() : new Set(PUBLIC_API_SCOPES))}
- className="ml-auto flex-none rounded-full px-2 py-0.5 font-semibold text-content-muted transition-colors hover:bg-surface-tertiary hover:text-content"
+ className="ms-auto flex-none rounded-full px-2 py-0.5 font-semibold text-content-muted transition-colors hover:bg-surface-tertiary hover:text-content"
style={fs(11.5, 'body')}>
{allSelected ? t('common.deselectAll') : t('common.selectAll')}
</button>
@@ -439,7 +439,7 @@ function ScopeOption({ icon: Icon, label, checked, onToggle }: {
}): React.ReactElement {
return (
<button type="button" role="checkbox" aria-checked={checked} onClick={onToggle}
- className={`flex w-full min-w-0 items-center gap-2.5 rounded-[10px] border px-3 py-2.5 text-left transition-colors ${
+ className={`flex w-full min-w-0 items-center gap-2.5 rounded-[10px] border px-3 py-2.5 text-start transition-colors ${
checked ? 'border-[color:var(--text-primary)] bg-surface-card shadow-sm' : 'border-edge-faint bg-surface-secondary hover:bg-surface-card'
}`}>
<span aria-hidden
diff --git a/client/src/components/Settings/AppearanceSettingsTab.tsx b/client/src/components/Settings/AppearanceSettingsTab.tsx
index 004e9725f..586617dff 100644
--- a/client/src/components/Settings/AppearanceSettingsTab.tsx
+++ b/client/src/components/Settings/AppearanceSettingsTab.tsx
@@ -65,7 +65,7 @@ const MOBILE_GROUPS: { id: string; fallback: string; keys: MobileWidgetKey[] }[]
]
/** A tile of the scheme grid: a colour dot and a name, raised and outlined while chosen. */
-const SWATCH = 'flex min-w-0 items-center gap-2 rounded-[12px] border bg-surface-card px-3 py-2.5 text-left font-medium text-content transition-colors'
+const SWATCH = 'flex min-w-0 items-center gap-2 rounded-[12px] border bg-surface-card px-3 py-2.5 text-start font-medium text-content transition-colors'
const swatchLook = (active: boolean) => active
? 'border-[color:var(--text-primary)] shadow-sm'
: 'border-edge hover:border-content-faint'
@@ -414,7 +414,7 @@ function WidgetGroup({ caption, children }: { caption: string; children: ReactNo
/** A colour input with its name, in the box look of the fields. */
function ColorField({ label, value, onChange }: { label: string; value: string; onChange: (v: string) => void }) {
return (
- <label className="inline-flex items-center gap-2 rounded-[10px] border border-edge bg-surface-input py-1 pl-3 pr-1 font-medium text-content-secondary" style={fs(12.5, 'body')}>
+ <label className="inline-flex items-center gap-2 rounded-[10px] border border-edge bg-surface-input py-1 ps-3 pe-1 font-medium text-content-secondary" style={fs(12.5, 'body')}>
{label}
<input type="color" value={value} onChange={(e) => onChange(e.target.value)}
className="h-7 w-9 cursor-pointer rounded-[7px] border-0 bg-transparent p-0" />
diff --git a/client/src/components/Settings/DawarichConnectionSection.tsx b/client/src/components/Settings/DawarichConnectionSection.tsx
index be796c822..773382b24 100644
--- a/client/src/components/Settings/DawarichConnectionSection.tsx
+++ b/client/src/components/Settings/DawarichConnectionSection.tsx
@@ -116,7 +116,7 @@ export default function DawarichConnectionSection(): React.ReactElement {
type="button"
onClick={S.disconnect}
disabled={S.saving}
- className={`${SETTINGS_BUTTON_DANGER} ml-auto`}
+ className={`${SETTINGS_BUTTON_DANGER} ms-auto`}
>
<Unplug size={14} strokeWidth={2.2} /> {t('dawarich.disconnect')}
</button>
diff --git a/client/src/components/Settings/DisplaySettingsTab.tsx b/client/src/components/Settings/DisplaySettingsTab.tsx
index 19647d9fc..8448fec3e 100644
--- a/client/src/components/Settings/DisplaySettingsTab.tsx
+++ b/client/src/components/Settings/DisplaySettingsTab.tsx
@@ -148,7 +148,7 @@ export default function DisplaySettingsTab(): React.ReactElement {
type="button"
onClick={() => setLangOpen(v => !v)}
aria-expanded={langOpen}
- className="flex w-full items-center justify-between gap-2 rounded-[10px] border border-edge bg-surface-input px-3 py-2 text-left font-medium text-content"
+ className="flex w-full items-center justify-between gap-2 rounded-[10px] border border-edge bg-surface-input px-3 py-2 text-start font-medium text-content"
style={fs(13, 'body')}
>
<span className="min-w-0 truncate">{currentLanguage?.label}</span>
diff --git a/client/src/components/Settings/IntegrationsTab.tsx b/client/src/components/Settings/IntegrationsTab.tsx
index 3a4110892..e764e10c5 100644
--- a/client/src/components/Settings/IntegrationsTab.tsx
+++ b/client/src/components/Settings/IntegrationsTab.tsx
@@ -397,7 +397,7 @@ function ConfigBlock({ open, onToggle, json, hint, copied, onCopy, t }: {
return (
<div className="overflow-hidden rounded-[12px] border border-edge-faint bg-surface-card">
<button type="button" onClick={onToggle} aria-expanded={open}
- className="flex w-full items-center gap-2 px-3.5 py-2.5 text-left hover:bg-surface-secondary">
+ className="flex w-full items-center gap-2 px-3.5 py-2.5 text-start hover:bg-surface-secondary">
<ChevronRight size={15} strokeWidth={2.2} className={`flex-none text-content-faint transition-transform ${open ? 'rotate-90' : ''}`} />
<span className="flex-1 font-medium text-content" style={fs(13, 'body')}>{t('settings.mcp.clientConfig')}</span>
</button>
diff --git a/client/src/components/Settings/MapSettingsTab.tsx b/client/src/components/Settings/MapSettingsTab.tsx
index 9427583a1..8dc76086a 100644
--- a/client/src/components/Settings/MapSettingsTab.tsx
+++ b/client/src/components/Settings/MapSettingsTab.tsx
@@ -90,7 +90,7 @@ function StyleDropdown({ value, provider, onChange }: { value: string; provider:
type="button"
onClick={() => setOpen(v => !v)}
aria-expanded={open}
- className="flex w-full items-center justify-between gap-2 rounded-[10px] border border-edge bg-surface-input px-3 py-2 text-left hover:border-content-faint focus:outline-none focus:ring-2 focus:ring-[color:var(--text-primary)]"
+ className="flex w-full items-center justify-between gap-2 rounded-[10px] border border-edge bg-surface-input px-3 py-2 text-start hover:border-content-faint focus:outline-none focus:ring-2 focus:ring-[color:var(--text-primary)]"
style={fs(13, 'body')}
>
<span className="flex min-w-0 items-center gap-2">
@@ -114,7 +114,7 @@ function StyleDropdown({ value, provider, onChange }: { value: string; provider:
key={preset.url}
type="button"
onClick={() => { onChange(preset.url); setOpen(false) }}
- className={`flex w-full items-center justify-between gap-2 rounded-[9px] px-2.5 py-2 text-left hover:bg-surface-tertiary ${isActive ? 'bg-surface-tertiary' : ''}`}
+ className={`flex w-full items-center justify-between gap-2 rounded-[9px] px-2.5 py-2 text-start hover:bg-surface-tertiary ${isActive ? 'bg-surface-tertiary' : ''}`}
style={fs(12.5, 'body')}
>
<span className="flex min-w-0 flex-wrap items-center gap-1.5">
@@ -145,7 +145,7 @@ function ProviderTile({ active, onClick, icon: Icon, name, subtitle, badge }: {
type="button"
onClick={onClick}
aria-pressed={active}
- className={`flex min-w-0 items-start gap-3 rounded-[12px] border bg-surface-card p-3 text-left transition-colors ${active ? 'border-[color:var(--text-primary)] shadow-sm' : 'border-edge hover:border-content-faint'}`}
+ className={`flex min-w-0 items-start gap-3 rounded-[12px] border bg-surface-card p-3 text-start transition-colors ${active ? 'border-[color:var(--text-primary)] shadow-sm' : 'border-edge hover:border-content-faint'}`}
>
<span className={`grid h-8 w-8 flex-none place-items-center rounded-[10px] ${active ? 'bg-accent text-accent-text' : 'bg-surface-tertiary text-content-secondary'}`}>
<Icon size={15} strokeWidth={2} />
diff --git a/client/src/components/Settings/NotificationsTab.tsx b/client/src/components/Settings/NotificationsTab.tsx
index a90f26d29..ae022a0e0 100644
--- a/client/src/components/Settings/NotificationsTab.tsx
+++ b/client/src/components/Settings/NotificationsTab.tsx
@@ -241,7 +241,7 @@ export default function NotificationsTab(): React.ReactElement {
if (relevantChannels.length === 0) return null
return (
<div key={eventType} className="grid items-center gap-1 px-3.5 py-3" style={{ gridTemplateColumns: columns }}>
- <span className="min-w-0 pr-2 font-medium text-content" style={fs(13, 'body')}>
+ <span className="min-w-0 pe-2 font-medium text-content" style={fs(13, 'body')}>
{t(EVENT_LABEL_KEYS[eventType]) || eventType}
</span>
{visibleChannels.map(ch => {
diff --git a/client/src/components/Settings/PluginActivityPanel.tsx b/client/src/components/Settings/PluginActivityPanel.tsx
index 5464fbafd..bed33bb8a 100644
--- a/client/src/components/Settings/PluginActivityPanel.tsx
+++ b/client/src/components/Settings/PluginActivityPanel.tsx
@@ -26,7 +26,7 @@ function codeTone(code: string): string {
return 'bg-warning-soft text-warning'
}
-const TH = 'whitespace-nowrap px-3 py-2.5 text-left font-geist font-bold uppercase tracking-[.08em] text-content-faint'
+const TH = 'whitespace-nowrap px-3 py-2.5 text-start font-geist font-bold uppercase tracking-[.08em] text-content-faint'
const TD = 'px-3 py-3 align-middle'
/**
@@ -80,17 +80,17 @@ export default function PluginActivityPanel() {
<table className="w-full border-collapse" style={fs(12.5, 'body')}>
<thead>
<tr className="border-b border-edge-faint bg-surface-secondary" style={fs(10)}>
- <th className={`${TH} pl-3.5`}>{t('settings.pluginActivity.columns.plugin')}</th>
+ <th className={`${TH} ps-3.5`}>{t('settings.pluginActivity.columns.plugin')}</th>
<th className={TH}>{t('settings.pluginActivity.columns.action')}</th>
<th className={TH}>{t('settings.pluginActivity.columns.resource')}</th>
<th className={TH}>{t('settings.pluginActivity.columns.when')}</th>
- <th className={`${TH} pr-3.5 text-right`}>{t('settings.pluginActivity.columns.status')}</th>
+ <th className={`${TH} pe-3.5 text-end`}>{t('settings.pluginActivity.columns.status')}</th>
</tr>
</thead>
<tbody className="divide-y divide-edge-faint">
{rows.map((r, i) => (
<tr key={i}>
- <td className={`${TD} max-w-[200px] pl-3.5`}>
+ <td className={`${TD} max-w-[200px] ps-3.5`}>
<span className="block truncate font-medium text-content">{r.plugin_name || r.plugin_id}</span>
</td>
<td className={TD}>
@@ -100,7 +100,7 @@ export default function PluginActivityPanel() {
<span className="block truncate font-mono text-content-muted" style={fs(11.5)} title={r.resource || undefined}>{r.resource || '—'}</span>
</td>
<td className={`${TD} whitespace-nowrap font-geist tabular-nums text-content-muted`}>{fmtWhen(r.ts)}</td>
- <td className={`${TD} pr-3.5 text-right`}>
+ <td className={`${TD} pe-3.5 text-end`}>
<span className={`inline-block whitespace-nowrap rounded-full px-2 py-[2px] font-geist font-semibold ${codeTone(r.code)}`} style={fs(11)}>
{r.code}
</span>
diff --git a/client/src/components/Settings/PluginSettingsTab.tsx b/client/src/components/Settings/PluginSettingsTab.tsx
index 9907d4acb..d83115dc6 100644
--- a/client/src/components/Settings/PluginSettingsTab.tsx
+++ b/client/src/components/Settings/PluginSettingsTab.tsx
@@ -255,7 +255,7 @@ function PluginSettingsForm({ id, name, icon }: { id: string; name: string; icon
</button>
{a.hint && <span className="min-w-0 flex-1 text-content-faint" style={fs(11.5)}>{a.hint}</span>}
{res && (
- <span className={`ml-auto font-medium ${res.ok ? 'text-success' : 'text-danger'}`} style={fs(12, 'body')}>
+ <span className={`ms-auto font-medium ${res.ok ? 'text-success' : 'text-danger'}`} style={fs(12, 'body')}>
{res.message || (res.ok ? t('common.success') : t('common.error'))}
</span>
)}
diff --git a/client/src/components/Settings/settingsKit.tsx b/client/src/components/Settings/settingsKit.tsx
index 914aceaf9..c05d86513 100644
--- a/client/src/components/Settings/settingsKit.tsx
+++ b/client/src/components/Settings/settingsKit.tsx
@@ -20,7 +20,7 @@ export function SettingsHeader({ icon: Icon, title, subtitle, actions }: {
actions?: ReactNode
}) {
return (
- <div className="mb-5 flex flex-wrap items-center gap-3 rounded-[18px] bg-surface-tertiary py-3 pl-3 pr-3">
+ <div className="mb-5 flex flex-wrap items-center gap-3 rounded-[18px] bg-surface-tertiary py-3 px-3">
<span className="grid h-10 w-10 flex-none place-items-center rounded-[12px] bg-surface-card text-content-secondary shadow-sm">
<Icon size={18} strokeWidth={1.9} />
</span>
diff --git a/client/src/components/Studio/StudioExport.tsx b/client/src/components/Studio/StudioExport.tsx
index ba1021273..671d15911 100644
--- a/client/src/components/Studio/StudioExport.tsx
+++ b/client/src/components/Studio/StudioExport.tsx
@@ -172,7 +172,7 @@ function Option({ icon: Icon, name, hint, on, onClick }: {
type="button"
onClick={onClick}
aria-pressed={on}
- className={`flex w-full items-start gap-3 rounded-[12px] border px-3 py-2.5 text-left transition-colors ${on ? 'border-[color:var(--text-primary)] bg-surface-card shadow-sm' : 'border-edge-faint bg-surface-card hover:bg-surface-hover'}`}
+ className={`flex w-full items-start gap-3 rounded-[12px] border px-3 py-2.5 text-start transition-colors ${on ? 'border-[color:var(--text-primary)] bg-surface-card shadow-sm' : 'border-edge-faint bg-surface-card hover:bg-surface-hover'}`}
>
<Icon size={16} strokeWidth={1.9} className={`mt-0.5 flex-none ${on ? 'text-content' : 'text-content-muted'}`} />
<span className="min-w-0 flex-1">
diff --git a/client/src/components/SystemNotices/SystemNoticeBanner.tsx b/client/src/components/SystemNotices/SystemNoticeBanner.tsx
index 5ef0521b6..f9073e2a7 100644
--- a/client/src/components/SystemNotices/SystemNoticeBanner.tsx
+++ b/client/src/components/SystemNotices/SystemNoticeBanner.tsx
@@ -74,7 +74,7 @@ function CTALink({
<a
href={cta.href}
onClick={e => { e.preventDefault(); handleClick(); }}
- className="underline hover:no-underline font-medium ml-3 shrink-0"
+ className="underline hover:no-underline font-medium ms-3 shrink-0"
>
{label}
</a>
@@ -84,7 +84,7 @@ function CTALink({
return (
<button type="button"
onClick={handleClick}
- className="underline hover:no-underline font-medium ml-3 shrink-0"
+ className="underline hover:no-underline font-medium ms-3 shrink-0"
>
{label}
</button>
@@ -115,7 +115,7 @@ function BannerItem({ notice, onDismiss }: BannerItemProps) {
<div className="flex-1 min-w-0">
<span className="font-semibold">{title}</span>
{body !== title && (
- <span className="ml-2 opacity-80">{body}</span>
+ <span className="ms-2 opacity-80">{body}</span>
)}
{ctaLabel && notice.cta && (
<CTALink notice={notice} cta={notice.cta} label={ctaLabel} onDismiss={onDismiss} />
@@ -124,7 +124,7 @@ function BannerItem({ notice, onDismiss }: BannerItemProps) {
{notice.dismissible && (
<button type="button"
onClick={onDismiss}
- className="shrink-0 p-2 -mr-2 rounded hover:bg-black/5 dark:hover:bg-white/10 transition"
+ className="shrink-0 p-2 -me-2 rounded hover:bg-black/5 dark:hover:bg-white/10 transition"
aria-label={`Dismiss: ${title}`}
>
<X size={20} />
@@ -195,7 +195,7 @@ export function BannerRenderer({ notices }: BannerRendererProps) {
return (
<div
ref={containerRef}
- className="fixed left-0 right-0 z-40"
+ className="fixed inset-x-0 z-40"
style={{ top: 'var(--nav-h, 0px)' }}
>
{visible.map((notice, i) => (
diff --git a/client/src/components/SystemNotices/SystemNoticeModal.tsx b/client/src/components/SystemNotices/SystemNoticeModal.tsx
index 756d17235..edd71e016 100644
--- a/client/src/components/SystemNotices/SystemNoticeModal.tsx
+++ b/client/src/components/SystemNotices/SystemNoticeModal.tsx
@@ -110,7 +110,7 @@ function NoticeContent({ notice, title, body, ctaLabel, secondaryCtaLabel, title
{notice.dismissible && isLastPage && (
<button type="button"
onClick={onDismissAll}
- className="absolute top-4 right-4 z-10 p-2 rounded-lg text-slate-400 hover:text-slate-600 dark:hover:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors"
+ className="absolute top-4 end-4 z-10 p-2 rounded-lg text-slate-400 hover:text-slate-600 dark:hover:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors"
aria-label="Dismiss"
>
<X size={18} />
@@ -198,8 +198,8 @@ function NoticeContent({ notice, title, body, ctaLabel, secondaryCtaLabel, title
</div>
),
strong: ({ children }) => <strong className="font-semibold text-slate-800 dark:text-slate-200">{children}</strong>,
- ul: ({ children }) => <ul className="list-disc list-inside text-left">{children}</ul>,
- ol: ({ children }) => <ol className="list-decimal list-inside text-left">{children}</ol>,
+ ul: ({ children }) => <ul className="list-disc list-inside text-start">{children}</ul>,
+ ol: ({ children }) => <ol className="list-decimal list-inside text-start">{children}</ol>,
}}
>
{body}
@@ -686,7 +686,7 @@ function MobileNoticeSheet(S: NoticeState) {
aria-modal="true"
aria-labelledby={titleId}
aria-describedby={bodyId}
- className={`absolute bottom-0 left-0 right-0 rounded-t-3xl overflow-hidden h-[85dvh] flex flex-col bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 shadow-xl transition-[opacity,transform] ${dur} ${ease} ${mobileMotion}`}
+ className={`absolute bottom-0 inset-x-0 rounded-t-3xl overflow-hidden h-[85dvh] flex flex-col bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 shadow-xl transition-[opacity,transform] ${dur} ${ease} ${mobileMotion}`}
style={{ touchAction: 'pan-y' }}
onTouchStart={e => {
touchStartX.current = e.touches[0].clientX;
diff --git a/client/src/components/SystemNotices/releaseNotice.css b/client/src/components/SystemNotices/releaseNotice.css
index e1ade32ad..0a3e0285e 100644
--- a/client/src/components/SystemNotices/releaseNotice.css
+++ b/client/src/components/SystemNotices/releaseNotice.css
@@ -299,8 +299,7 @@
.rn-feature-shine {
position: absolute;
top: 0;
- left: 0;
- right: 0;
+ inset-inline: 0;
height: 1px;
background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.4), transparent);
}
@@ -445,7 +444,7 @@
.rn-vis-caret {
width: 1px;
height: 12px;
- margin-left: -4px;
+ margin-inline-start: -4px;
background: #f5f5f7;
animation: rn-caret 1s steps(1) infinite;
}
@@ -689,8 +688,7 @@
content: '';
position: absolute;
top: 0;
- left: 0;
- right: 0;
+ inset-inline: 0;
height: 1px;
background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.5), transparent);
z-index: 1;
diff --git a/client/src/components/Todo/TodoListPanel.tsx b/client/src/components/Todo/TodoListPanel.tsx
index d69377337..4abd1f67d 100644
--- a/client/src/components/Todo/TodoListPanel.tsx
+++ b/client/src/components/Todo/TodoListPanel.tsx
@@ -57,14 +57,14 @@ function SidebarItem({ id, icon: Icon, label, count, color, active, compact, onS
) : Icon ? (
<Icon size={compact ? 18 : 15} style={{ flexShrink: 0, opacity: 0.7 }} />
) : null}
- {!compact && <span style={{ flex: 1, textAlign: 'left' }}>{label}</span>}
+ {!compact && <span style={{ flex: 1, textAlign: 'start' }}>{label}</span>}
{!compact && count > 0 && (
<span style={{ fontSize: 'calc(10.5px * var(--fs-scale-caption, 1))', fontWeight: 700, color: 'var(--text-faint)', background: active ? 'var(--bg-card)' : 'var(--bg-tertiary)', borderRadius: 99, padding: '1px 7px', minWidth: 20, textAlign: 'center' }}>
{count}
</span>
)}
{compact && count > 0 && (
- <span style={{ position: 'absolute', top: 2, right: 2, fontSize: 'calc(8px * var(--fs-scale-caption, 1))', fontWeight: 700, color: 'var(--bg-primary)', background: 'var(--text-faint)', borderRadius: '50%', width: 14, height: 14, display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
+ <span style={{ position: 'absolute', top: 2, insetInlineEnd: 2, fontSize: 'calc(8px * var(--fs-scale-caption, 1))', fontWeight: 700, color: 'var(--bg-primary)', background: 'var(--text-faint)', borderRadius: '50%', width: 14, height: 14, display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
{count}
</span>
)}
diff --git a/client/src/components/Todo/TodoRow.tsx b/client/src/components/Todo/TodoRow.tsx
index 986f87b81..7c792689b 100644
--- a/client/src/components/Todo/TodoRow.tsx
+++ b/client/src/components/Todo/TodoRow.tsx
@@ -84,7 +84,7 @@ export default function TodoRow({ item, members, categories, today, isSelected,
onClick={e => e.stopPropagation()}
onDragStart={e => { e.stopPropagation(); e.dataTransfer.effectAllowed = 'move'; drag!.onStart(item.id) }}
onDragEnd={() => drag!.onEnd()}
- style={{ cursor: 'grab', display: 'flex', alignItems: 'center', color: 'var(--text-faint)', flexShrink: 0, marginLeft: -4, opacity: 0.6 }}
+ style={{ cursor: 'grab', display: 'flex', alignItems: 'center', color: 'var(--text-faint)', flexShrink: 0, marginInlineStart: -4, opacity: 0.6 }}
>
<GripVertical size={13} />
</div>
diff --git a/client/src/components/Tours/TourDetailDialog.tsx b/client/src/components/Tours/TourDetailDialog.tsx
index dae97809e..6fe96e625 100644
--- a/client/src/components/Tours/TourDetailDialog.tsx
+++ b/client/src/components/Tours/TourDetailDialog.tsx
@@ -294,7 +294,7 @@ export default function TourDetailDialog({
{canEdit && onUpdatePlace ? (
<div className={BOX}>
<button type="button" onClick={() => setColorOpen(open => !open)} aria-expanded={colorOpen}
- className="flex w-full items-center gap-2 rounded-[10px] px-3 py-2 text-left transition-colors hover:bg-surface-hover">
+ className="flex w-full items-center gap-2 rounded-[10px] px-3 py-2 text-start transition-colors hover:bg-surface-hover">
<span className="h-4 w-4 flex-none rounded-full ring-1 ring-inset ring-edge" style={{ backgroundColor: trackColor }} />
<span className="min-w-0 flex-1 truncate font-medium text-content-secondary" style={fs(12, 'body')}>{colorLabel}</span>
{colorOpen ? <ChevronUp size={13} className="flex-none text-content-faint" /> : <ChevronDown size={13} className="flex-none text-content-faint" />}
@@ -330,7 +330,7 @@ export default function TourDetailDialog({
>
<div className={BOX}>
<button type="button" onClick={() => setFilesExpanded(expanded => !expanded)} aria-expanded={filesExpanded}
- className="flex w-full items-center gap-2 rounded-[10px] px-3 py-2 text-left transition-colors hover:bg-surface-hover">
+ className="flex w-full items-center gap-2 rounded-[10px] px-3 py-2 text-start transition-colors hover:bg-surface-hover">
<FileText size={13} strokeWidth={2} className="flex-none text-content-faint" />
<span className="min-w-0 flex-1 truncate font-medium text-content-secondary" style={fs(12, 'body')}>
{placeFiles.length ? t('inspector.filesCount', { count: placeFiles.length }) : t('inspector.files')}
@@ -341,7 +341,7 @@ export default function TourDetailDialog({
<div className="flex flex-col gap-0.5 border-t border-edge-faint p-1">
{placeFiles.map(file => (
<button type="button" key={file.id} onClick={() => void openFile(file.url)}
- className="flex w-full items-center gap-2 rounded-[8px] px-2 py-1.5 text-left transition-colors hover:bg-surface-hover">
+ className="flex w-full items-center gap-2 rounded-[8px] px-2 py-1.5 text-start transition-colors hover:bg-surface-hover">
{(file.mime_type || '').startsWith('image/')
? <FileImage size={12} strokeWidth={2} className="flex-none text-content-muted" />
: <File size={12} strokeWidth={2} className="flex-none text-content-muted" />}
diff --git a/client/src/components/Tours/ToursSidebar.tsx b/client/src/components/Tours/ToursSidebar.tsx
index 1042c9078..b8d21dee5 100644
--- a/client/src/components/Tours/ToursSidebar.tsx
+++ b/client/src/components/Tours/ToursSidebar.tsx
@@ -144,17 +144,17 @@ export default function ToursSidebar({ tripId, days, tours, loading = false, sel
aria-expanded={filterOpen} aria-haspopup="listbox" aria-label={t('places.filterShow')}
className="flex h-8 w-full min-w-0 items-center gap-1.5 rounded-[10px] bg-surface-card px-2.5 font-semibold text-content-secondary shadow-sm transition-colors hover:text-content"
style={fs(12, 'body')}>
- <span className="min-w-0 truncate text-left">{filterLabel}</span>
+ <span className="min-w-0 truncate text-start">{filterLabel}</span>
<span className="font-geist tabular-nums text-content-faint" style={fs(10.5)}>{filterCount}</span>
- <ChevronDown size={13} strokeWidth={2.2} className={`ml-auto flex-none text-content-faint transition-transform ${filterOpen ? 'rotate-180' : ''}`} />
+ <ChevronDown size={13} strokeWidth={2.2} className={`ms-auto flex-none text-content-faint transition-transform ${filterOpen ? 'rotate-180' : ''}`} />
</button>
{filterOpen && (
- <div role="group" aria-label={t('places.filterShow')} className="trek-popover-enter absolute left-0 top-full z-50 mt-1.5 flex w-full min-w-[180px] flex-col gap-px rounded-[12px] border border-edge-secondary bg-surface-card p-1.5 shadow-popover">
+ <div role="group" aria-label={t('places.filterShow')} className="trek-popover-enter absolute start-0 top-full z-50 mt-1.5 flex w-full min-w-[180px] flex-col gap-px rounded-[12px] border border-edge-secondary bg-surface-card p-1.5 shadow-popover">
{(['all', 'unplanned', 'planned'] as const).map(id => {
const label = id === 'all' ? t('places.all') : id === 'unplanned' ? t('places.unplanned') : t('places.planned')
const active = filter === id
return <button key={id} type="button" onClick={() => { setFilter(id); setFilterOpen(false) }} aria-pressed={active}
- className={`flex w-full items-center gap-2 rounded-[9px] px-2 py-1.5 text-left transition-colors ${active ? 'bg-surface-tertiary' : 'hover:bg-surface-hover'}`}
+ className={`flex w-full items-center gap-2 rounded-[9px] px-2 py-1.5 text-start transition-colors ${active ? 'bg-surface-tertiary' : 'hover:bg-surface-hover'}`}
style={fs(12.5, 'body')}>
<span className="min-w-0 flex-1 truncate text-content">{label}</span>
<span className="font-geist tabular-nums text-content-faint" style={fs(11)}>{counts[id]}</span>
diff --git a/client/src/components/Tours/planner/TourPlannerPanels.tsx b/client/src/components/Tours/planner/TourPlannerPanels.tsx
index 37ca7ae87..5f4b72458 100644
--- a/client/src/components/Tours/planner/TourPlannerPanels.tsx
+++ b/client/src/components/Tours/planner/TourPlannerPanels.tsx
@@ -215,7 +215,7 @@ export function TourPlannerRail({ planner, canEdit: editPermission, canAssign: a
<button
type="button"
onClick={() => planner.setSelectedWaypointId(point.id)}
- className={`group flex w-full items-center gap-2.5 rounded-[12px] px-2 py-1.5 text-left outline-none transition-colors focus-visible:ring-2 focus-visible:ring-[color:var(--text-primary)] ${selected ? 'bg-surface-selected' : 'hover:bg-surface-hover'}`}
+ className={`group flex w-full items-center gap-2.5 rounded-[12px] px-2 py-1.5 text-start outline-none transition-colors focus-visible:ring-2 focus-visible:ring-[color:var(--text-primary)] ${selected ? 'bg-surface-selected' : 'hover:bg-surface-hover'}`}
aria-current={selected ? 'true' : undefined}
>
<span
@@ -260,7 +260,7 @@ export function TourPlannerRail({ planner, canEdit: editPermission, canAssign: a
{planner.error === 'save' ? t('tours.planner.status.saveFailed') : statusKey ? t(statusKey) : null}
{canRetry && (
<button type="button" onClick={planner.retry}
- className="ml-2 inline-flex items-center rounded-full bg-surface-card px-2 py-[1px] font-semibold text-content shadow-sm hover:bg-surface-secondary"
+ className="ms-2 inline-flex items-center rounded-full bg-surface-card px-2 py-[1px] font-semibold text-content shadow-sm hover:bg-surface-secondary"
style={fs(11)}>
{t('tours.planner.retry')}
</button>
diff --git a/client/src/components/Tours/tourParts.tsx b/client/src/components/Tours/tourParts.tsx
index 2449f8eab..af8a2d483 100644
--- a/client/src/components/Tours/tourParts.tsx
+++ b/client/src/components/Tours/tourParts.tsx
@@ -125,7 +125,7 @@ export function TourSection({ label, action, children, className = '' }: { label
<section className={className}>
<div className="mb-2 flex min-h-[18px] items-center gap-2">
<Eyebrow>{label}</Eyebrow>
- {action && <span className="ml-auto flex items-center">{action}</span>}
+ {action && <span className="ms-auto flex items-center">{action}</span>}
</div>
{children}
</section>
diff --git a/client/src/components/Trips/TripDateReview.tsx b/client/src/components/Trips/TripDateReview.tsx
index 3177f4937..61c5926e2 100644
--- a/client/src/components/Trips/TripDateReview.tsx
+++ b/client/src/components/Trips/TripDateReview.tsx
@@ -72,7 +72,7 @@ export default function TripDateReview({ askShift, shiftMode, onShiftMode, remov
)}
{removal && removal !== 'unknown' && (
// Beside the question on a wide screen, below it on a narrow one.
- <div className={wide ? 'border-t border-edge-faint pt-3 md:border-l md:border-t-0 md:pl-5 md:pt-0' : ''}>
+ <div className={wide ? 'border-t border-edge-faint pt-3 md:border-s md:border-t-0 md:ps-5 md:pt-0' : ''}>
<p className="text-body text-content-secondary">{t('dashboard.shrinkIntro')}</p>
<DayImpactList
lines={shrinkTripLines(removal, t, shiftMode)}
diff --git a/client/src/components/Trips/TripFormModal.tsx b/client/src/components/Trips/TripFormModal.tsx
index 3022e7624..0d6a07299 100644
--- a/client/src/components/Trips/TripFormModal.tsx
+++ b/client/src/components/Trips/TripFormModal.tsx
@@ -468,7 +468,7 @@ export default function TripFormModal({ isOpen, onClose, onSave, trip, onCoverUp
{coverPreview ? (
<div className="relative h-[130px] rounded-xl overflow-hidden">
<img src={coverPreview} alt="" className="w-full h-full object-cover" />
- <div className="absolute bottom-2 right-2 flex gap-1.5">
+ <div className="absolute bottom-2 end-2 flex gap-1.5">
{/* Chrome sitting on top of a photo, so it is deliberately dark in
both themes rather than following the surface tokens. */}
<button type="button" onClick={() => fileRef.current?.click()} disabled={uploadingCover}
diff --git a/client/src/components/Trips/TripMembersModal.tsx b/client/src/components/Trips/TripMembersModal.tsx
index b11b7c33c..2078fd118 100644
--- a/client/src/components/Trips/TripMembersModal.tsx
+++ b/client/src/components/Trips/TripMembersModal.tsx
@@ -397,7 +397,7 @@ function TripMembersSheet({ isOpen, onClose, tripId, tripTitle, onMembersChanged
</div>
{/* Right column: Share Link */}
- {canManageShare && <div className="border-l border-edge-faint" style={{ paddingLeft: 24 }}>
+ {canManageShare && <div className="border-s border-edge-faint" style={{ paddingInlineStart: 24 }}>
<ShareLinkSection tripId={tripId} t={t} />
<TripInviteLinkSection tripId={tripId} t={t} />
</div>}
diff --git a/client/src/components/Trips/TripShareDialog.tsx b/client/src/components/Trips/TripShareDialog.tsx
index adb421ec6..c8807966c 100644
--- a/client/src/components/Trips/TripShareDialog.tsx
+++ b/client/src/components/Trips/TripShareDialog.tsx
@@ -278,7 +278,7 @@ function GuestsList({ m, onAsk }: { m: TripMembersState; onAsk: (ask: Ask) => vo
function LinkLine({ url, copied, onCopy }: { url: string; copied: boolean; onCopy: () => void }) {
const { t } = useTranslation()
return (
- <div className="flex items-center gap-2 rounded-[10px] border border-edge bg-surface-input py-1 pl-3 pr-1">
+ <div className="flex items-center gap-2 rounded-[10px] border border-edge bg-surface-input py-1 ps-3 pe-1">
<input type="text" value={url} readOnly aria-label={url} onFocus={e => e.currentTarget.select()}
className="min-w-0 flex-1 truncate border-0 bg-transparent font-mono text-content outline-none" style={fs(11.5)} />
<button type="button" onClick={onCopy}
diff --git a/client/src/components/Vacay/VacayCalendar.tsx b/client/src/components/Vacay/VacayCalendar.tsx
index ca7fc384d..12a78bb7e 100644
--- a/client/src/components/Vacay/VacayCalendar.tsx
+++ b/client/src/components/Vacay/VacayCalendar.tsx
@@ -177,7 +177,7 @@ export default function VacayCalendar() {
<div key={i} className="flex items-center gap-2" style={{ marginTop: i ? 4 : 0 }}>
<span className="w-2 h-2 rounded-full shrink-0" style={{ background: e.person_color || '#6366f1' }} />
<span style={{ fontSize: 12, fontWeight: 600, color: 'var(--vg-ink)' }}>{e.person_name}</span>
- <span style={{ marginLeft: 'auto', paddingLeft: 12, fontSize: 11, fontWeight: 700, color: emphasized ? 'var(--vg-ink)' : 'var(--vg-ink3)' }}>
+ <span style={{ marginInlineStart: 'auto', paddingInlineStart: 12, fontSize: 11, fontWeight: 700, color: emphasized ? 'var(--vg-ink)' : 'var(--vg-ink3)' }}>
{dayTypeLabel(e.fraction, e.kind)}
</span>
</div>
@@ -188,7 +188,7 @@ export default function VacayCalendar() {
<div key={`s${i}`} className="flex items-center gap-2" style={{ marginTop: (tipEntries?.length || i) ? 4 : 0 }}>
<span className="w-2 h-2 rounded-full shrink-0" style={{ border: `2px solid ${m.color}` }} />
<span style={{ fontSize: 12, fontWeight: 600, color: 'var(--vg-ink)' }}>{m.name}</span>
- <span style={{ marginLeft: 'auto', paddingLeft: 12, fontSize: 11, fontWeight: 700, color: 'var(--vg-ink3)' }}>
+ <span style={{ marginInlineStart: 'auto', paddingInlineStart: 12, fontSize: 11, fontWeight: 700, color: 'var(--vg-ink3)' }}>
{m.company ? t('vacay.companyHoliday') : dayTypeLabel(m.fraction, m.kind)}
</span>
</div>
@@ -247,7 +247,7 @@ export default function VacayCalendar() {
onClick={() => setCompDay(v => !v)}
title={t('vacay.modeCompHint')}
aria-pressed={compDay}
- className="flex items-center gap-1.5 pl-2 pr-2.5 sm:pl-2.5 sm:pr-3 py-1.5 rounded-full text-[11px] sm:text-xs font-semibold transition-[background-color,color] duration-150 ease-[cubic-bezier(0.23,1,0.32,1)]"
+ className="flex items-center gap-1.5 ps-2 pe-2.5 sm:ps-2.5 sm:pe-3 py-1.5 rounded-full text-[11px] sm:text-xs font-semibold transition-[background-color,color] duration-150 ease-[cubic-bezier(0.23,1,0.32,1)]"
style={compDay
? { background: 'var(--vg-ink)', color: 'var(--vg-bg)' }
: { background: 'transparent', color: 'var(--vg-ink3)' }}>
@@ -266,7 +266,7 @@ export default function VacayCalendar() {
onClick={() => setHalfDay(v => !v)}
title={t('vacay.modeHalfHint')}
aria-pressed={halfDay}
- className="flex items-center gap-1.5 pl-2 pr-2.5 sm:pl-2.5 sm:pr-3 py-1.5 rounded-full text-[11px] sm:text-xs font-semibold transition-[background-color,color] duration-150 ease-[cubic-bezier(0.23,1,0.32,1)]"
+ className="flex items-center gap-1.5 ps-2 pe-2.5 sm:ps-2.5 sm:pe-3 py-1.5 rounded-full text-[11px] sm:text-xs font-semibold transition-[background-color,color] duration-150 ease-[cubic-bezier(0.23,1,0.32,1)]"
style={halfDay
? { background: 'var(--vg-ink)', color: 'var(--vg-bg)' }
: { background: 'transparent', color: 'var(--vg-ink3)' }}>
diff --git a/client/src/components/Vacay/VacayMonthCard.tsx b/client/src/components/Vacay/VacayMonthCard.tsx
index 0cff21f7b..67739b7ae 100644
--- a/client/src/components/Vacay/VacayMonthCard.tsx
+++ b/client/src/components/Vacay/VacayMonthCard.tsx
@@ -72,7 +72,7 @@ export default function VacayMonthCard({
return (
<div className="vg-card rounded-[22px]" style={{ padding: '15px 16px 14px' }}>
- <div style={{ fontSize: 15, fontWeight: 600, letterSpacing: '-0.02em', color: 'var(--vg-ink)', marginBottom: 9, paddingLeft: 2 }} className="capitalize">
+ <div style={{ fontSize: 15, fontWeight: 600, letterSpacing: '-0.02em', color: 'var(--vg-ink)', marginBottom: 9, paddingInlineStart: 2 }} className="capitalize">
{monthName}
</div>
@@ -214,21 +214,20 @@ export default function VacayMonthCard({
)}
{tripDates?.has(dateStr) && (
- <span className="absolute top-1 right-1 w-[5px] h-[5px] rounded-full z-[2] bg-[#3b82f6]" style={{ boxShadow: '0 0 0 1.5px var(--vg-surf)' }} />
+ <span className="absolute top-1 end-1 w-[5px] h-[5px] rounded-full z-[2] bg-[#3b82f6]" style={{ boxShadow: '0 0 0 1.5px var(--vg-surf)' }} />
)}
{/* Half day (#552): a small orange corner dot, mirroring the blue trip dot.
The hover tooltip spells out who is on a half day. */}
{anyHalf && (
- <span className="absolute bottom-1 right-1 w-[5px] h-[5px] rounded-full z-[3] bg-[#f97316]" style={{ boxShadow: '0 0 0 1.5px var(--vg-surf)' }} aria-hidden />
+ <span className="absolute bottom-1 end-1 w-[5px] h-[5px] rounded-full z-[3] bg-[#f97316]" style={{ boxShadow: '0 0 0 1.5px var(--vg-surf)' }} aria-hidden />
)}
{schoolHolidayMarkers.length > 0 && (
<span
className="absolute rounded-full z-[2]"
style={{
- left: 4,
- right: 4,
+ insetInline: 4,
bottom: 3,
height: 3,
background: schoolHolidayBand(schoolHolidayMarkers.map(h => h.color)),
diff --git a/client/src/components/Vacay/VacayPersons.tsx b/client/src/components/Vacay/VacayPersons.tsx
index 75454c71e..2a3c24693 100644
--- a/client/src/components/Vacay/VacayPersons.tsx
+++ b/client/src/components/Vacay/VacayPersons.tsx
@@ -116,7 +116,7 @@ export default function VacayPersons() {
</span>
{u.id === currentUser?.id && <VacayBadge label={t('vacay.you')} />}
{isSelected && isFused && (
- <Check size={15} strokeWidth={2.4} className="ml-auto" style={{ color: 'var(--vg-ink2)' }} />
+ <Check size={15} strokeWidth={2.4} className="ms-auto" style={{ color: 'var(--vg-ink2)' }} />
)}
</div>
)
@@ -132,7 +132,7 @@ export default function VacayPersons() {
</span>
<VacayBadge label={t('vacay.pending')} tone="amber" />
<button type="button" onClick={() => cancelInvite(inv.user_id)}
- className="ml-auto opacity-0 group-hover:opacity-100 text-[10px] px-1.5 py-0.5 rounded transition-all"
+ className="ms-auto opacity-0 group-hover:opacity-100 text-[10px] px-1.5 py-0.5 rounded transition-all"
style={{ color: 'var(--vg-ink3)' }}>
{t('common.cancel')}
</button>
diff --git a/client/src/components/Vacay/VacaySettings.tsx b/client/src/components/Vacay/VacaySettings.tsx
index 88e951155..508f3fd59 100644
--- a/client/src/components/Vacay/VacaySettings.tsx
+++ b/client/src/components/Vacay/VacaySettings.tsx
@@ -62,7 +62,7 @@ export default function VacaySettings({ onClose }: VacaySettingsProps) {
{/* Weekend days selector */}
{plan.block_weekends !== false && (
- <div data-testid="weekend-days" style={{ paddingLeft: 36 }}>
+ <div data-testid="weekend-days" style={{ paddingInlineStart: 36 }}>
<p className="text-xs font-medium mb-2 text-content-muted">{t('vacay.weekendDays')}</p>
<div className="flex flex-wrap gap-1.5">
{[
@@ -105,7 +105,7 @@ export default function VacaySettings({ onClose }: VacaySettingsProps) {
<p className="text-xs mt-0.5 text-content-faint">{t('vacay.weekStartHint')}</p>
</div>
</div>
- <div style={{ paddingLeft: 36, marginTop: 8 }} className="flex gap-1.5">
+ <div style={{ paddingInlineStart: 36, marginTop: 8 }} className="flex gap-1.5">
{[
{ value: 1, label: t('vacay.mon') },
{ value: 0, label: t('vacay.sun') },
@@ -152,7 +152,7 @@ export default function VacaySettings({ onClose }: VacaySettingsProps) {
onChange={() => toggle('company_holidays_enabled')}
/>
{plan.company_holidays_enabled && (
- <div className="ml-7 mt-2">
+ <div className="ms-7 mt-2">
<div className="flex items-center gap-1.5 px-2 py-1.5 rounded-md" style={{ background: 'var(--vg-surf)', border: '1px solid var(--vg-line)' }}>
<AlertCircle size={12} style={{ color: 'var(--vg-ink3)' }} />
<span className="text-[10px]" style={{ color: 'var(--vg-ink3)' }}>{t('vacay.companyHolidaysNoDeduct')}</span>
@@ -171,7 +171,7 @@ export default function VacaySettings({ onClose }: VacaySettingsProps) {
onChange={() => toggle('holidays_enabled')}
/>
{plan.holidays_enabled && (
- <div className="ml-7 mt-2 space-y-2">
+ <div className="ms-7 mt-2 space-y-2">
{publicHolidayCalendars.length === 0 && (
<p className="text-xs text-content-faint">{t('vacay.noCalendars')}</p>
)}
@@ -219,7 +219,7 @@ export default function VacaySettings({ onClose }: VacaySettingsProps) {
/>
{schoolCountryError && <p role="alert" className="text-caption text-danger">{schoolCountryError}</p>}
{plan.school_holidays_enabled && (
- <div className="ml-7 mt-2 space-y-2">
+ <div className="ms-7 mt-2 space-y-2">
{schoolHolidayCalendars.length === 0 && (
<p className="text-xs text-content-faint">{t('vacay.noSchoolCalendars')}</p>
)}
@@ -341,7 +341,7 @@ function YearTypePicker() {
<p className="text-xs mt-0.5 text-content-faint">{t('vacay.yearTypeHint')}</p>
</div>
</div>
- <div style={{ paddingLeft: 36, marginTop: 8 }} className="flex flex-wrap gap-1.5">
+ <div style={{ paddingInlineStart: 36, marginTop: 8 }} className="flex flex-wrap gap-1.5">
{([
{ value: 'calendar', label: t('vacay.yearTypeCalendar') },
{ value: 'fiscal', label: t('vacay.yearTypeFiscal') },
@@ -361,7 +361,7 @@ function YearTypePicker() {
</div>
{type === 'fiscal' && (
- <div style={{ paddingLeft: 36, marginTop: 8 }} className="flex items-center gap-2">
+ <div style={{ paddingInlineStart: 36, marginTop: 8 }} className="flex items-center gap-2">
<div className="flex-1 min-w-0">
<CustomSelect
value={String(yearSettings.year_start_month)}
@@ -382,7 +382,7 @@ function YearTypePicker() {
)}
{type === 'anniversary' && (
- <div style={{ paddingLeft: 36, marginTop: 8 }}>
+ <div style={{ paddingInlineStart: 36, marginTop: 8 }}>
<input
type="date"
value={yearSettings.hire_date || ''}
@@ -396,7 +396,7 @@ function YearTypePicker() {
</div>
)}
- <p className="text-[11px] mt-2 text-content-faint" style={{ paddingLeft: 36 }}>
+ <p className="text-[11px] mt-2 text-content-faint" style={{ paddingInlineStart: 36 }}>
{t('vacay.yearWindow', { year: selectedYear, window: windowLabel })}
</p>
</div>
@@ -493,7 +493,7 @@ function CalendarRow({ cal, countries, calendarType, onUpdate, onDelete }: {
title={t('vacay.calendarColor')}
/>
{showColorPicker && (
- <div style={{ position: 'absolute', top: 34, left: 0, zIndex: 50, background: 'var(--bg-card)', border: '1px solid var(--border-primary)', borderRadius: 12, padding: 8, boxShadow: '0 8px 24px rgba(0,0,0,0.12)', display: 'grid', gridTemplateColumns: 'repeat(4, 1fr)', gap: 4, width: 120 }}>
+ <div style={{ position: 'absolute', top: 34, insetInlineStart: 0, zIndex: 50, background: 'var(--bg-card)', border: '1px solid var(--border-primary)', borderRadius: 12, padding: 8, boxShadow: '0 8px 24px rgba(0,0,0,0.12)', display: 'grid', gridTemplateColumns: 'repeat(4, 1fr)', gap: 4, width: 120 }}>
{PRESET_COLORS.map(c => (
<button type="button" key={c} onClick={() => { setLocalColor(c); setShowColorPicker(false); if (c !== cal.color) onUpdate({ color: c }) }}
style={{ width: 24, height: 24, borderRadius: 6, background: c, border: localColor === c ? '2px solid var(--text-primary)' : '2px solid transparent', cursor: 'pointer' }} />
@@ -577,7 +577,7 @@ function AddCalendarForm({ countries, calendarType, onAdd, onCancel, defaultColo
title={t('vacay.calendarColor')}
/>
{showColorPicker && (
- <div style={{ position: 'absolute', top: 34, left: 0, zIndex: 50, background: 'var(--bg-card)', border: '1px solid var(--border-primary)', borderRadius: 12, padding: 8, boxShadow: '0 8px 24px rgba(0,0,0,0.12)', display: 'grid', gridTemplateColumns: 'repeat(4, 1fr)', gap: 4, width: 120 }}>
+ <div style={{ position: 'absolute', top: 34, insetInlineStart: 0, zIndex: 50, background: 'var(--bg-card)', border: '1px solid var(--border-primary)', borderRadius: 12, padding: 8, boxShadow: '0 8px 24px rgba(0,0,0,0.12)', display: 'grid', gridTemplateColumns: 'repeat(4, 1fr)', gap: 4, width: 120 }}>
{PRESET_COLORS.map(c => (
<button type="button" key={c} onClick={() => { setColor(c); setShowColorPicker(false) }}
style={{ width: 24, height: 24, borderRadius: 6, background: c, border: color === c ? '2px solid var(--text-primary)' : '2px solid transparent', cursor: 'pointer' }} />
diff --git a/client/src/components/Vacay/VacaySharedCalendars.tsx b/client/src/components/Vacay/VacaySharedCalendars.tsx
index 454774eda..2dc75a02b 100644
--- a/client/src/components/Vacay/VacaySharedCalendars.tsx
+++ b/client/src/components/Vacay/VacaySharedCalendars.tsx
@@ -97,7 +97,7 @@ export default function VacaySharedCalendars() {
{s.username}
</span>
<VacayBadge label={t('vacay.viewOnly')} />
- <span className="ml-auto flex items-center gap-1">
+ <span className="ms-auto flex items-center gap-1">
<button type="button" onClick={e => { e.stopPropagation(); handleRemove(s.id) }}
className="opacity-0 group-hover:opacity-100 w-5 h-5 rounded flex items-center justify-center transition-all"
style={{ color: 'var(--vg-ink3)' }}
@@ -126,7 +126,7 @@ export default function VacaySharedCalendars() {
{s.username}
</span>
<button type="button" onClick={() => handleRemove(s.id)}
- className="ml-auto opacity-0 group-hover:opacity-100 text-[10px] px-1.5 py-0.5 rounded transition-all"
+ className="ms-auto opacity-0 group-hover:opacity-100 text-[10px] px-1.5 py-0.5 rounded transition-all"
style={{ color: 'var(--vg-ink3)' }}>
{t('vacay.stopSharing')}
</button>
diff --git a/client/src/components/Vacay/VacayStats.tsx b/client/src/components/Vacay/VacayStats.tsx
index 3c401aaa2..4bf04fccd 100644
--- a/client/src/components/Vacay/VacayStats.tsx
+++ b/client/src/components/Vacay/VacayStats.tsx
@@ -52,7 +52,7 @@ export default function VacayStats() {
<button type="button"
onClick={toggleCollapsed}
aria-expanded={!collapsed}
- className={`w-full flex items-start gap-2 text-left ${collapsed ? '' : 'mb-2.5'}`}
+ className={`w-full flex items-start gap-2 text-start ${collapsed ? '' : 'mb-2.5'}`}
style={{ background: 'transparent', border: 0, padding: 0, cursor: 'pointer', font: 'inherit' }}
>
<span className="min-w-0 flex-1">
@@ -145,7 +145,7 @@ function StatCard({ stat: s, isMe, canEdit, selectedYear, isShiftedYear, onSave,
{s.person_name}
</span>
{isMe && <VacayBadge label={t('vacay.you')} />}
- <span className="tabular-nums ml-auto" style={{ fontFamily: 'var(--font-subtext)', fontSize: 10.5, color: 'var(--vg-ink3)' }}>{fmtDays(s.used)}/{s.total_available}</span>
+ <span className="tabular-nums ms-auto" style={{ fontFamily: 'var(--font-subtext)', fontSize: 10.5, color: 'var(--vg-ink3)' }}>{fmtDays(s.used)}/{s.total_available}</span>
</div>
<div className="overflow-hidden" style={{ height: 6, borderRadius: 99, background: 'var(--vg-surf2)', marginBottom: 7 }}>
<div
diff --git a/client/src/components/shared/ContextMenu.tsx b/client/src/components/shared/ContextMenu.tsx
index 3513ab150..c36d9582d 100644
--- a/client/src/components/shared/ContextMenu.tsx
+++ b/client/src/components/shared/ContextMenu.tsx
@@ -114,7 +114,7 @@ export function ContextMenu({ menu, onClose }: ContextMenuProps) {
display: 'flex', alignItems: 'center', gap: 8, width: '100%',
padding: '7px 10px', borderRadius: 7, border: 'none',
background: 'none', cursor: item.disabled ? 'default' : 'pointer', fontFamily: 'inherit',
- fontSize: 'calc(12px * var(--fs-scale-body, 1))', fontWeight: 500, textAlign: 'left',
+ fontSize: 'calc(12px * var(--fs-scale-body, 1))', fontWeight: 500, textAlign: 'start',
color: item.danger ? '#ef4444' : 'var(--text-primary)', opacity: item.disabled ? 0.45 : 1,
transition: 'background 0.1s',
}}
diff --git a/client/src/components/shared/CustomSelect.tsx b/client/src/components/shared/CustomSelect.tsx
index cb3a631f7..f0a057376 100644
--- a/client/src/components/shared/CustomSelect.tsx
+++ b/client/src/components/shared/CustomSelect.tsx
@@ -197,7 +197,7 @@ export default function CustomSelect({
border: '1px solid var(--border-primary)',
background: 'var(--bg-input)', color: 'var(--text-primary)',
fontSize: 'calc(13px * var(--fs-scale-body, 1))', fontWeight: 500, fontFamily: 'inherit',
- cursor: disabled ? 'default' : 'pointer', outline: 'none', textAlign: 'left',
+ cursor: disabled ? 'default' : 'pointer', outline: 'none', textAlign: 'start',
transition: 'border-color 0.15s', overflow: 'hidden', minWidth: 0,
opacity: disabled ? 0.5 : 1,
}}
@@ -307,7 +307,7 @@ export default function CustomSelect({
padding: '7px 10px', borderRadius: 6,
border: 'none', background: isSelected ? 'var(--bg-hover)' : 'transparent',
color: 'var(--text-primary)', fontSize: 'calc(13px * var(--fs-scale-body, 1))', fontFamily: 'inherit',
- cursor: 'pointer', textAlign: 'left', transition: 'background 0.1s',
+ cursor: 'pointer', textAlign: 'start', transition: 'background 0.1s',
}}
onMouseEnter={e => e.currentTarget.style.background = 'var(--bg-hover)'}
onMouseLeave={e => e.currentTarget.style.background = isSelected ? 'var(--bg-hover)' : 'transparent'}
diff --git a/client/src/components/shared/CustomTimePicker.tsx b/client/src/components/shared/CustomTimePicker.tsx
index 248931993..1b64e7519 100644
--- a/client/src/components/shared/CustomTimePicker.tsx
+++ b/client/src/components/shared/CustomTimePicker.tsx
@@ -142,7 +142,7 @@ export default function CustomTimePicker({ value, onChange, placeholder = '00:00
disabled={disabled}
style={{
flex: 1, border: 'none', outline: 'none', background: 'transparent',
- padding: '8px 10px 8px 14px', fontSize: 'calc(13px * var(--fs-scale-body, 1))', fontFamily: 'inherit',
+ paddingBlock: 8, paddingInlineEnd: 10, paddingInlineStart: 14, fontSize: 'calc(13px * var(--fs-scale-body, 1))', fontFamily: 'inherit',
color: value ? 'var(--text-primary)' : 'var(--text-faint)',
minWidth: 0,
}}
@@ -163,7 +163,8 @@ export default function CustomTimePicker({ value, onChange, placeholder = '00:00
</div>
{open && createPortal(
- <div ref={dropRef} style={{
+ // dir=ltr so hours, minutes and AM/PM read the same way round in an RTL locale.
+ <div ref={dropRef} dir="ltr" style={{
position: 'fixed',
...(anchored
? anchored.flipped
@@ -225,7 +226,7 @@ export default function CustomTimePicker({ value, onChange, placeholder = '00:00
{/* AM/PM Toggle */}
{is12h && hour !== null && (
- <div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 2, marginLeft: 4 }}>
+ <div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 2, marginInlineStart: 4 }}>
<button type="button" onClick={() => { if (hour < 12) update(hour + 12, minute ?? 0); else update(hour - 12, minute ?? 0) }} style={btnStyle}
onMouseEnter={e => e.currentTarget.style.color = 'var(--text-primary)'}
onMouseLeave={e => e.currentTarget.style.color = 'var(--text-faint)'}>
@@ -249,7 +250,7 @@ export default function CustomTimePicker({ value, onChange, placeholder = '00:00
{/* Clear */}
{value && (
<button type="button" onClick={() => { onChange(''); setOpen(false) }}
- style={{ ...btnStyle, marginLeft: 4, fontSize: 'calc(11px * var(--fs-scale-caption, 1))', color: 'var(--text-faint)', padding: '4px 6px' }}
+ style={{ ...btnStyle, marginInlineStart: 4, fontSize: 'calc(11px * var(--fs-scale-caption, 1))', color: 'var(--text-faint)', padding: '4px 6px' }}
onMouseEnter={e => e.currentTarget.style.color = '#ef4444'}
onMouseLeave={e => e.currentTarget.style.color = 'var(--text-faint)'}>
✕
diff --git a/client/src/components/shared/DialogShell.tsx b/client/src/components/shared/DialogShell.tsx
index e8aee0814..90f22dd89 100644
--- a/client/src/components/shared/DialogShell.tsx
+++ b/client/src/components/shared/DialogShell.tsx
@@ -228,7 +228,7 @@ export function DialogHeader(p: DialogHeaderProps) {
title = (
<Tooltip label={p.titleTooltip ?? ''}>
<button id={titleId} type="button" onClick={p.onTitleClick}
- className="block max-w-full truncate text-left font-bold tracking-[-0.01em] text-content hover:underline hover:decoration-edge" style={titleStyle}>
+ className="block max-w-full truncate text-start font-bold tracking-[-0.01em] text-content hover:underline hover:decoration-edge" style={titleStyle}>
{p.title}
</button>
</Tooltip>
@@ -272,7 +272,7 @@ export function DialogSection({ label, action, className, children }: { label: R
<section className={className}>
<div className="mb-2 flex items-center gap-2">
<div className={EYEBROW} style={fs(9.5)}>{label}</div>
- {action && <span className="ml-auto">{action}</span>}
+ {action && <span className="ms-auto">{action}</span>}
</div>
{children}
</section>
diff --git a/client/src/components/shared/NavigationMenu.tsx b/client/src/components/shared/NavigationMenu.tsx
index f8dc1a9d9..2cb96384a 100644
--- a/client/src/components/shared/NavigationMenu.tsx
+++ b/client/src/components/shared/NavigationMenu.tsx
@@ -121,7 +121,7 @@ export function NavigationMenu({ targets, anchor, onClose, title }: NavigationMe
padding: '8px 10px', borderRadius: 8, border: 'none',
background: 'none', cursor: 'pointer', fontFamily: 'inherit',
fontSize: 'calc(12.5px * var(--fs-scale-body, 1))', fontWeight: 500,
- textAlign: 'left', color: 'var(--text-primary)',
+ textAlign: 'start', color: 'var(--text-primary)',
transition: 'background 0.12s',
}}
onMouseEnter={e => { e.currentTarget.style.background = 'var(--bg-hover)' }}
diff --git a/client/src/components/shared/PlaceAvatarUpload.tsx b/client/src/components/shared/PlaceAvatarUpload.tsx
index 2c629228a..5946ce896 100644
--- a/client/src/components/shared/PlaceAvatarUpload.tsx
+++ b/client/src/components/shared/PlaceAvatarUpload.tsx
@@ -127,7 +127,7 @@ export default function PlaceAvatarUpload({ place, category, size = 52, onUpload
onClick={handleRemove}
aria-label={t('places.removeImage')}
style={{
- position: 'absolute', top: -3, right: -3, width: 18, height: 18, borderRadius: '50%',
+ position: 'absolute', top: -3, insetInlineEnd: -3, width: 18, height: 18, borderRadius: '50%',
background: '#ef4444', color: '#fff', border: '2px solid var(--bg-elevated, #fff)',
display: 'flex', alignItems: 'center', justifyContent: 'center', cursor: 'pointer', padding: 0, zIndex: 1,
}}
@@ -187,7 +187,7 @@ function ImageChooser({ anchor, images, onUpload, onPick, onClose }: {
className="trek-popover-enter fixed z-[var(--z-toast)] flex w-[264px] flex-col gap-2 rounded-[14px] border border-edge-secondary bg-surface-card p-2 shadow-popover"
style={{ top: pos.top, left: pos.left }}>
<button type="button" onClick={onUpload}
- className="flex items-center gap-2 rounded-[10px] px-2.5 py-2 text-left text-body font-semibold text-content hover:bg-surface-hover">
+ className="flex items-center gap-2 rounded-[10px] px-2.5 py-2 text-start text-body font-semibold text-content hover:bg-surface-hover">
<Upload size={14} strokeWidth={2.2} className="text-content-muted" />
{t('places.uploadFromDevice')}
</button>
diff --git a/client/src/components/shared/PublicLanguagePicker.tsx b/client/src/components/shared/PublicLanguagePicker.tsx
index fdbb2a4f9..4e5cf076d 100644
--- a/client/src/components/shared/PublicLanguagePicker.tsx
+++ b/client/src/components/shared/PublicLanguagePicker.tsx
@@ -149,7 +149,7 @@ export default function PublicLanguagePicker({ locale, open, onOpenChange, varia
padding: '7px 12px',
border: 'none',
background: 'none',
- textAlign: 'left',
+ textAlign: 'start',
cursor: 'pointer',
fontSize: 'calc(12px * var(--fs-scale-body, 1))',
fontWeight: lang.value === current ? 600 : 400,
diff --git a/client/src/components/shared/StarRating.tsx b/client/src/components/shared/StarRating.tsx
index dc59e31ea..a693c386c 100644
--- a/client/src/components/shared/StarRating.tsx
+++ b/client/src/components/shared/StarRating.tsx
@@ -111,13 +111,13 @@ export default function PlaceRating({ ratings, ratingAvg, onRate, size = 16, com
{/* Who voted — avatar strip. */}
{!compact && ratings.length > 0 && (
- <span style={{ display: 'inline-flex', marginLeft: 'auto' }}>
+ <span style={{ display: 'inline-flex', marginInlineStart: 'auto' }}>
{ratings.slice(0, 6).map((r, i) => (
<span key={r.user_id} className="bg-surface-tertiary text-content-muted" style={{
width: 18, height: 18, borderRadius: '50%', overflow: 'hidden', flexShrink: 0,
display: 'flex', alignItems: 'center', justifyContent: 'center',
fontSize: 'calc(8px * var(--fs-scale-caption, 1))', fontWeight: 700,
- marginLeft: i ? -5 : 0, border: '1.5px solid var(--bg-elevated, #fff)',
+ marginInlineStart: i ? -5 : 0, border: '1.5px solid var(--bg-elevated, #fff)',
}}>
{r.avatar ? <img src={avatarSrc(r.avatar)!} alt={r.username || ''} style={{ width: '100%', height: '100%', objectFit: 'cover' }} /> : r.username?.[0]?.toUpperCase()}
</span>
diff --git a/client/src/components/shared/dialogParts.tsx b/client/src/components/shared/dialogParts.tsx
index 702a960c8..ea31bab9e 100644
--- a/client/src/components/shared/dialogParts.tsx
+++ b/client/src/components/shared/dialogParts.tsx
@@ -191,7 +191,7 @@ export function PillSelect<T extends string>({ value, options, onChange, label,
{shown?.icon}
<span>{shown?.label}</span>
{shown?.hint && <span className="font-medium text-content-muted">{shown.hint}</span>}
- <ChevronDown size={12} strokeWidth={2.2} className={`-mr-0.5 flex-none text-content-faint transition-transform ${open ? 'rotate-180' : ''}`} />
+ <ChevronDown size={12} strokeWidth={2.2} className={`-me-0.5 flex-none text-content-faint transition-transform ${open ? 'rotate-180' : ''}`} />
</button>
{open && box && createPortal(
<div ref={menuRef} id={listId} role="group" aria-label={label} onKeyDown={onListKey}
diff --git a/client/src/index.css b/client/src/index.css
index 68ac8bf53..de5eb915b 100644
--- a/client/src/index.css
+++ b/client/src/index.css
@@ -266,7 +266,7 @@ html.dark .bg-slate-50\/60, html.dark [class*="bg-slate-50/"] { background-color
/* There is no hover on touch, so these are always live — undo the base rule. */
pointer-events: auto !important;
align-items: center;
- margin-left: auto;
+ margin-inline-start: auto;
}
.reorder-buttons button {
background: var(--bg-tertiary) !important;
@@ -559,8 +559,8 @@ input[type="number"], input[type="time"], input[type="date"], input[type="dateti
@media (max-width: 639px) {
.trek-modal-enter {
animation: trek-drawer-enter 320ms cubic-bezier(0.32, 0.72, 0, 1);
- border-bottom-left-radius: 0 !important;
- border-bottom-right-radius: 0 !important;
+ border-end-start-radius: 0 !important;
+ border-end-end-radius: 0 !important;
margin-top: auto !important;
align-self: flex-end;
}
@@ -1400,7 +1400,8 @@ img[alt="TREK"] {
align-items: center;
gap: 6px;
min-width: 0;
- padding: 5px 8px 5px 5px;
+ padding-block: 5px;
+ padding-inline: 5px 8px;
/* Half the one-line height, so a one-line chip is still a pill and one whose
title wraps (#2550) keeps its rounded corners instead of a stadium end. */
border-radius: 18px;
@@ -1490,7 +1491,7 @@ img[alt="TREK"] {
align-items: center;
flex: 0 0 auto;
gap: 1px;
- margin-left: auto;
+ margin-inline-start: auto;
opacity: 0.45;
transition: opacity 0.15s ease;
}
@@ -1543,14 +1544,14 @@ img[alt="TREK"] {
.collab-note-md-full h3 { font-size: 1em !important; font-weight: 700 !important; margin: 0.8em 0 0.3em; }
.collab-note-md p, .collab-note-md-full p { margin: 0 0 0.3em; }
.collab-note-md p:last-child, .collab-note-md-full p:last-child { margin-bottom: 0; }
-.collab-note-md ul, .collab-note-md-full ul { list-style-type: disc !important; padding-left: 1.4em !important; margin: 0.2em 0; }
-.collab-note-md ol, .collab-note-md-full ol { list-style-type: decimal !important; padding-left: 1.4em !important; margin: 0.2em 0; }
+.collab-note-md ul, .collab-note-md-full ul { list-style-type: disc !important; padding-inline-start: 1.4em !important; margin: 0.2em 0; }
+.collab-note-md ol, .collab-note-md-full ol { list-style-type: decimal !important; padding-inline-start: 1.4em !important; margin: 0.2em 0; }
.collab-note-md li, .collab-note-md-full li { display: list-item !important; margin: 0.1em 0; }
.collab-note-md code, .collab-note-md-full code { font-size: 0.9em; padding: 1px 5px; border-radius: 4px; background: var(--bg-secondary); word-break: break-all; }
.collab-note-md-full pre { padding: 10px 12px; border-radius: 8px; background: var(--bg-secondary); overflow-x: auto; margin: 0.5em 0; }
.collab-note-md-full pre code { padding: 0; background: none; }
.collab-note-md a, .collab-note-md-full a { color: #3b82f6; text-decoration: underline; word-break: normal; overflow-wrap: break-word; }
-.collab-note-md blockquote, .collab-note-md-full blockquote { border-left: 3px solid var(--border-primary); padding-left: 12px; margin: 0.5em 0; color: var(--text-muted); }
+.collab-note-md blockquote, .collab-note-md-full blockquote { border-inline-start: 3px solid var(--border-primary); padding-inline-start: 12px; margin: 0.5em 0; color: var(--text-muted); }
.collab-note-md-full table { border-collapse: collapse; width: 100%; margin: 0.5em 0; }
.collab-note-md-full th, .collab-note-md-full td { border: 1px solid var(--border-primary); padding: 4px 8px; font-size: 0.9em; }
.collab-note-md-full hr { border: none; border-top: 1px solid var(--border-primary); margin: 0.8em 0; }
diff --git a/client/src/mobile/components/MBottomNav.tsx b/client/src/mobile/components/MBottomNav.tsx
index 63ac1a9e2..ad1bc3830 100644
--- a/client/src/mobile/components/MBottomNav.tsx
+++ b/client/src/mobile/components/MBottomNav.tsx
@@ -148,7 +148,7 @@ export default function MBottomNav() {
// Invisible scrim (the popover sits on the UI without dimming it).
<div className="fixed inset-0 z-[60]" role="presentation" onClick={() => setMoreOpen(false)}>
<div
- className="absolute left-4 right-4 flex flex-col gap-2 rounded-[26px] border border-[color:var(--m-gbr)] bg-[color:var(--m-glass)] p-[10px] shadow-[0_-8px_40px_-14px_rgba(0,0,0,.45)] backdrop-blur-[30px] backdrop-saturate-[1.8] bottom-[calc(env(safe-area-inset-bottom,0px)+86px)]"
+ className="absolute inset-x-4 flex flex-col gap-2 rounded-[26px] border border-[color:var(--m-gbr)] bg-[color:var(--m-glass)] p-[10px] shadow-[0_-8px_40px_-14px_rgba(0,0,0,.45)] backdrop-blur-[30px] backdrop-saturate-[1.8] bottom-[calc(env(safe-area-inset-bottom,0px)+86px)]"
role="presentation"
onClick={e => e.stopPropagation()}
>
@@ -157,7 +157,7 @@ export default function MBottomNav() {
key={to}
type="button"
onClick={() => { setMoreOpen(false); navigate(to) }}
- className="flex items-center gap-[13px] rounded-[18px] bg-[color:var(--m-ic)] px-4 py-[14px] text-left"
+ className="flex items-center gap-[13px] rounded-[18px] bg-[color:var(--m-ic)] px-4 py-[14px] text-start"
>
<span className="flex h-10 w-10 flex-none items-center justify-center rounded-xl bg-[color:var(--m-ic)] text-m-ink">
<Icon size={20} strokeWidth={2} />
@@ -170,7 +170,7 @@ export default function MBottomNav() {
</div>
)}
- <nav className="fixed left-4 right-4 z-40 flex h-[62px] items-center rounded-[31px] border border-[color:var(--m-gbr)] bg-[color:var(--m-glass)] px-3 shadow-[0_16px_44px_-14px_rgba(0,0,0,.35)] backdrop-blur-[30px] backdrop-saturate-[1.8] bottom-[calc(env(safe-area-inset-bottom,0px)+12px)]">
+ <nav className="fixed inset-x-4 z-40 flex h-[62px] items-center rounded-[31px] border border-[color:var(--m-gbr)] bg-[color:var(--m-glass)] px-3 shadow-[0_16px_44px_-14px_rgba(0,0,0,.35)] backdrop-blur-[30px] backdrop-saturate-[1.8] bottom-[calc(env(safe-area-inset-bottom,0px)+12px)]">
<div className="flex min-w-0 flex-1 items-center justify-around">{left.map(renderItem)}</div>
{logoSlot ? (
diff --git a/client/src/mobile/components/MDropdownPanel.tsx b/client/src/mobile/components/MDropdownPanel.tsx
index 5987c0843..0d442b403 100644
--- a/client/src/mobile/components/MDropdownPanel.tsx
+++ b/client/src/mobile/components/MDropdownPanel.tsx
@@ -3,7 +3,7 @@ import { ReactNode } from 'react'
interface MDropdownPanelProps {
open: boolean
onClose: () => void
- /** Positioning classes (e.g. `top-[100px] right-4`); panel is fixed. */
+ /** Positioning classes (e.g. `top-[100px] end-4`); panel is fixed. */
className?: string
children: ReactNode
}
diff --git a/client/src/mobile/components/MGlassBar.tsx b/client/src/mobile/components/MGlassBar.tsx
index 18b0c440e..455bb5724 100644
--- a/client/src/mobile/components/MGlassBar.tsx
+++ b/client/src/mobile/components/MGlassBar.tsx
@@ -12,7 +12,7 @@ export default function MGlassBar({ floating = true, className = '', children }:
return (
<div
className={`flex items-center gap-[11px] rounded-full border border-[color:var(--m-gbr)] bg-[color:var(--m-glass)] px-[14px] py-2 backdrop-blur-[26px] backdrop-saturate-[1.7] shadow-[0_14px_34px_-16px_rgba(0,0,0,.22)] ${
- floating ? 'fixed left-4 right-4 top-[var(--m-safe-top,12px)] z-30' : ''
+ floating ? 'fixed inset-x-4 top-[var(--m-safe-top,12px)] z-30' : ''
} ${className}`}
>
{children}
diff --git a/client/src/mobile/components/MListRow.tsx b/client/src/mobile/components/MListRow.tsx
index 36079b9b3..1f2bfecc1 100644
--- a/client/src/mobile/components/MListRow.tsx
+++ b/client/src/mobile/components/MListRow.tsx
@@ -23,7 +23,7 @@ export default function MListRow({
<button
type="button"
onClick={onClick}
- className={`flex w-full items-center gap-[11px] rounded-xl px-[10px] py-[11px] text-left text-[0.84375rem] font-semibold active:bg-[color:var(--m-ic)] ${
+ className={`flex w-full items-center gap-[11px] rounded-xl px-[10px] py-[11px] text-start text-[0.84375rem] font-semibold active:bg-[color:var(--m-ic)] ${
danger ? 'text-[color:var(--m-st-danger)]' : 'text-m-ink'
} ${className}`}
>
diff --git a/client/src/mobile/components/MSheet.tsx b/client/src/mobile/components/MSheet.tsx
index eb3596bb5..b1d0eb955 100644
--- a/client/src/mobile/components/MSheet.tsx
+++ b/client/src/mobile/components/MSheet.tsx
@@ -38,8 +38,8 @@ const FOCUSABLE =
'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'
const POSITION: Record<MSheetVariant, string> = {
- card: 'absolute left-[14px] right-[14px] top-1/2 -translate-y-1/2',
- bottom: 'absolute left-4 right-4 bottom-[calc(var(--bottom-nav-h,84px)+16px)]',
+ card: 'absolute inset-x-[14px] top-1/2 -translate-y-1/2',
+ bottom: 'absolute inset-x-4 bottom-[calc(var(--bottom-nav-h,84px)+16px)]',
drawer: 'absolute left-0 top-0 bottom-0 w-[78%] max-w-[320px]',
}
diff --git a/client/src/mobile/components/MToggle.tsx b/client/src/mobile/components/MToggle.tsx
index 0963101e3..a2153bc73 100644
--- a/client/src/mobile/components/MToggle.tsx
+++ b/client/src/mobile/components/MToggle.tsx
@@ -22,7 +22,7 @@ export default function MToggle({ checked, onChange, ariaLabel, disabled = false
>
<span
className={`block h-[18px] w-[18px] rounded-full bg-[color:var(--m-knob)] transition-transform duration-[180ms] ${
- checked ? 'translate-x-[18px]' : 'translate-x-0'
+ checked ? 'translate-x-[18px] rtl:-translate-x-[18px]' : 'translate-x-0'
}`}
/>
</button>
diff --git a/client/src/mobile/screens/admin/MAdmin.tsx b/client/src/mobile/screens/admin/MAdmin.tsx
index 1d6c82323..3b802c677 100644
--- a/client/src/mobile/screens/admin/MAdmin.tsx
+++ b/client/src/mobile/screens/admin/MAdmin.tsx
@@ -132,7 +132,7 @@ export default function MAdmin() {
className="flex h-[38px] min-w-0 flex-1 items-center gap-[7px] rounded-full border border-[color:var(--m-gbr)] bg-[color:var(--m-sheet)] px-[14px] text-[0.8125rem] font-bold text-m-ink shadow-[0_5px_12px_-8px_rgba(0,0,0,.18)]"
>
<Shield size={14} strokeWidth={2.2} className="flex-none" />
- <span className="min-w-0 flex-1 truncate text-left">{activeSection.label}</span>
+ <span className="min-w-0 flex-1 truncate text-start">{activeSection.label}</span>
<ChevronDown size={13} strokeWidth={2} className="flex-none text-m-faint" />
</button>
<button
@@ -156,7 +156,7 @@ export default function MAdmin() {
setActiveTab(section.id)
setSectionsOpen(false)
}}
- className={`flex w-full items-center gap-[10px] rounded-[11px] p-[10px] text-left text-[0.8125rem] font-semibold text-m-ink ${
+ className={`flex w-full items-center gap-[10px] rounded-[11px] p-[10px] text-start text-[0.8125rem] font-semibold text-m-ink ${
section.id === activeSection.id ? 'bg-[color:var(--m-ic)]' : ''
}`}
>
diff --git a/client/src/mobile/screens/admin/MAdminAddonManager.tsx b/client/src/mobile/screens/admin/MAdminAddonManager.tsx
index ff1b9608a..51a5d5e89 100644
--- a/client/src/mobile/screens/admin/MAdminAddonManager.tsx
+++ b/client/src/mobile/screens/admin/MAdminAddonManager.tsx
@@ -362,7 +362,7 @@ interface MSubRowProps {
/** Indented sub-feature row (bag tracking, collab features, memory providers). */
function MSubRow({ icon: Icon, providerIcon: ProviderIcon, title, subtitle, enabled, onToggle }: MSubRowProps) {
return (
- <div className="flex items-center gap-3 border-t border-[color:var(--m-rowbr)] py-[9px] pl-[50px]">
+ <div className="flex items-center gap-3 border-t border-[color:var(--m-rowbr)] py-[9px] ps-[50px]">
<span className="flex-none text-m-faint">
{Icon ? <Icon size={14} /> : ProviderIcon ? <ProviderIcon size={14} /> : null}
</span>
@@ -479,7 +479,7 @@ function LlmParsingConfig({ addon }: { addon: Addon }) {
]
return (
- <div className="space-y-5 pl-[50px]">
+ <div className="space-y-5 ps-[50px]">
<p className="font-geist text-[0.625rem] leading-relaxed text-m-faint">
Set instance-wide config (applies to all users). Leave blank to let each user configure their own provider.
</p>
@@ -496,7 +496,7 @@ function LlmParsingConfig({ addon }: { addon: Addon }) {
key={opt.value}
type="button"
onClick={() => setProvider(opt.value)}
- className={`flex w-full items-center gap-2 rounded-xl border px-3 py-[10px] text-left ${
+ className={`flex w-full items-center gap-2 rounded-xl border px-3 py-[10px] text-start ${
active ? 'border-[color:var(--m-act)] bg-[color:var(--m-ic)]' : 'border-[color:var(--m-rowbr)]'
}`}
>
diff --git a/client/src/mobile/screens/admin/MAdminBackupPanel.tsx b/client/src/mobile/screens/admin/MAdminBackupPanel.tsx
index 0bbd96853..c120fee00 100644
--- a/client/src/mobile/screens/admin/MAdminBackupPanel.tsx
+++ b/client/src/mobile/screens/admin/MAdminBackupPanel.tsx
@@ -302,7 +302,7 @@ export default function MAdminBackupPanel() {
</div>
</div>
</div>
- <div className="flex items-center gap-2 pl-12">
+ <div className="flex items-center gap-2 ps-12">
<MAdminButton
variant="ghost"
onClick={() => backupApi.download(backup.filename).catch(() => toast.error(t('backup.toast.downloadError')))}
@@ -323,7 +323,7 @@ export default function MAdminBackupPanel() {
type="button"
onClick={() => handleDelete(backup.filename)}
aria-label={t('common.delete')}
- className="ml-auto flex h-8 w-8 flex-none items-center justify-center rounded-full text-m-faint"
+ className="ms-auto flex h-8 w-8 flex-none items-center justify-center rounded-full text-m-faint"
>
<Trash2 size={16} strokeWidth={2.2} />
</button>
diff --git a/client/src/mobile/screens/admin/MAdminDefaultUserSettings.tsx b/client/src/mobile/screens/admin/MAdminDefaultUserSettings.tsx
index e20703d81..5f27cd3a6 100644
--- a/client/src/mobile/screens/admin/MAdminDefaultUserSettings.tsx
+++ b/client/src/mobile/screens/admin/MAdminDefaultUserSettings.tsx
@@ -132,7 +132,7 @@ export default function MAdminDefaultUserSettings(): React.ReactElement {
<button
type="button"
onClick={() => reset(field)}
- className="ml-2 font-geist text-[0.625rem] font-medium text-m-faint underline"
+ className="ms-2 font-geist text-[0.625rem] font-medium text-m-faint underline"
>
{t('admin.defaultSettings.resetToBuiltIn')}
</button>
diff --git a/client/src/mobile/screens/admin/MAdminDevNotificationsPanel.tsx b/client/src/mobile/screens/admin/MAdminDevNotificationsPanel.tsx
index 2e3a3960f..8e897fabb 100644
--- a/client/src/mobile/screens/admin/MAdminDevNotificationsPanel.tsx
+++ b/client/src/mobile/screens/admin/MAdminDevNotificationsPanel.tsx
@@ -39,7 +39,7 @@ function Btn({
type="button"
onClick={onClick}
disabled={sending !== null}
- className="flex w-full items-center gap-3 rounded-xl border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-3 py-[11px] text-left disabled:opacity-50"
+ className="flex w-full items-center gap-3 rounded-xl border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-3 py-[11px] text-start disabled:opacity-50"
>
<span
className="flex h-8 w-8 flex-none items-center justify-center rounded-[10px]"
diff --git a/client/src/mobile/screens/admin/MAdminGitHubPanel.tsx b/client/src/mobile/screens/admin/MAdminGitHubPanel.tsx
index b78e17c80..2910eba5f 100644
--- a/client/src/mobile/screens/admin/MAdminGitHubPanel.tsx
+++ b/client/src/mobile/screens/admin/MAdminGitHubPanel.tsx
@@ -232,7 +232,7 @@ export default function MAdminGitHubPanel({ isPrerelease = false }: { isPrerelea
<div className="truncate text-[0.8125rem] font-bold text-m-ink">{card.title}</div>
<div className="mt-[1px] truncate font-geist text-[0.625rem] text-m-faint">{card.sub}</div>
</div>
- <ExternalLink size={14} className="ml-auto flex-none text-m-faint" />
+ <ExternalLink size={14} className="ms-auto flex-none text-m-faint" />
</a>
))}
</div>
@@ -275,7 +275,7 @@ export default function MAdminGitHubPanel({ isPrerelease = false }: { isPrerelea
<div className="px-[14px] py-3">
<div className="relative">
{/* Timeline line */}
- <div className="absolute left-[11px] top-3 bottom-3 w-px" style={{ background: 'var(--m-rowbr)' }} />
+ <div className="absolute start-[11px] top-3 bottom-3 w-px" style={{ background: 'var(--m-rowbr)' }} />
<div className="space-y-0">
{shownReleases.map((release, idx) => {
@@ -283,10 +283,10 @@ export default function MAdminGitHubPanel({ isPrerelease = false }: { isPrerelea
const isExpanded = expanded[release.id]
return (
- <div key={release.id} className="relative pb-5 pl-8">
+ <div key={release.id} className="relative pb-5 ps-8">
{/* Timeline dot */}
<div
- className="absolute left-0 top-1 flex h-[23px] w-[23px] items-center justify-center rounded-full border-2"
+ className="absolute start-0 top-1 flex h-[23px] w-[23px] items-center justify-center rounded-full border-2"
style={{
background: isLatest ? 'var(--m-ink)' : 'var(--m-sheetop)',
borderColor: isLatest ? 'var(--m-ink)' : 'var(--m-rowbr)',
diff --git a/client/src/mobile/screens/admin/MAdminPackingTemplateManager.tsx b/client/src/mobile/screens/admin/MAdminPackingTemplateManager.tsx
index f58c09d33..841cafab9 100644
--- a/client/src/mobile/screens/admin/MAdminPackingTemplateManager.tsx
+++ b/client/src/mobile/screens/admin/MAdminPackingTemplateManager.tsx
@@ -258,7 +258,7 @@ export default function MAdminPackingTemplateManager() {
/>
</div>
) : (
- <button type="button" className="min-w-0 flex-1 text-left" onClick={() => toggleExpand(tmpl.id)}>
+ <button type="button" className="min-w-0 flex-1 text-start" onClick={() => toggleExpand(tmpl.id)}>
<div className="truncate text-[0.8125rem] font-bold text-m-ink">{tmpl.name}</div>
<div className="mt-[1px] font-geist text-[0.59375rem] text-m-faint">
{tmpl.category_count} {t('admin.packingTemplates.categories')} · {tmpl.item_count} {t('admin.packingTemplates.items')}
@@ -278,7 +278,7 @@ export default function MAdminPackingTemplateManager() {
{/* Expanded content */}
{expandedId === tmpl.id && (
- <div className="space-y-2 pb-3 pl-6">
+ <div className="space-y-2 pb-3 ps-6">
{categories.map(cat => {
const catItems = items.filter(i => i.category_id === cat.id)
return (
diff --git a/client/src/mobile/screens/admin/MAdminPluginsPanel.tsx b/client/src/mobile/screens/admin/MAdminPluginsPanel.tsx
index a14bd885d..cf8088d80 100644
--- a/client/src/mobile/screens/admin/MAdminPluginsPanel.tsx
+++ b/client/src/mobile/screens/admin/MAdminPluginsPanel.tsx
@@ -875,11 +875,11 @@ export default function MAdminPluginsPanel() {
</div>
<div className="relative">
- <Search size={15} className="pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-m-faint" />
+ <Search size={15} className="pointer-events-none absolute start-3 top-1/2 -translate-y-1/2 text-m-faint" />
<input
value={q} onChange={e => setQ(e.target.value)} type="search"
placeholder={t('admin.plugins.searchPlaceholder')}
- className="h-[42px] w-full rounded-xl border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] pl-9 pr-3 text-[0.84375rem] text-m-ink outline-none placeholder:text-m-faint focus:border-[color:var(--m-faint)]"
+ className="h-[42px] w-full rounded-xl border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] ps-9 pe-3 text-[0.84375rem] text-m-ink outline-none placeholder:text-m-faint focus:border-[color:var(--m-faint)]"
/>
</div>
@@ -915,7 +915,7 @@ export default function MAdminPluginsPanel() {
{/* p => runUpdate(p), NOT forEach(runUpdate): forEach's index would land in
runUpdate's `version` parameter and pin the update to a number. */}
<button type="button" onClick={() => updatable.forEach(p => runUpdate(p))}
- className="ml-auto rounded-full bg-[color:var(--m-st-pending)] px-3 py-1.5 text-[0.6875rem] font-bold text-white">
+ className="ms-auto rounded-full bg-[color:var(--m-st-pending)] px-3 py-1.5 text-[0.6875rem] font-bold text-white">
{t('admin.plugins.updateAll')}
</button>
</div>
@@ -1293,7 +1293,7 @@ function PickerSheet({ open, onClose, title, options, value, onPick }: {
<div className="space-y-1">
{options.map(([v, lbl]) => (
<button key={v} type="button" onClick={() => { onPick(v); onClose() }}
- className={`flex w-full items-center gap-2.5 rounded-xl px-3 py-3 text-left text-[0.8125rem] ${
+ className={`flex w-full items-center gap-2.5 rounded-xl px-3 py-3 text-start text-[0.8125rem] ${
value === v ? 'bg-[color:var(--m-ic)] font-bold text-m-ink' : 'font-medium text-m-muted'}`}>
<span className="min-w-0 flex-1 truncate">{lbl}</span>
<Check size={16} className={`text-m-ink ${value === v ? 'opacity-100' : 'opacity-0'}`} />
@@ -1323,7 +1323,7 @@ function InstalledRow({ p, t, busy, hasUpdate, latestVer, newerIncompatible, blo
<div className="grid h-[46px] w-[46px] place-items-center rounded-[13px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)]">
<PluginIcon name={p.icon} size={22} className="text-m-muted" />
</div>
- <span className={`absolute -bottom-0.5 -right-0.5 h-[13px] w-[13px] rounded-full ring-[2.5px] ring-[color:var(--m-sheetop)] ${HEALTH[p.status] || HEALTH.inactive}`}
+ <span className={`absolute -bottom-0.5 -end-0.5 h-[13px] w-[13px] rounded-full ring-[2.5px] ring-[color:var(--m-sheetop)] ${HEALTH[p.status] || HEALTH.inactive}`}
title={t(`admin.plugins.status.${p.status}` as never)} />
</div>
@@ -1444,7 +1444,7 @@ function RowActionsSheet({ p, t, onClose, onRestart, onErrors, onEgress, onSetti
onRestart: () => void; onErrors: () => void; onEgress: () => void; onSettings: () => void; onChangeVersion: () => void; onUninstall: () => void
}) {
const linkable = p.source_repo && p.source_repo !== 'local:upload' && p.source_repo !== 'local:link'
- const rowClass = 'flex w-full items-center gap-2.5 rounded-xl px-3 py-3 text-left text-[0.8125rem] font-semibold text-m-ink'
+ const rowClass = 'flex w-full items-center gap-2.5 rounded-xl px-3 py-3 text-start text-[0.8125rem] font-semibold text-m-ink'
return (
<MSheet open onClose={onClose} variant="bottom" material="opaque" ariaLabel={p.name}>
<MAdminSheetFrame title={p.name} onClose={onClose}>
@@ -1479,7 +1479,7 @@ function RowActionsSheet({ p, t, onClose, onRestart, onErrors, onEgress, onSetti
</>
)}
<div className="my-1 border-t border-[color:var(--m-rowbr)]" />
- <button type="button" className="flex w-full items-center gap-2.5 rounded-xl px-3 py-3 text-left text-[0.8125rem] font-semibold text-[color:var(--m-st-danger)]" onClick={onUninstall}>
+ <button type="button" className="flex w-full items-center gap-2.5 rounded-xl px-3 py-3 text-start text-[0.8125rem] font-semibold text-[color:var(--m-st-danger)]" onClick={onUninstall}>
<Trash2 size={16} /> {t('common.delete')}
</button>
</div>
@@ -1513,7 +1513,7 @@ function VersionPickerSheet({ plugin, versions, failed, busy, t, locale, onPick,
<span className={`text-[13px] font-semibold tabular-nums ${v.compatible ? 'text-m-ink' : 'text-m-faint'}`}>v{v.version}</span>
{v.publishedAt && <span className="text-[11.5px] text-m-faint">{new Date(v.publishedAt).toLocaleDateString(locale)}</span>}
{v.signed && <ShieldCheck size={13} className="shrink-0 text-[color:var(--m-st-confirmed)]" />}
- <span className="ml-auto" />
+ <span className="ms-auto" />
{current ? (
<span className="text-[11.5px] font-medium text-m-faint">{t('admin.plugins.installed')}</span>
) : v.compatible ? (
@@ -1596,11 +1596,11 @@ function RegistryList({ items, onInstall, onOpenDetail, busy, t, installedIds, f
<Screenshot url={item.screenshotUrl} className="aspect-[16/10]" iconSize={24} />
<div className="absolute inset-0 bg-gradient-to-t from-black/45 to-transparent" />
{item.reviewedAt && (
- <span className="absolute right-2.5 top-2.5 inline-flex items-center gap-1 rounded-full bg-black/40 px-2 py-1 text-[10.5px] font-semibold text-white backdrop-blur-sm">
+ <span className="absolute end-2.5 top-2.5 inline-flex items-center gap-1 rounded-full bg-black/40 px-2 py-1 text-[10.5px] font-semibold text-white backdrop-blur-sm">
<ShieldCheck size={12} /> {t('admin.plugins.reviewed')}
</span>
)}
- <div className="absolute -bottom-4 left-3 z-[1] grid h-11 w-11 place-items-center rounded-xl border border-[color:var(--m-rowbr)] bg-[color:var(--m-sheetop)] shadow-[0_5px_12px_-8px_rgba(0,0,0,.4)]">
+ <div className="absolute -bottom-4 start-3 z-[1] grid h-11 w-11 place-items-center rounded-xl border border-[color:var(--m-rowbr)] bg-[color:var(--m-sheetop)] shadow-[0_5px_12px_-8px_rgba(0,0,0,.4)]">
<PluginIcon name={item.icon} size={22} className="text-m-muted" />
</div>
</div>
@@ -1621,7 +1621,7 @@ function RegistryList({ items, onInstall, onOpenDetail, busy, t, installedIds, f
<button type="button" onClick={e => { e.stopPropagation(); onInstall(item.id, offer.version, offer.warn) }}
disabled={busy === item.id || installed || offer.blocked}
title={installed ? undefined : offer.title}
- className={`ml-auto ${ACT_PILL}`}>
+ className={`ms-auto ${ACT_PILL}`}>
{installed ? t('admin.plugins.installed') : offer.label}
</button>
</div>
@@ -1679,7 +1679,7 @@ function PluginDetailSheet({ item, installed, busy, onInstall, onClose, t, local
<div className="relative flex-none">
<Screenshot url={item.screenshotUrl} className="aspect-[16/9] w-full" iconSize={36} />
<div className="absolute inset-0 bg-gradient-to-t from-black/50 to-transparent" />
- <button type="button" onClick={onClose} aria-label={t('common.close')} className="absolute right-3 top-3 grid h-8 w-8 place-items-center rounded-lg bg-black/40 text-white"><X size={16} /></button>
+ <button type="button" onClick={onClose} aria-label={t('common.close')} className="absolute end-3 top-3 grid h-8 w-8 place-items-center rounded-lg bg-black/40 text-white"><X size={16} /></button>
</div>
<div className="min-h-0 flex-1 overflow-y-auto">
@@ -1832,7 +1832,7 @@ function PluginDetailSheet({ item, installed, busy, onInstall, onClose, t, local
<span className={`text-[12.5px] font-medium tabular-nums ${v.compatible ? 'text-m-ink' : 'text-m-faint'}`}>v{v.version}</span>
{v.publishedAt && <span className="text-[11.5px] text-m-faint">{new Date(v.publishedAt).toLocaleDateString(locale)}</span>}
{v.signed && <ShieldCheck size={13} className="shrink-0 text-[color:var(--m-st-confirmed)]" />}
- <span className="ml-auto" />
+ <span className="ms-auto" />
{v.compatible ? (
!installed && (
<button type="button" onClick={() => onInstall(item.id, v.version)} disabled={busy === item.id}
@@ -2087,7 +2087,7 @@ function SecurityInfo({ t }: { t: T }) {
</div>
<button type="button" onClick={() => setOpen(o => !o)}
className="flex w-full items-center justify-between gap-2 border-t border-[color:var(--m-rowbr)] px-4 py-3 text-xs font-medium text-m-muted">
- <span className="flex items-center gap-2"><Lock size={13} className="shrink-0" /> <span className="text-left">{t('admin.plugins.security.title')}</span></span>
+ <span className="flex items-center gap-2"><Lock size={13} className="shrink-0" /> <span className="text-start">{t('admin.plugins.security.title')}</span></span>
<ChevronDown size={15} className={`shrink-0 transition-transform ${open ? 'rotate-180' : ''}`} />
</button>
{open && (
diff --git a/client/src/mobile/screens/admin/MAdminSettingsSection.tsx b/client/src/mobile/screens/admin/MAdminSettingsSection.tsx
index 6a2fdcd69..4953cd76c 100644
--- a/client/src/mobile/screens/admin/MAdminSettingsSection.tsx
+++ b/client/src/mobile/screens/admin/MAdminSettingsSection.tsx
@@ -397,7 +397,7 @@ export default function MAdminSettingsSection({ admin, t }: MAdminSettingsSectio
type="button"
disabled={savingPlacesProvider}
onClick={() => setProviderPickerOpen(true)}
- className="flex h-[42px] w-full items-center gap-2 rounded-xl border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-3 text-left text-[0.84375rem] text-m-ink disabled:opacity-50"
+ className="flex h-[42px] w-full items-center gap-2 rounded-xl border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-3 text-start text-[0.84375rem] text-m-ink disabled:opacity-50"
>
<span className="min-w-0 flex-1 truncate">{t(`admin.placesProvider.${placesProvider}`)}</span>
<ChevronDown size={15} strokeWidth={2.2} className="flex-none text-m-faint" aria-hidden />
diff --git a/client/src/mobile/screens/admin/MAdminUi.tsx b/client/src/mobile/screens/admin/MAdminUi.tsx
index 6d7b187ee..1f1a52a67 100644
--- a/client/src/mobile/screens/admin/MAdminUi.tsx
+++ b/client/src/mobile/screens/admin/MAdminUi.tsx
@@ -85,13 +85,13 @@ export function MAdminSecretInput({ className = '', ...props }: InputHTMLAttribu
const [show, setShow] = useState(false)
return (
<div className="relative">
- <MAdminInput {...props} type={show ? 'text' : 'password'} className={`pr-10 ${className}`} />
+ <MAdminInput {...props} type={show ? 'text' : 'password'} className={`pe-10 ${className}`} />
<button
type="button"
tabIndex={-1}
aria-label="Show or hide"
onClick={() => setShow((v) => !v)}
- className="absolute right-3 top-1/2 -translate-y-1/2 text-m-faint"
+ className="absolute end-3 top-1/2 -translate-y-1/2 text-m-faint"
>
{show ? <EyeOff size={16} /> : <Eye size={16} />}
</button>
diff --git a/client/src/mobile/screens/admin/MAdminUsersSection.tsx b/client/src/mobile/screens/admin/MAdminUsersSection.tsx
index 2edaeffcc..a16c52777 100644
--- a/client/src/mobile/screens/admin/MAdminUsersSection.tsx
+++ b/client/src/mobile/screens/admin/MAdminUsersSection.tsx
@@ -39,7 +39,7 @@ export default function MAdminUsersSection({ admin, t, locale }: MAdminUsersSect
<span className="font-geist text-[0.625rem] font-bold text-m-faint">
{users.length} {t('admin.stats.users').toLowerCase()}
</span>
- <MAdminButton className="ml-auto" onClick={() => setShowCreateUser(true)}>
+ <MAdminButton className="ms-auto" onClick={() => setShowCreateUser(true)}>
<UserPlus size={12} strokeWidth={2.2} />
{t('mobileAdmin.create')}
</MAdminButton>
@@ -55,7 +55,7 @@ export default function MAdminUsersSection({ admin, t, locale }: MAdminUsersSect
key={u.id}
type="button"
onClick={() => handleEditUser(u)}
- className="flex w-full items-center gap-[11px] border-t border-[color:var(--m-rowbr)] py-[11px] text-left"
+ className="flex w-full items-center gap-[11px] border-t border-[color:var(--m-rowbr)] py-[11px] text-start"
>
{u.avatar_url ? (
<img src={u.avatar_url} alt="" className="h-[34px] w-[34px] flex-none rounded-full object-cover" />
diff --git a/client/src/mobile/screens/admin/MApiProviderBlocks.tsx b/client/src/mobile/screens/admin/MApiProviderBlocks.tsx
index 125e28fb8..f29f77dbf 100644
--- a/client/src/mobile/screens/admin/MApiProviderBlocks.tsx
+++ b/client/src/mobile/screens/admin/MApiProviderBlocks.tsx
@@ -90,7 +90,7 @@ export function MTrekApiBlock() {
<div className="relative mt-[18px]">
{/* The recommendation sits on the border, as on the desktop card, and small:
a wide coloured banner would shout over the settings beside it. */}
- <span className="pointer-events-none absolute -top-2 left-3 z-10 rounded-md bg-m-act px-2 py-[1px] font-geist text-[0.5625rem] font-bold tracking-[.12em] text-m-actfg uppercase">
+ <span className="pointer-events-none absolute -top-2 start-3 z-10 rounded-md bg-m-act px-2 py-[1px] font-geist text-[0.5625rem] font-bold tracking-[.12em] text-m-actfg uppercase">
{t('admin.trekApi.badgeDefault')}
</span>
@@ -115,7 +115,7 @@ export function MTrekApiBlock() {
type="button"
onClick={() => setOpen(v => !v)}
aria-expanded={open}
- className="flex w-full items-center gap-2 border-t border-[color:var(--m-rowbr)] px-[14px] py-[10px] text-left"
+ className="flex w-full items-center gap-2 border-t border-[color:var(--m-rowbr)] px-[14px] py-[10px] text-start"
>
<ChevronRight
size={15}
@@ -169,7 +169,7 @@ export function MBlockDisclosure({ label, children }: { label: string; children:
type="button"
onClick={() => setOpen(v => !v)}
aria-expanded={open}
- className="flex w-full items-center gap-2 px-[14px] py-[10px] text-left"
+ className="flex w-full items-center gap-2 px-[14px] py-[10px] text-start"
>
<ChevronRight
size={15}
@@ -207,7 +207,7 @@ export function MProviderBlock({
<div className={`relative ${badge ? 'mt-[18px]' : 'mt-3'}`}>
{badge && (
<span
- className={`pointer-events-none absolute -top-2 left-3 z-10 rounded-md border px-2 py-[1px] font-geist text-[0.5625rem] font-bold tracking-[.12em] uppercase ${
+ className={`pointer-events-none absolute -top-2 start-3 z-10 rounded-md border px-2 py-[1px] font-geist text-[0.5625rem] font-bold tracking-[.12em] uppercase ${
tone === 'caution'
? 'border-[color:var(--m-st-pending)] bg-[color:color-mix(in_srgb,var(--m-st-pending)_16%,var(--m-sheetop))] text-[color:var(--m-st-pending)]'
: 'border-[color:var(--m-rowbr)] bg-[color:var(--m-sheetop)] text-m-faint'
diff --git a/client/src/mobile/screens/atlas/MAtlas.tsx b/client/src/mobile/screens/atlas/MAtlas.tsx
index 5b887b3a8..598835e4e 100644
--- a/client/src/mobile/screens/atlas/MAtlas.tsx
+++ b/client/src/mobile/screens/atlas/MAtlas.tsx
@@ -117,7 +117,7 @@ export default function MAtlas() {
{/* Full-width bucket-list button. The bottom nav makes a back button
redundant on this main-nav screen, so the header spans the width. */}
- <div className="absolute left-4 right-4 top-[var(--m-safe-top,12px)] z-[5] flex items-center gap-2">
+ <div className="absolute inset-x-4 top-[var(--m-safe-top,12px)] z-[5] flex items-center gap-2">
<button
type="button"
onClick={() => setBucketOpen(true)}
diff --git a/client/src/mobile/screens/atlas/MAtlasBucketSheet.tsx b/client/src/mobile/screens/atlas/MAtlasBucketSheet.tsx
index 09c354c5a..7b18c663d 100644
--- a/client/src/mobile/screens/atlas/MAtlasBucketSheet.tsx
+++ b/client/src/mobile/screens/atlas/MAtlasBucketSheet.tsx
@@ -93,7 +93,7 @@ export default function MAtlasBucketSheet({ atlas, open, onClose }: MAtlasBucket
<div className="min-w-0 flex-1 truncate text-[0.9375rem] font-extrabold text-m-ink">
{t('atlas.bucketTab')}
{bucketList.length > 0 && (
- <span className="ml-[6px] font-geist text-[0.75rem] font-semibold tabular-nums text-m-faint">{bucketList.length}</span>
+ <span className="ms-[6px] font-geist text-[0.75rem] font-semibold tabular-nums text-m-faint">{bucketList.length}</span>
)}
</div>
<MIconBtn variant="neutral" size={34} onClick={close} ariaLabel={t('common.close')}>
@@ -184,9 +184,9 @@ export default function MAtlasBucketSheet({ atlas, open, onClose }: MAtlasBucket
)}
</div>
{bucketSearchResults.length > 0 && (
- <div className="absolute bottom-full left-0 right-0 z-10 mb-2 max-h-40 divide-y divide-[color:var(--m-rowbr)] overflow-y-auto rounded-[16px] border border-[color:var(--m-shbr)] bg-[color:var(--m-sheetop)] shadow-[0_12px_30px_-14px_rgba(0,0,0,.4)]">
+ <div className="absolute bottom-full inset-x-0 z-10 mb-2 max-h-40 divide-y divide-[color:var(--m-rowbr)] overflow-y-auto rounded-[16px] border border-[color:var(--m-shbr)] bg-[color:var(--m-sheetop)] shadow-[0_12px_30px_-14px_rgba(0,0,0,.4)]">
{bucketSearchResults.slice(0, 6).map((result, i) => (
- <button key={i} type="button" onClick={() => pickPoi(result)} className="flex w-full flex-col px-[14px] py-[9px] text-left active:bg-[color:var(--m-ic)]">
+ <button key={i} type="button" onClick={() => pickPoi(result)} className="flex w-full flex-col px-[14px] py-[9px] text-start active:bg-[color:var(--m-ic)]">
<span className="text-[0.8125rem] font-semibold text-m-ink">{result.name}</span>
{result.address && <span className="font-geist text-[0.625rem] text-m-faint">{result.address}</span>}
</button>
@@ -263,13 +263,13 @@ function MMonthYearField({ value, onChange, placeholder, language, t }: {
return (
<div className="relative">
- <button type="button" onClick={() => setOpen(o => !o)} aria-expanded={open} className={`${inputCls} flex items-center gap-2 text-left`}>
+ <button type="button" onClick={() => setOpen(o => !o)} aria-expanded={open} className={`${inputCls} flex items-center gap-2 text-start`}>
<Calendar size={15} strokeWidth={2.2} className="flex-none text-m-muted" />
<span className={`min-w-0 flex-1 truncate ${display ? '' : 'text-m-faint'}`}>{display || placeholder}</span>
<ChevronDown size={15} strokeWidth={2} className={`flex-none text-m-faint transition-transform ${open ? 'rotate-180' : ''}`} />
</button>
{open && (
- <div className="absolute bottom-full left-0 right-0 z-10 mb-2 rounded-[16px] border border-[color:var(--m-shbr)] bg-[color:var(--m-sheetop)] p-3 shadow-[0_12px_30px_-14px_rgba(0,0,0,.4)]">
+ <div className="absolute bottom-full inset-x-0 z-10 mb-2 rounded-[16px] border border-[color:var(--m-shbr)] bg-[color:var(--m-sheetop)] p-3 shadow-[0_12px_30px_-14px_rgba(0,0,0,.4)]">
<div className="mb-[10px] flex items-center justify-between">
<button type="button" onClick={() => setYear(y => y - 1)} aria-label={t('mobileVacay.prevYear')} className="flex h-8 w-8 flex-none items-center justify-center rounded-full bg-[color:var(--m-ic)] text-m-muted">
<ChevronLeft size={16} strokeWidth={2.2} />
diff --git a/client/src/mobile/screens/atlas/MAtlasCountryPopup.tsx b/client/src/mobile/screens/atlas/MAtlasCountryPopup.tsx
index 2081f45c2..e86b4ce47 100644
--- a/client/src/mobile/screens/atlas/MAtlasCountryPopup.tsx
+++ b/client/src/mobile/screens/atlas/MAtlasCountryPopup.tsx
@@ -34,7 +34,7 @@ function OptionRow({ icon: Icon, tint, title, hint, onClick }: OptionRowProps) {
<button
type="button"
onClick={onClick}
- className="flex w-full items-center gap-[13px] rounded-[18px] bg-[color:var(--m-ic)] px-4 py-[14px] text-left"
+ className="flex w-full items-center gap-[13px] rounded-[18px] bg-[color:var(--m-ic)] px-4 py-[14px] text-start"
>
<span className={`flex h-10 w-10 flex-none items-center justify-center rounded-xl ${tint}`}>
<Icon size={20} strokeWidth={2} />
@@ -286,7 +286,7 @@ export default function MAtlasCountryPopup({ atlas }: MAtlasCountryPopupProps) {
{a.type === 'bucket' && (
<>
- <label className="block text-left">
+ <label className="block text-start">
<span className="font-geist text-[0.6875rem] font-bold text-m-muted">{t('atlas.bucketWhen')}</span>
<input type="month" value={bucketDate} onChange={(e) => setBucketDate(e.target.value)} className={inputCls} />
</label>
diff --git a/client/src/mobile/screens/atlas/MAtlasSearch.tsx b/client/src/mobile/screens/atlas/MAtlasSearch.tsx
index 34bfc0a49..5518f62fa 100644
--- a/client/src/mobile/screens/atlas/MAtlasSearch.tsx
+++ b/client/src/mobile/screens/atlas/MAtlasSearch.tsx
@@ -95,7 +95,7 @@ export default function MAtlasSearch({
key={r.code}
type="button"
onClick={() => onSelect(r.code)}
- className="flex w-full items-center gap-3 px-4 py-[14px] text-left active:bg-[color:var(--m-ic)]"
+ className="flex w-full items-center gap-3 px-4 py-[14px] text-start active:bg-[color:var(--m-ic)]"
>
<img
src={`https://flagcdn.com/w40/${r.code.toLowerCase()}.png`}
diff --git a/client/src/mobile/screens/atlas/MAtlasStatsCard.tsx b/client/src/mobile/screens/atlas/MAtlasStatsCard.tsx
index 487a66472..55b059913 100644
--- a/client/src/mobile/screens/atlas/MAtlasStatsCard.tsx
+++ b/client/src/mobile/screens/atlas/MAtlasStatsCard.tsx
@@ -24,7 +24,7 @@ export default function MAtlasStatsCard({ stats }: MAtlasStatsCardProps) {
const planned = stats.totalCountriesPlanned || 0
return (
- <div className="absolute bottom-[calc(var(--bottom-nav-h,84px)+16px)] left-4 right-4 z-[5]">
+ <div className="absolute bottom-[calc(var(--bottom-nav-h,84px)+16px)] inset-x-4 z-[5]">
<div className="flex w-full rounded-[22px] border border-[color:var(--m-shbr)] bg-[color:var(--m-sheet)] px-3 py-[14px] shadow-[0_18px_44px_-20px_rgba(0,0,0,.4)]">
{cols.map(([n, l], i) => (
<div key={l} className="flex-1 text-center">
diff --git a/client/src/mobile/screens/collections/MCollAddSheet.tsx b/client/src/mobile/screens/collections/MCollAddSheet.tsx
index 1141a59e2..a0382ed40 100644
--- a/client/src/mobile/screens/collections/MCollAddSheet.tsx
+++ b/client/src/mobile/screens/collections/MCollAddSheet.tsx
@@ -156,7 +156,7 @@ export default function MCollAddSheet({ open, collectionId, collectionName, list
</div>
)}
{/* Search — picking a result fills the location */}
- <div className="flex items-center gap-2 rounded-[14px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-sheet)] py-1 pl-[13px] pr-[6px]">
+ <div className="flex items-center gap-2 rounded-[14px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-sheet)] py-1 ps-[13px] pe-[6px]">
<Search size={15} strokeWidth={2.2} className="flex-none text-m-muted" />
<input
value={query}
@@ -184,7 +184,7 @@ export default function MCollAddSheet({ open, collectionId, collectionName, list
</button>
</div>
{results.map((r, i) => (
- <button key={i} type="button" onClick={() => pick(r)} className="flex w-full items-center gap-[10px] px-[13px] py-[10px] text-left">
+ <button key={i} type="button" onClick={() => pick(r)} className="flex w-full items-center gap-[10px] px-[13px] py-[10px] text-start">
<span className="flex h-[26px] w-[26px] flex-none items-center justify-center rounded-lg bg-[color:var(--m-ic)] text-m-faint">
<MapPin size={14} strokeWidth={2.2} />
</span>
@@ -235,7 +235,7 @@ export default function MCollAddSheet({ open, collectionId, collectionName, list
<textarea rows={2} value={description} onChange={e => setDescription(e.target.value)} placeholder={t('collections.descriptionPlaceholder')} className={TEXTAREA_CLS} />
</div>
<SheetFooter>
- <CancelPill className="ml-auto" onClick={onClose}>{t('common.cancel')}</CancelPill>
+ <CancelPill className="ms-auto" onClick={onClose}>{t('common.cancel')}</CancelPill>
<PrimaryPill onClick={save} disabled={saving || !name.trim() || targetId == null}>
{saving ? <Loader2 size={14} className="animate-spin" /> : <Check size={14} strokeWidth={2.4} />} {t('common.add')}
</PrimaryPill>
diff --git a/client/src/mobile/screens/collections/MCollCategoryPicker.tsx b/client/src/mobile/screens/collections/MCollCategoryPicker.tsx
index ae0bc9437..9b6f3f48d 100644
--- a/client/src/mobile/screens/collections/MCollCategoryPicker.tsx
+++ b/client/src/mobile/screens/collections/MCollCategoryPicker.tsx
@@ -32,7 +32,7 @@ export default function MCollCategoryPicker({ categories, value, onChange, t }:
<button
type="button"
onClick={() => setOpen(v => !v)}
- className="flex w-full items-center gap-[9px] rounded-[12px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-sheet)] px-[13px] py-[11px] text-left"
+ className="flex w-full items-center gap-[9px] rounded-[12px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-sheet)] px-[13px] py-[11px] text-start"
>
<span
className="flex h-[26px] w-[26px] flex-none items-center justify-center rounded-lg"
@@ -46,7 +46,7 @@ export default function MCollCategoryPicker({ categories, value, onChange, t }:
<Chevron size={15} strokeWidth={2.2} className="flex-none text-m-faint" />
</button>
{open && (
- <div className="absolute left-0 right-0 top-[calc(100%+6px)] z-[5] max-h-[210px] overflow-y-auto rounded-[14px] border border-[color:var(--m-rowbr)] bg-m-sheetop shadow-[0_20px_44px_-18px_rgba(0,0,0,.45)]">
+ <div className="absolute inset-x-0 top-[calc(100%+6px)] z-[5] max-h-[210px] overflow-y-auto rounded-[14px] border border-[color:var(--m-rowbr)] bg-m-sheetop shadow-[0_20px_44px_-18px_rgba(0,0,0,.45)]">
{options.map((opt, i) => {
const cat = opt.id != null ? categories.find(c => c.id === opt.id) ?? null : null
const meta = (cat && categoryMeta(cat)) || NO_CATEGORY_META
@@ -57,7 +57,7 @@ export default function MCollCategoryPicker({ categories, value, onChange, t }:
key={opt.id ?? 'none'}
type="button"
onClick={() => { onChange(opt.id); setOpen(false) }}
- className={`flex w-full items-center gap-[10px] px-[13px] py-[10px] text-left ${i > 0 ? 'border-t border-[color:var(--m-rowbr)]' : ''}`}
+ className={`flex w-full items-center gap-[10px] px-[13px] py-[10px] text-start ${i > 0 ? 'border-t border-[color:var(--m-rowbr)]' : ''}`}
style={sel ? { background: tint(meta.color, '10') } : undefined}
>
<span
diff --git a/client/src/mobile/screens/collections/MCollEditSheet.tsx b/client/src/mobile/screens/collections/MCollEditSheet.tsx
index ab11a344d..3076ff4bb 100644
--- a/client/src/mobile/screens/collections/MCollEditSheet.tsx
+++ b/client/src/mobile/screens/collections/MCollEditSheet.tsx
@@ -24,7 +24,7 @@ interface CoverSearchPhoto {
const COVER_OVERLAY =
'absolute inset-0 flex items-center justify-center gap-[6px] bg-[rgba(0,0,0,.28)] text-[0.78125rem] font-bold text-white' // theme-lint-disable
const PHOTO_CREDIT =
- 'absolute inset-x-0 bottom-0 truncate bg-[rgba(0,0,0,.55)] px-[6px] py-1 text-left text-[0.625rem] text-white' // theme-lint-disable
+ 'absolute inset-x-0 bottom-0 truncate bg-[rgba(0,0,0,.55)] px-[6px] py-1 text-start text-[0.625rem] text-white' // theme-lint-disable
interface MCollEditSheetProps {
/** null = closed, 'new' = create, a Collection = edit that list. */
@@ -278,7 +278,7 @@ export default function MCollEditSheet({ target, onClose, onCreated, onRequestDe
<Trash2 size={13} strokeWidth={2} /> {t('collections.deleteList')}
</button>
)}
- <CancelPill className="ml-auto" onClick={close}>{t('common.cancel')}</CancelPill>
+ <CancelPill className="ms-auto" onClick={close}>{t('common.cancel')}</CancelPill>
<PrimaryPill onClick={save} disabled={!name.trim() || saving}>
{saving && <Loader2 size={14} className="animate-spin" />}
{editing ? t('common.save') : t('collections.create')}
diff --git a/client/src/mobile/screens/collections/MCollLabelsSheet.tsx b/client/src/mobile/screens/collections/MCollLabelsSheet.tsx
index 2e376a654..809425420 100644
--- a/client/src/mobile/screens/collections/MCollLabelsSheet.tsx
+++ b/client/src/mobile/screens/collections/MCollLabelsSheet.tsx
@@ -199,7 +199,7 @@ export default function MCollLabelsSheet({
<button type="button" onClick={onSwitchToManage} className="text-[0.75rem] font-bold text-m-muted">
{t('collections.labels.manage')}
</button>
- <PrimaryPill className="ml-auto" onClick={assign} disabled={checked.length === 0 || busy}>
+ <PrimaryPill className="ms-auto" onClick={assign} disabled={checked.length === 0 || busy}>
<Tag size={13} strokeWidth={2.4} /> {t('collections.labels.assign')}
</PrimaryPill>
</SheetFooter>
diff --git a/client/src/mobile/screens/collections/MCollListPickerSheet.tsx b/client/src/mobile/screens/collections/MCollListPickerSheet.tsx
index 671025803..3a866ef05 100644
--- a/client/src/mobile/screens/collections/MCollListPickerSheet.tsx
+++ b/client/src/mobile/screens/collections/MCollListPickerSheet.tsx
@@ -52,7 +52,7 @@ export default function MCollListPickerSheet({ mode, lists, count, onPick, onClo
type="button"
onClick={() => pick(list.id)}
disabled={busyId != null}
- className="mb-1 flex w-full items-center gap-[10px] rounded-[13px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-sheet)] px-3 py-[11px] text-left disabled:opacity-60"
+ className="mb-1 flex w-full items-center gap-[10px] rounded-[13px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-sheet)] px-3 py-[11px] text-start disabled:opacity-60"
>
<span className="h-[9px] w-[9px] flex-none rounded-full" style={{ background: list.color || '#6366F1' }} />
<span className="min-w-0 flex-1 truncate text-[0.84375rem] font-semibold text-m-ink">{list.name}</span>
diff --git a/client/src/mobile/screens/collections/MCollPlaceRow.tsx b/client/src/mobile/screens/collections/MCollPlaceRow.tsx
index 5a644b0d3..3e5281fc5 100644
--- a/client/src/mobile/screens/collections/MCollPlaceRow.tsx
+++ b/client/src/mobile/screens/collections/MCollPlaceRow.tsx
@@ -38,7 +38,7 @@ export default function MCollPlaceRow({
type="button"
onClick={() => (selectMode ? onToggleSelect(place.id) : onOpen(place.id))}
aria-pressed={selectMode ? selected : undefined}
- className="flex min-w-0 flex-1 items-center gap-[11px] rounded-2xl border border-[color:var(--m-rowbr)] bg-m-sheetop px-3 py-[11px] text-left"
+ className="flex min-w-0 flex-1 items-center gap-[11px] rounded-2xl border border-[color:var(--m-rowbr)] bg-m-sheetop px-3 py-[11px] text-start"
style={selected ? { boxShadow: 'inset 0 0 0 1.5px var(--m-act)' } : undefined}
>
<span
diff --git a/client/src/mobile/screens/collections/MCollPlaceSheet.tsx b/client/src/mobile/screens/collections/MCollPlaceSheet.tsx
index e0705778b..196987701 100644
--- a/client/src/mobile/screens/collections/MCollPlaceSheet.tsx
+++ b/client/src/mobile/screens/collections/MCollPlaceSheet.tsx
@@ -289,7 +289,7 @@ export default function MCollPlaceSheet({
<Eyebrow className="mb-[6px] mt-[14px]">{t('collections.links').toUpperCase()}</Eyebrow>
<MCollLinksEditor links={links} onChange={setLinks} t={t} />
<div className="mt-4 flex items-center gap-2">
- <CancelPill className="ml-auto" onClick={cancelEdit}>{t('common.cancel')}</CancelPill>
+ <CancelPill className="ms-auto" onClick={cancelEdit}>{t('common.cancel')}</CancelPill>
<PrimaryPill onClick={save} disabled={saving}>
<Check size={14} strokeWidth={2.4} /> {t('common.save')}
</PrimaryPill>
diff --git a/client/src/mobile/screens/collections/MCollShareSheet.tsx b/client/src/mobile/screens/collections/MCollShareSheet.tsx
index af43f00cf..a4ba1b480 100644
--- a/client/src/mobile/screens/collections/MCollShareSheet.tsx
+++ b/client/src/mobile/screens/collections/MCollShareSheet.tsx
@@ -209,7 +209,7 @@ export default function MCollShareSheet({
<button
type="button"
onClick={() => setUserPickerOpen(v => !v)}
- className="flex min-w-0 flex-1 items-center justify-between gap-2 rounded-[12px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-sheet)] px-[13px] py-[11px] text-left text-[0.78125rem]"
+ className="flex min-w-0 flex-1 items-center justify-between gap-2 rounded-[12px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-sheet)] px-[13px] py-[11px] text-start text-[0.78125rem]"
>
<span className={`truncate ${selectedUser ? 'font-semibold text-m-ink' : 'text-m-faint'}`}>
{selectedUser?.username ?? t('collections.share.inviteUser')}
@@ -226,13 +226,13 @@ export default function MCollShareSheet({
{inviting ? <Loader2 size={16} className="animate-spin" /> : <UserPlus size={16} strokeWidth={2.2} />}
</button>
{userPickerOpen && (
- <div className="absolute left-0 right-[52px] top-[calc(100%+6px)] z-[5] max-h-[180px] overflow-y-auto rounded-[14px] border border-[color:var(--m-rowbr)] bg-m-sheetop shadow-[0_20px_44px_-18px_rgba(0,0,0,.45)]">
+ <div className="absolute start-0 end-[52px] top-[calc(100%+6px)] z-[5] max-h-[180px] overflow-y-auto rounded-[14px] border border-[color:var(--m-rowbr)] bg-m-sheetop shadow-[0_20px_44px_-18px_rgba(0,0,0,.45)]">
{availableUsers.map(u => (
<button
key={u.id}
type="button"
onClick={() => { setSelectedUserId(u.id); setUserPickerOpen(false) }}
- className="flex w-full items-center gap-2 border-t border-[color:var(--m-rowbr)] px-[13px] py-[10px] text-left text-[0.8125rem] font-semibold text-m-ink first:border-t-0"
+ className="flex w-full items-center gap-2 border-t border-[color:var(--m-rowbr)] px-[13px] py-[10px] text-start text-[0.8125rem] font-semibold text-m-ink first:border-t-0"
>
<span className="min-w-0 flex-1 truncate">{u.username}</span>
{selectedUserId === u.id && <Check size={14} strokeWidth={2.6} />}
@@ -266,7 +266,7 @@ export default function MCollShareSheet({
<>
<div className="mb-2 text-[0.8125rem] text-m-ink">{t('collections.share.leaveConfirm')}</div>
<div className="flex items-center gap-2">
- <CancelPill className="ml-auto" onClick={() => setConfirmLeave(false)}>{t('common.cancel')}</CancelPill>
+ <CancelPill className="ms-auto" onClick={() => setConfirmLeave(false)}>{t('common.cancel')}</CancelPill>
<PrimaryPill onClick={handleLeave} disabled={leaving} className="!bg-[color:var(--m-st-danger)] !text-white">
{leaving ? <Loader2 size={14} className="animate-spin" /> : <LogOut size={14} strokeWidth={2.2} />} {t('collections.share.leave')}
</PrimaryPill>
diff --git a/client/src/mobile/screens/collections/MCollTripPickerSheet.tsx b/client/src/mobile/screens/collections/MCollTripPickerSheet.tsx
index f03852a39..855378fd1 100644
--- a/client/src/mobile/screens/collections/MCollTripPickerSheet.tsx
+++ b/client/src/mobile/screens/collections/MCollTripPickerSheet.tsx
@@ -108,7 +108,7 @@ export default function MCollTripPickerSheet({ open, count, onCopy, onClose, t }
type="button"
onClick={() => handleCopy(trip.id)}
disabled={busy}
- className="mb-2 flex w-full items-center gap-[11px] rounded-[14px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-sheet)] px-3 py-[10px] text-left disabled:opacity-60"
+ className="mb-2 flex w-full items-center gap-[11px] rounded-[14px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-sheet)] px-3 py-[10px] text-start disabled:opacity-60"
>
<span className="flex h-9 w-9 flex-none items-center justify-center overflow-hidden rounded-[10px] bg-[color:var(--m-ic)] text-m-faint">
{trip.cover_image
diff --git a/client/src/mobile/screens/collections/MCollections.tsx b/client/src/mobile/screens/collections/MCollections.tsx
index fcab6997e..5a8abdae1 100644
--- a/client/src/mobile/screens/collections/MCollections.tsx
+++ b/client/src/mobile/screens/collections/MCollections.tsx
@@ -154,7 +154,7 @@ export default function MCollections() {
className="flex h-[38px] min-w-0 flex-1 items-center gap-[7px] rounded-full border border-[color:var(--m-gbr)] bg-[color:var(--m-sheet)] px-[14px] text-[0.8125rem] font-bold text-m-ink shadow-[0_5px_12px_-8px_rgba(0,0,0,.18)]"
>
<Bookmark size={14} strokeWidth={2.2} className="flex-none" />
- <span className="min-w-0 flex-1 truncate text-left">{title}</span>
+ <span className="min-w-0 flex-1 truncate text-start">{title}</span>
<ChevronDown size={13} strokeWidth={2} className="flex-none text-m-faint" />
</button>
{canEditList && (
@@ -189,7 +189,7 @@ export default function MCollections() {
key={l.id}
type="button"
onClick={() => selectList(l.id)}
- className={`flex w-full items-center gap-[10px] rounded-[11px] p-[10px] text-left ${active ? 'bg-[color:var(--m-ic)]' : ''}`}
+ className={`flex w-full items-center gap-[10px] rounded-[11px] p-[10px] text-start ${active ? 'bg-[color:var(--m-ic)]' : ''}`}
style={active ? { boxShadow: `inset 0 0 0 1.5px ${l.color || '#6366F1'}` } : undefined}
>
<span className="h-[9px] w-[9px] flex-none rounded-full" style={{ background: l.color || '#6366F1' }} />
@@ -304,14 +304,14 @@ export default function MCollections() {
/>
)}
{statusDrop && (
- <div className={`absolute left-0 right-0 top-[calc(100%+6px)] z-20 p-[6px] ${DROP_PANEL}`}>
+ <div className={`absolute inset-x-0 top-[calc(100%+6px)] z-20 p-[6px] ${DROP_PANEL}`}>
<button
type="button"
onClick={() => pickStatusFilter('all')}
className={`flex w-full items-center gap-[9px] rounded-[11px] p-[10px] text-[0.8125rem] font-semibold text-m-ink ${c.statusFilter === 'all' ? 'bg-[color:var(--m-ic)]' : ''}`}
>
<Layers size={15} strokeWidth={2} />
- <span className="flex-1 text-left">{t('collections.status.filterAll')}</span>
+ <span className="flex-1 text-start">{t('collections.status.filterAll')}</span>
<span className="font-geist text-[0.6875rem] font-bold text-m-faint">{c.counts.all}</span>
</button>
{STATUS_ORDER.map(s => {
@@ -325,7 +325,7 @@ export default function MCollections() {
className={`flex w-full items-center gap-[9px] rounded-[11px] p-[10px] text-[0.8125rem] font-semibold text-m-ink ${c.statusFilter === s ? 'bg-[color:var(--m-ic)]' : ''}`}
>
<Icon size={15} strokeWidth={2} style={{ color: meta.color }} />
- <span className="flex-1 text-left">{t(meta.labelKey)}</span>
+ <span className="flex-1 text-start">{t(meta.labelKey)}</span>
<span className="font-geist text-[0.6875rem] font-bold text-m-faint">{c.counts[s]}</span>
</button>
)
@@ -333,14 +333,14 @@ export default function MCollections() {
</div>
)}
{labelDrop && (
- <div className={`absolute left-0 right-0 top-[calc(100%+6px)] z-20 max-h-[240px] overflow-y-auto p-[6px] ${DROP_PANEL}`}>
+ <div className={`absolute inset-x-0 top-[calc(100%+6px)] z-20 max-h-[240px] overflow-y-auto p-[6px] ${DROP_PANEL}`}>
<button
type="button"
onClick={() => { c.setLabelFilter([]); setLabelDrop(false) }}
className={`flex w-full items-center gap-[9px] rounded-[11px] p-[10px] text-[0.8125rem] font-semibold text-m-ink ${c.labelFilter.length === 0 ? 'bg-[color:var(--m-ic)]' : ''}`}
>
<Tag size={15} strokeWidth={2} />
- <span className="flex-1 text-left">{t('collections.status.filterAll')}</span>
+ <span className="flex-1 text-start">{t('collections.status.filterAll')}</span>
</button>
{c.labelOptions.map(l => {
const on = c.labelFilter.includes(l.id)
@@ -349,7 +349,7 @@ export default function MCollections() {
key={l.id}
type="button"
onClick={() => toggleLabelFilter(l.id)}
- className={`flex w-full items-center gap-[10px] rounded-[11px] p-[10px] text-left ${on ? 'bg-[color:var(--m-ic)]' : ''}`}
+ className={`flex w-full items-center gap-[10px] rounded-[11px] p-[10px] text-start ${on ? 'bg-[color:var(--m-ic)]' : ''}`}
>
<span className="h-[9px] w-[9px] flex-none rounded-full" style={{ background: l.color || '#6366F1' }} />
<span className="min-w-0 flex-1 truncate text-[0.8125rem] font-semibold text-m-ink">{l.name}</span>
@@ -545,7 +545,7 @@ export default function MCollections() {
<div className="text-[1.0625rem] font-bold text-m-ink">{t('collections.deleteList')}</div>
<div className="mt-2 font-geist text-[0.78125rem] leading-[1.5] text-m-muted">{t('collections.deleteListConfirm')}</div>
<div className="mt-4 flex items-center gap-2">
- <CancelPill className="ml-auto" onClick={() => c.setConfirmDeleteList(null)}>{t('common.cancel')}</CancelPill>
+ <CancelPill className="ms-auto" onClick={() => c.setConfirmDeleteList(null)}>{t('common.cancel')}</CancelPill>
<PrimaryPill onClick={c.handleDeleteList} className="!bg-[color:var(--m-st-danger)] !text-white">
<Trash2 size={14} strokeWidth={2.2} /> {t('common.delete')}
</PrimaryPill>
diff --git a/client/src/mobile/screens/dashboard/MDashWidgets.tsx b/client/src/mobile/screens/dashboard/MDashWidgets.tsx
index 3c92c5569..1846c798e 100644
--- a/client/src/mobile/screens/dashboard/MDashWidgets.tsx
+++ b/client/src/mobile/screens/dashboard/MDashWidgets.tsx
@@ -91,7 +91,7 @@ function WidgetPanel({ icon, title, action, children }: {
<div className="flex items-center gap-[7px] font-geist text-[0.625rem] font-bold uppercase tracking-[.14em] text-m-faint">
{icon}
{title}
- {action && <span className="ml-auto flex">{action}</span>}
+ {action && <span className="ms-auto flex">{action}</span>}
</div>
{children}
</section>
@@ -262,11 +262,11 @@ function MCollectionsWidget(): React.ReactElement {
key={list.id}
type="button"
onClick={() => navigate(`/collections/${list.id}`)}
- className="mt-[11px] flex w-full items-center rounded-[14px] p-[15px_14px] text-left text-white"
+ className="mt-[11px] flex w-full items-center rounded-[14px] p-[15px_14px] text-start text-white"
style={{ background: list.color || entityGradient(list.id) }}
>
<span className="min-w-0 flex-1 truncate text-[0.875rem] font-bold">{list.name}</span>
- <span className="ml-auto flex flex-none items-center gap-1 rounded-full bg-white/[.22] px-[10px] py-[3px] font-geist text-[0.625rem] font-bold">
+ <span className="ms-auto flex flex-none items-center gap-1 rounded-full bg-white/[.22] px-[10px] py-[3px] font-geist text-[0.625rem] font-bold">
<MapPin size={10} strokeWidth={2.4} />
{list.place_count ?? 0}
</span>
@@ -430,7 +430,7 @@ function MUpcomingWidget({ items }: { items: UpcomingReservation[] }): React.Rea
key={upcomingKey(r)}
type="button"
onClick={() => openReservation(r.trip_id)}
- className="flex w-full items-center gap-[11px] border-b border-[color:var(--m-rowbr)] py-[9px] text-left"
+ className="flex w-full items-center gap-[11px] border-b border-[color:var(--m-rowbr)] py-[9px] text-start"
>
<span className="flex h-8 w-8 flex-none items-center justify-center rounded-[11px] bg-[color:var(--m-ic)]">
{RES_ICON[r.type] || <Ticket size={14} strokeWidth={2} />}
diff --git a/client/src/mobile/screens/dashboard/MDashboard.tsx b/client/src/mobile/screens/dashboard/MDashboard.tsx
index f5e357c41..bdf3d7e21 100644
--- a/client/src/mobile/screens/dashboard/MDashboard.tsx
+++ b/client/src/mobile/screens/dashboard/MDashboard.tsx
@@ -137,7 +137,7 @@ export default function MDashboard(): React.ReactElement {
the page and dragged the fixed bars off-screen under Android's
forced zoom. min-w-max keeps the pill track wrapping its chips,
and the box stays content-wide (no flex-1) so the pill still hugs
- them on wide phones while ml-auto parks the icons on the right. */}
+ them on wide phones while ms-auto parks the icons at the end. */}
<div className="m-hscroll min-w-0">
<MSegmented<TripFilter>
value={tripFilter}
@@ -151,7 +151,7 @@ export default function MDashboard(): React.ReactElement {
]}
/>
</div>
- <MIconBtn ariaLabel={t('dashboard.subscribeAllTrips')} size={36} className="ml-auto" onClick={() => setSubOpen(true)}>
+ <MIconBtn ariaLabel={t('dashboard.subscribeAllTrips')} size={36} className="ms-auto" onClick={() => setSubOpen(true)}>
<CalendarPlus size={15} strokeWidth={2} className="text-m-muted" />
</MIconBtn>
<button
@@ -236,7 +236,7 @@ export default function MDashboard(): React.ReactElement {
<MIconBtn ariaLabel={t('notifications.title')} onClick={() => navigate('/notifications')}>
<Bell size={18} strokeWidth={2} />
{unread > 0 && (
- <span aria-hidden className="absolute right-[9px] top-2 h-[7px] w-[7px] rounded-full bg-m-ink" />
+ <span aria-hidden className="absolute end-[9px] top-2 h-[7px] w-[7px] rounded-full bg-m-ink" />
)}
</MIconBtn>
<button
@@ -382,10 +382,10 @@ function MSpotlightCard({ trip, t, onOpen, actions }: {
{trip.cover_image
? <img src={trip.cover_image} alt={trip.title} className="absolute inset-0 h-full w-full object-cover" />
: <div className="absolute inset-0" style={{ backgroundImage: entityGradient(trip.id) }} />}
- <div className="absolute right-[10px] top-[10px] flex gap-[6px]">
+ <div className="absolute end-[10px] top-[10px] flex gap-[6px]">
{actions.map(a => <CoverActionBtn key={a.key} action={a} />)}
</div>
- <div className="absolute bottom-[10px] left-[10px] right-[10px] rounded-[18px] border border-white/[.16] bg-[rgba(14,14,17,.52)] p-[12px_14px] text-white backdrop-blur-[22px] backdrop-saturate-[1.6]">{/* theme-lint-disable — fixed dark glass on the cover photo */}
+ <div className="absolute bottom-[10px] inset-x-[10px] rounded-[18px] border border-white/[.16] bg-[rgba(14,14,17,.52)] p-[12px_14px] text-white backdrop-blur-[22px] backdrop-saturate-[1.6]">{/* theme-lint-disable — fixed dark glass on the cover photo */}
<span className="flex gap-[6px]">
<span className="rounded-full bg-white/[.92] px-2 py-[3px] text-[0.625rem] font-bold uppercase tracking-[.07em] text-[#101013]">{/* theme-lint-disable — fixed on-photo badge */}
{primaryBadge}
@@ -450,7 +450,7 @@ function CoverBadge({ label, offset }: { label: string; offset: 8 | 12 }): React
return (
<span
className={`absolute box-border inline-flex h-[34px] items-center gap-[6px] rounded-full bg-white/[.22] px-[13px] font-geist text-[0.625rem] font-extrabold uppercase tracking-[.08em] text-white backdrop-blur-[8px] ${
- offset === 8 ? 'left-2 top-2' : 'left-3 top-3'
+ offset === 8 ? 'start-2 top-2' : 'start-3 top-3'
}`}
>
<span aria-hidden className="h-[6px] w-[6px] rounded-full bg-white" />
@@ -510,7 +510,7 @@ function MTripGridCard({ trip, locale, badge, pluginBadges, actions, onOpen }: {
<div className="relative h-[96px]" style={coverStyle(trip)}>
<div className="absolute inset-0 bg-[image:linear-gradient(180deg,rgba(0,0,0,.32),rgba(0,0,0,0)_60%)]" />
<CoverBadge label={badge} offset={8} />
- <div className="absolute right-2 top-2 flex gap-[6px]">
+ <div className="absolute end-2 top-2 flex gap-[6px]">
{actions.map(a => <CoverActionBtn key={a.key} action={a} />)}
</div>
</div>
@@ -545,10 +545,10 @@ function MTripListCard({ trip, locale, t, badge, pluginBadges, actions, onOpen }
<div className="relative h-[188px]" style={coverStyle(trip)}>
<div className="absolute inset-0 bg-[image:linear-gradient(180deg,rgba(0,0,0,.28),rgba(0,0,0,0)_42%,rgba(0,0,0,.55))]" />
<CoverBadge label={badge} offset={12} />
- <div className="absolute right-3 top-3 flex gap-[7px]">
+ <div className="absolute end-3 top-3 flex gap-[7px]">
{actions.map(a => <CoverActionBtn key={a.key} action={a} />)}
</div>
- <div className="absolute bottom-[14px] left-4 right-4 truncate text-[1.625rem] font-extrabold text-white [text-shadow:0_2px_12px_rgba(0,0,0,.4)]">
+ <div className="absolute bottom-[14px] inset-x-4 truncate text-[1.625rem] font-extrabold text-white [text-shadow:0_2px_12px_rgba(0,0,0,.4)]">
{trip.title}
</div>
</div>
diff --git a/client/src/mobile/screens/dashboard/MNewTripSheet.tsx b/client/src/mobile/screens/dashboard/MNewTripSheet.tsx
index 5f89b172e..ea052d83b 100644
--- a/client/src/mobile/screens/dashboard/MNewTripSheet.tsx
+++ b/client/src/mobile/screens/dashboard/MNewTripSheet.tsx
@@ -361,7 +361,7 @@ export default function MNewTripSheet({ open, trip, onClose, onSave, onCoverUpda
{coverPreview ? (
<div className="relative h-[130px] overflow-hidden rounded-[16px]">
<img src={coverPreview} alt="" className="h-full w-full object-cover" />
- <div className="absolute bottom-2 right-2 flex gap-[6px]">
+ <div className="absolute bottom-2 end-2 flex gap-[6px]">
<button
type="button"
onClick={() => fileRef.current?.click()}
@@ -428,7 +428,7 @@ export default function MNewTripSheet({ open, trip, onClose, onSave, onCoverUpda
>
<img src={photo.thumb} alt={photo.description || ''} loading="lazy" className="h-full w-full object-cover" />
{photo.photographer && (
- <span className="absolute inset-x-0 bottom-0 truncate bg-black/55 px-[6px] py-1 text-left font-geist text-[0.625rem] text-white">
+ <span className="absolute inset-x-0 bottom-0 truncate bg-black/55 px-[6px] py-1 text-start font-geist text-[0.625rem] text-white">
{photo.photographer}
</span>
)}
diff --git a/client/src/mobile/screens/dashboard/MUserMenu.tsx b/client/src/mobile/screens/dashboard/MUserMenu.tsx
index 72e577e30..6cba921ea 100644
--- a/client/src/mobile/screens/dashboard/MUserMenu.tsx
+++ b/client/src/mobile/screens/dashboard/MUserMenu.tsx
@@ -57,7 +57,7 @@ export default function MUserMenu({ open, onClose }: MUserMenuProps): React.Reac
}
return (
- <MDropdownPanel open={open} onClose={onClose} className="right-4 top-[calc(var(--m-safe-top,12px)+68px)]">
+ <MDropdownPanel open={open} onClose={onClose} className="end-4 top-[calc(var(--m-safe-top,12px)+68px)]">
<div className="flex items-center gap-[10px] p-[10px_10px_12px]">
<span className="flex h-10 w-10 flex-none items-center justify-center overflow-hidden rounded-full bg-[image:linear-gradient(135deg,#6A6A74,#1A1A1E)] text-[0.9375rem] font-bold text-white">
{user?.avatar_url
diff --git a/client/src/mobile/screens/journey/MJourney.tsx b/client/src/mobile/screens/journey/MJourney.tsx
index d1f9bce6e..3bc2d5808 100644
--- a/client/src/mobile/screens/journey/MJourney.tsx
+++ b/client/src/mobile/screens/journey/MJourney.tsx
@@ -32,7 +32,7 @@ export default function MJourney() {
// document and Safari's address bar stays put here.
<div className="relative h-dvh">
{/* Floating header: back + create pill */}
- <div className="fixed left-4 right-4 top-[var(--m-safe-top,12px)] z-30 flex items-center gap-[10px]">
+ <div className="fixed inset-x-4 top-[var(--m-safe-top,12px)] z-30 flex items-center gap-[10px]">
<button
type="button"
onClick={() => openCreateModal()}
@@ -110,14 +110,14 @@ function HeroCard({ journey, onOpen }: { journey: JourneyListItem; onOpen: () =>
<button
type="button"
onClick={onOpen}
- className="relative mb-3 block h-[220px] w-full overflow-hidden rounded-[26px] text-left shadow-[0_24px_56px_-22px_rgba(0,0,0,.5)]"
+ className="relative mb-3 block h-[220px] w-full overflow-hidden rounded-[26px] text-start shadow-[0_24px_56px_-22px_rgba(0,0,0,.5)]"
>
{src ? (
<img src={src} alt="" className="absolute inset-0 h-full w-full object-cover" />
) : (
<div className="absolute inset-0" style={journeyCoverStyle(journey)} />
)}
- <div className="absolute right-[10px] bottom-[10px] left-[10px] rounded-[18px] border border-white/[.16] bg-[rgba(14,14,17,.52)] p-[12px_14px] text-white backdrop-blur-[22px] backdrop-saturate-[1.6]">{/* theme-lint-disable — fixed dark glass on the cover photo */}
+ <div className="absolute inset-x-[10px] bottom-[10px] rounded-[18px] border border-white/[.16] bg-[rgba(14,14,17,.52)] p-[12px_14px] text-white backdrop-blur-[22px] backdrop-saturate-[1.6]">{/* theme-lint-disable — fixed dark glass on the cover photo */}
<span className="flex gap-[6px]">
<span className="rounded-full bg-white/[.92] px-2 py-[3px] text-[0.625rem] font-bold tracking-[.07em] text-[#101013] uppercase">{/* theme-lint-disable — fixed on-photo badge */}
{t('mobileJourney.latestJourney')}
@@ -154,7 +154,7 @@ function GridCard({ journey, onOpen }: { journey: JourneyListItem; onOpen: () =>
<button
type="button"
onClick={onOpen}
- className="overflow-hidden rounded-[20px] border border-[color:var(--m-rowbr)] bg-m-sheetop text-left shadow-[0_12px_30px_-20px_rgba(0,0,0,.4)]"
+ className="overflow-hidden rounded-[20px] border border-[color:var(--m-rowbr)] bg-m-sheetop text-start shadow-[0_12px_30px_-20px_rgba(0,0,0,.4)]"
>
<div className="h-[74px]" style={journeyCoverStyle(journey)} />
<div className="px-3 pb-[13px] pt-[11px]">
diff --git a/client/src/mobile/screens/journey/MJourneyCreateSheet.tsx b/client/src/mobile/screens/journey/MJourneyCreateSheet.tsx
index 7aec524e6..f2204d113 100644
--- a/client/src/mobile/screens/journey/MJourneyCreateSheet.tsx
+++ b/client/src/mobile/screens/journey/MJourneyCreateSheet.tsx
@@ -74,7 +74,7 @@ export default function MJourneyCreateSheet({
key={trip.id}
type="button"
onClick={() => onToggleTrip(trip.id)}
- className={`mb-[9px] flex w-full items-center gap-3 rounded-2xl bg-m-sheetop p-[10px] text-left transition-[border-color,box-shadow] duration-200 ${
+ className={`mb-[9px] flex w-full items-center gap-3 rounded-2xl bg-m-sheetop p-[10px] text-start transition-[border-color,box-shadow] duration-200 ${
selected
? 'border-[1.5px] border-[color:var(--m-act)] shadow-[0_10px_26px_-16px_rgba(0,0,0,.55)]'
: 'border border-[color:var(--m-rowbr)] shadow-[0_8px_22px_-18px_rgba(0,0,0,.5)]'
@@ -123,7 +123,7 @@ export default function MJourneyCreateSheet({
<button
type="button"
onClick={onClose}
- className="ml-auto rounded-full border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-4 py-[9px] text-[0.78125rem] font-semibold"
+ className="ms-auto rounded-full border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-4 py-[9px] text-[0.78125rem] font-semibold"
>
{t('common.cancel')}
</button>
diff --git a/client/src/mobile/screens/journey/MJourneyDetail.tsx b/client/src/mobile/screens/journey/MJourneyDetail.tsx
index 326fd1a8f..43b8cc827 100644
--- a/client/src/mobile/screens/journey/MJourneyDetail.tsx
+++ b/client/src/mobile/screens/journey/MJourneyDetail.tsx
@@ -409,7 +409,7 @@ export default function MJourneyDetail() {
)}
{/* Header: back — segment — upload / overflow menu */}
- <div className="absolute left-4 right-4 top-[var(--m-safe-top,12px)] z-10 flex items-center justify-between gap-2">
+ <div className="absolute inset-x-4 top-[var(--m-safe-top,12px)] z-10 flex items-center justify-between gap-2">
<button
type="button"
onClick={() => navigate('/journey')}
@@ -440,7 +440,7 @@ export default function MJourneyDetail() {
{t('journey.share.gallery')}
</button>
</div>
- <span className="ml-auto flex flex-none items-center gap-2">
+ <span className="ms-auto flex flex-none items-center gap-2">
{/* Uploading lives on the dock's FAB while the Gallery is open — the
one big action on the screen. A second button up here would be the
same thing twice, so it only appears while an upload is running,
@@ -514,7 +514,7 @@ export default function MJourneyDetail() {
nothing between the cards and it; two pixels keeps a hair of daylight and
gives the strip the rest. */}
{view === 'timeline' && entries.length > 0 && (
- <div ref={railRef} className="absolute left-0 right-0 z-[8] bottom-[calc(var(--bottom-nav-h,84px)+2px)]">
+ <div ref={railRef} className="absolute inset-x-0 z-[8] bottom-[calc(var(--bottom-nav-h,84px)+2px)]">
<JourneyDayScrubber
days={scrubberDays}
activeDate={entries[activeIndex]?.entry_date ?? null}
diff --git a/client/src/mobile/screens/journey/MJourneyEntrySheet.tsx b/client/src/mobile/screens/journey/MJourneyEntrySheet.tsx
index 101da4edc..042885d65 100644
--- a/client/src/mobile/screens/journey/MJourneyEntrySheet.tsx
+++ b/client/src/mobile/screens/journey/MJourneyEntrySheet.tsx
@@ -420,7 +420,7 @@ export default function MJourneyEntrySheet({
{entry.id === 0 ? t('journey.detail.newEntry') : t('journey.detail.editEntry')}
</span>
{(onMoveEarlier || onMoveLater) && (
- <span className="mr-1 flex items-center gap-1">
+ <span className="me-1 flex items-center gap-1">
<MIconBtn variant="neutral" size={34} onClick={() => onMoveEarlier?.()} disabled={!onMoveEarlier} ariaLabel={t('dayplan.moveUp')}>
<ChevronUp size={15} strokeWidth={2.4} />
</MIconBtn>
@@ -646,7 +646,7 @@ export default function MJourneyEntrySheet({
<button
type="button"
onClick={() => photoOrder.makeFirst(idx)}
- className="absolute bottom-[3px] left-[3px] rounded-full bg-black/60 px-[6px] py-[1px] font-geist text-[0.5rem] font-bold text-white"
+ className="absolute bottom-[3px] start-[3px] rounded-full bg-black/60 px-[6px] py-[1px] font-geist text-[0.5rem] font-bold text-white"
>
{t('journey.editor.photoFirst')}
</button>
@@ -663,7 +663,7 @@ export default function MJourneyEntrySheet({
}
}}
aria-label={t('common.delete')}
- className="absolute right-[3px] top-[3px] flex h-5 w-5 items-center justify-center rounded-full bg-black/60 text-white"
+ className="absolute end-[3px] top-[3px] flex h-5 w-5 items-center justify-center rounded-full bg-black/60 text-white"
>
<X size={10} />
</button>
@@ -682,7 +682,7 @@ export default function MJourneyEntrySheet({
type="button"
onClick={() => setPendingFiles(prev => prev.filter((_, j) => j !== i))}
aria-label={t('common.delete')}
- className="absolute right-[3px] top-[3px] flex h-5 w-5 items-center justify-center rounded-full bg-black/60 text-white"
+ className="absolute end-[3px] top-[3px] flex h-5 w-5 items-center justify-center rounded-full bg-black/60 text-white"
>
<X size={10} />
</button>
@@ -863,7 +863,7 @@ export default function MJourneyEntrySheet({
)}
</div>
{showLocationResults && locationResults.length > 0 && (
- <div className="absolute left-0 right-0 top-full z-10 mt-1 max-h-[200px] overflow-y-auto rounded-[14px] border border-[color:var(--m-rowbr)] bg-m-sheetop shadow-[0_16px_40px_-18px_rgba(0,0,0,.5)]">
+ <div className="absolute inset-x-0 top-full z-10 mt-1 max-h-[200px] overflow-y-auto rounded-[14px] border border-[color:var(--m-rowbr)] bg-m-sheetop shadow-[0_16px_40px_-18px_rgba(0,0,0,.5)]">
{locationResults.map((r, i) => (
<button
key={i}
@@ -876,7 +876,7 @@ export default function MJourneyEntrySheet({
setShowLocationResults(false)
setLocationResults([])
}}
- className="flex w-full items-start gap-2 border-b border-[color:var(--m-rowbr)] px-3 py-[10px] text-left last:border-0"
+ className="flex w-full items-start gap-2 border-b border-[color:var(--m-rowbr)] px-3 py-[10px] text-start last:border-0"
>
<MapPin size={13} className="mt-[2px] flex-none text-m-faint" />
<span className="min-w-0">
@@ -1010,7 +1010,7 @@ export default function MJourneyEntrySheet({
<button
type="button"
onClick={onDismiss}
- className="mx-[18px] mt-1 mb-[10px] flex flex-none items-center gap-[9px] rounded-[14px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-[13px] py-[10px] text-left"
+ className="mx-[18px] mt-1 mb-[10px] flex flex-none items-center gap-[9px] rounded-[14px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-[13px] py-[10px] text-start"
>
<EyeOff size={15} strokeWidth={2} className="flex-none text-m-muted" />
<span className="min-w-0 flex-1 text-[0.8125rem] font-semibold">{t('journey.suggestions.dismiss')}</span>
@@ -1040,7 +1040,7 @@ export default function MJourneyEntrySheet({
<button
type="button"
onClick={handleClose}
- className="ml-auto rounded-full border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-4 py-[9px] text-[0.78125rem] font-semibold"
+ className="ms-auto rounded-full border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-4 py-[9px] text-[0.78125rem] font-semibold"
>
{t('common.cancel')}
</button>
diff --git a/client/src/mobile/screens/journey/MJourneySettingsSheet.tsx b/client/src/mobile/screens/journey/MJourneySettingsSheet.tsx
index 3d029ad09..89b1b3490 100644
--- a/client/src/mobile/screens/journey/MJourneySettingsSheet.tsx
+++ b/client/src/mobile/screens/journey/MJourneySettingsSheet.tsx
@@ -315,7 +315,7 @@ export default function MJourneySettingsSheet({
<button
type="button"
onClick={() => { void onRestoreSuggestions() }}
- className="mb-[6px] flex w-full items-center gap-[11px] rounded-[14px] bg-[color:var(--m-ic)] px-3 py-[10px] text-left"
+ className="mb-[6px] flex w-full items-center gap-[11px] rounded-[14px] bg-[color:var(--m-ic)] px-3 py-[10px] text-start"
>
<Undo2 size={16} strokeWidth={2} className="flex-none text-m-muted" />
<div className="min-w-0 flex-1">
@@ -478,7 +478,7 @@ export default function MJourneySettingsSheet({
<button
type="button"
onClick={onClose}
- className="ml-auto rounded-full border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-4 py-[9px] text-[0.78125rem] font-semibold"
+ className="ms-auto rounded-full border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-4 py-[9px] text-[0.78125rem] font-semibold"
>
{t('common.cancel')}
</button>
diff --git a/client/src/mobile/screens/settings/MScopeGroupPicker.tsx b/client/src/mobile/screens/settings/MScopeGroupPicker.tsx
index 315becfa6..c19a86bea 100644
--- a/client/src/mobile/screens/settings/MScopeGroupPicker.tsx
+++ b/client/src/mobile/screens/settings/MScopeGroupPicker.tsx
@@ -35,7 +35,7 @@ export default function MScopeGroupPicker({ selected, onChange }: Props) {
</button>
</div>
- <div className="max-h-[22rem] space-y-2 overflow-y-auto pr-[2px]">
+ <div className="max-h-[22rem] space-y-2 overflow-y-auto pe-[2px]">
{Object.entries(scopesByGroup).map(([group, groupScopes]) => {
const groupScopeKeys = groupScopes.map((s) => s.scope)
const allGroupSelected = groupScopeKeys.every((s) => selected.includes(s))
@@ -49,7 +49,7 @@ export default function MScopeGroupPicker({ selected, onChange }: Props) {
<button
type="button"
onClick={() => setOpen((prev) => ({ ...prev, [group]: !prev[group] }))}
- className="flex flex-1 items-center gap-1 text-left text-[0.75rem] font-bold text-m-ink"
+ className="flex flex-1 items-center gap-1 text-start text-[0.75rem] font-bold text-m-ink"
>
{isOpen ? (
<ChevronDown size={13} className="flex-none text-m-faint" />
@@ -58,7 +58,7 @@ export default function MScopeGroupPicker({ selected, onChange }: Props) {
)}
<span className="min-w-0 truncate">{group}</span>
{someGroupSelected && (
- <span className="ml-[6px] flex-none font-geist text-[0.625rem] font-normal text-m-faint">
+ <span className="ms-[6px] flex-none font-geist text-[0.625rem] font-normal text-m-faint">
({selectedInGroup}/{groupScopeKeys.length})
</span>
)}
@@ -100,7 +100,7 @@ export default function MScopeGroupPicker({ selected, onChange }: Props) {
onClick={() =>
onChange(on ? selected.filter((s) => s !== scope) : [...selected, scope])
}
- className="flex w-full items-start gap-2.5 border-t border-[color:var(--m-rowbr)] px-3 py-2 text-left"
+ className="flex w-full items-start gap-2.5 border-t border-[color:var(--m-rowbr)] px-3 py-2 text-start"
>
<div className="min-w-0 flex-1">
<p className="text-[0.75rem] font-semibold text-m-ink">{label}</p>
diff --git a/client/src/mobile/screens/settings/MSetPickerSheet.tsx b/client/src/mobile/screens/settings/MSetPickerSheet.tsx
index edbcdc674..b3d2ed3cf 100644
--- a/client/src/mobile/screens/settings/MSetPickerSheet.tsx
+++ b/client/src/mobile/screens/settings/MSetPickerSheet.tsx
@@ -35,7 +35,7 @@ export default function MSetPickerSheet({ open, onClose, title, options, value,
onSelect(opt.value)
onClose()
}}
- className={`flex w-full items-center gap-2 rounded-xl px-3 py-[11px] text-left text-[0.8125rem] ${
+ className={`flex w-full items-center gap-2 rounded-xl px-3 py-[11px] text-start text-[0.8125rem] ${
active ? 'bg-[color:var(--m-ic)] font-bold' : 'font-semibold'
} text-m-ink`}
>
diff --git a/client/src/mobile/screens/settings/MSettings.tsx b/client/src/mobile/screens/settings/MSettings.tsx
index d6f5f438d..82753884a 100644
--- a/client/src/mobile/screens/settings/MSettings.tsx
+++ b/client/src/mobile/screens/settings/MSettings.tsx
@@ -87,7 +87,7 @@ export default function MSettings() {
className="flex h-[38px] min-w-0 flex-1 items-center gap-[7px] rounded-full border border-[color:var(--m-gbr)] bg-[color:var(--m-sheet)] px-[14px] text-[0.8125rem] font-bold text-m-ink shadow-[0_5px_12px_-8px_rgba(0,0,0,.18)]"
>
<Settings2 size={14} strokeWidth={2.2} className="flex-none" />
- <span className="min-w-0 flex-1 truncate text-left">{active.label}</span>
+ <span className="min-w-0 flex-1 truncate text-start">{active.label}</span>
<ChevronDown size={13} strokeWidth={2} className="flex-none text-m-faint" />
</button>
</div>
@@ -103,7 +103,7 @@ export default function MSettings() {
setActiveTab(tab.id)
setDropOpen(false)
}}
- className={`flex w-full items-center gap-[10px] rounded-[11px] p-[10px] text-left text-[0.8125rem] font-semibold text-m-ink ${
+ className={`flex w-full items-center gap-[10px] rounded-[11px] p-[10px] text-start text-[0.8125rem] font-semibold text-m-ink ${
tab.id === active.id ? 'bg-[color:var(--m-ic)]' : ''
}`}
>
diff --git a/client/src/mobile/screens/settings/MSettingsAccount.tsx b/client/src/mobile/screens/settings/MSettingsAccount.tsx
index f95ae217b..dcc64af75 100644
--- a/client/src/mobile/screens/settings/MSettingsAccount.tsx
+++ b/client/src/mobile/screens/settings/MSettingsAccount.tsx
@@ -306,7 +306,7 @@ export default function MSettingsAccount() {
type="button"
aria-label={t('settings.uploadAvatar')}
onClick={() => avatarInputRef.current?.click()}
- className="absolute -bottom-[3px] -right-[3px] flex h-7 w-7 items-center justify-center rounded-full border-2 border-[color:var(--m-sheetop)] bg-m-act text-m-actfg"
+ className="absolute -bottom-[3px] -end-[3px] flex h-7 w-7 items-center justify-center rounded-full border-2 border-[color:var(--m-sheetop)] bg-m-act text-m-actfg"
>
<Camera size={13} />
</button>
@@ -315,7 +315,7 @@ export default function MSettingsAccount() {
type="button"
aria-label={t('settings.removeAvatar')}
onClick={handleAvatarRemove}
- className="absolute -right-[2px] -top-[2px] flex h-5 w-5 items-center justify-center rounded-full border-2 border-[color:var(--m-sheetop)] bg-[color:var(--m-st-danger)] text-m-actfg"
+ className="absolute -end-[2px] -top-[2px] flex h-5 w-5 items-center justify-center rounded-full border-2 border-[color:var(--m-sheetop)] bg-[color:var(--m-st-danger)] text-m-actfg"
>
<Trash2 size={10} />
</button>
diff --git a/client/src/mobile/screens/settings/MSettingsAppearance.tsx b/client/src/mobile/screens/settings/MSettingsAppearance.tsx
index 79eb81fed..6a7a7f689 100644
--- a/client/src/mobile/screens/settings/MSettingsAppearance.tsx
+++ b/client/src/mobile/screens/settings/MSettingsAppearance.tsx
@@ -55,7 +55,7 @@ function SliderRow({ label, sub, value, onChange }: { label: string; sub?: strin
<div className="mb-1 flex items-center justify-between gap-2">
<div className="min-w-0">
<span className="text-[0.78125rem] font-bold text-m-ink">{label}</span>
- {sub && <span className="ml-[6px] font-geist text-[0.625rem] text-m-muted">{sub}</span>}
+ {sub && <span className="ms-[6px] font-geist text-[0.625rem] text-m-muted">{sub}</span>}
</div>
<span className="font-geist text-[0.6875rem] tabular-nums text-m-muted">{Math.round(value * 100)}%</span>
</div>
@@ -177,7 +177,7 @@ export default function MSettingsAppearance() {
key={s.id}
type="button"
onClick={() => update({ schemeId: s.id })}
- className={`flex items-center gap-2 rounded-xl px-3 py-[9px] text-left text-[0.78125rem] ${
+ className={`flex items-center gap-2 rounded-xl px-3 py-[9px] text-start text-[0.78125rem] ${
active
? 'bg-m-act font-semibold text-m-actfg'
: 'border border-[color:var(--m-rowbr)] bg-[color:var(--m-sheet)] font-medium text-m-ink'
@@ -191,7 +191,7 @@ export default function MSettingsAppearance() {
<button
type="button"
onClick={() => update({ schemeId: 'custom', accent: cfg.accent ?? { light: accentLight, dark: accentDark } })}
- className={`flex items-center gap-2 rounded-xl px-3 py-[9px] text-left text-[0.78125rem] ${
+ className={`flex items-center gap-2 rounded-xl px-3 py-[9px] text-start text-[0.78125rem] ${
cfg.schemeId === 'custom'
? 'bg-m-act font-semibold text-m-actfg'
: 'border border-[color:var(--m-rowbr)] bg-[color:var(--m-sheet)] font-medium text-m-ink'
diff --git a/client/src/mobile/screens/settings/MSettingsMap.tsx b/client/src/mobile/screens/settings/MSettingsMap.tsx
index 1307e838b..fe7b5e03e 100644
--- a/client/src/mobile/screens/settings/MSettingsMap.tsx
+++ b/client/src/mobile/screens/settings/MSettingsMap.tsx
@@ -179,7 +179,7 @@ export default function MSettingsMap() {
key={p.id}
type="button"
onClick={() => changeProvider(p.id)}
- className={`flex items-center gap-[10px] rounded-xl border px-[13px] py-[10px] text-left ${
+ className={`flex items-center gap-[10px] rounded-xl border px-[13px] py-[10px] text-start ${
active
? 'border-transparent bg-m-act text-m-actfg'
: 'border-[color:var(--m-rowbr)] bg-[color:var(--m-sheet)] text-m-ink'
diff --git a/client/src/mobile/screens/settings/MSettingsMcp.tsx b/client/src/mobile/screens/settings/MSettingsMcp.tsx
index d9664069a..00942342b 100644
--- a/client/src/mobile/screens/settings/MSettingsMcp.tsx
+++ b/client/src/mobile/screens/settings/MSettingsMcp.tsx
@@ -438,11 +438,11 @@ export default function MSettingsMcp() {
<p className="truncate text-[0.8125rem] font-bold text-m-ink">{token.name}</p>
<p className="mt-[2px] font-mono text-[0.625rem] text-m-faint">
{token.token_prefix}...
- <span className="ml-2 font-geist">
+ <span className="ms-2 font-geist">
{t('settings.mcp.tokenCreatedAt')} {new Date(token.created_at).toLocaleDateString(locale)}
</span>
{token.last_used_at && (
- <span className="ml-1 font-geist">
+ <span className="ms-1 font-geist">
· {t('settings.mcp.tokenUsedAt')} {new Date(token.last_used_at).toLocaleDateString(locale)}
</span>
)}
diff --git a/client/src/mobile/screens/settings/MSettingsUi.tsx b/client/src/mobile/screens/settings/MSettingsUi.tsx
index f9aef11be..ca99604e7 100644
--- a/client/src/mobile/screens/settings/MSettingsUi.tsx
+++ b/client/src/mobile/screens/settings/MSettingsUi.tsx
@@ -51,7 +51,7 @@ export function MSetSelectRow({ label, trailing, onClick, className = '' }: MSet
<button
type="button"
onClick={onClick}
- className={`flex w-full items-center justify-between gap-2 rounded-xl border border-[color:var(--m-rowbr)] bg-[color:var(--m-sheet)] px-[13px] py-[11px] text-left text-[0.8125rem] font-semibold text-m-ink ${className}`}
+ className={`flex w-full items-center justify-between gap-2 rounded-xl border border-[color:var(--m-rowbr)] bg-[color:var(--m-sheet)] px-[13px] py-[11px] text-start text-[0.8125rem] font-semibold text-m-ink ${className}`}
>
<span className="min-w-0 flex-1 truncate">{label}</span>
{trailing}
diff --git a/client/src/mobile/screens/trip/MTripShell.tsx b/client/src/mobile/screens/trip/MTripShell.tsx
index f264c0139..82a0da8a7 100644
--- a/client/src/mobile/screens/trip/MTripShell.tsx
+++ b/client/src/mobile/screens/trip/MTripShell.tsx
@@ -497,7 +497,7 @@ export default function MTripShell({
{/* ── Day chips (z-25 — covered by non-plan tab overlays, stays mounted) ── */}
{days.length > 0 && (
- <div className="absolute left-4 right-4 z-[25] flex gap-[6px] top-[calc(var(--m-safe-top,12px)+50px)]">
+ <div className="absolute inset-x-4 z-[25] flex gap-[6px] top-[calc(var(--m-safe-top,12px)+50px)]">
<div className="flex flex-1 items-center gap-[2px] overflow-x-auto rounded-full border border-[color:var(--m-gbr)] bg-[color:var(--m-glass)] p-[3px] backdrop-blur-[24px] backdrop-saturate-[1.7]">
{days.map((day, idx) => {
const active = day.id === planner.selectedDayId
@@ -571,7 +571,7 @@ export default function MTripShell({
)}
{/* ── Top controls (z-42 — above every layer incl. tab overlays) ── */}
- <div className="absolute left-4 right-4 z-[42] flex h-10 items-center justify-between top-[var(--m-safe-top,12px)]">
+ <div className="absolute inset-x-4 z-[42] flex h-10 items-center justify-between top-[var(--m-safe-top,12px)]">
<MIconBtn ariaLabel={t('common.back')} onClick={() => navigate('/dashboard')} className="backdrop-blur-[24px] backdrop-saturate-[1.7]">
<ChevronLeft size={19} strokeWidth={2.2} />
</MIconBtn>
@@ -598,7 +598,7 @@ export default function MTripShell({
)}
{trTab === 'transports' && (
- <div className="absolute left-[52px] right-2 top-1/2 flex -translate-y-1/2 items-center justify-center gap-[7px]">
+ <div className="absolute start-[52px] end-2 top-1/2 flex -translate-y-1/2 items-center justify-center gap-[7px]">
<PrimaryPill
label={t('transport.addTransport')}
onClick={() => {
@@ -623,7 +623,7 @@ export default function MTripShell({
)}
{trTab === 'buchungen' && (
- <div className="absolute left-[52px] right-2 top-1/2 flex -translate-y-1/2 items-center justify-center gap-[7px]">
+ <div className="absolute start-[52px] end-2 top-1/2 flex -translate-y-1/2 items-center justify-center gap-[7px]">
<PrimaryPill
label={t('mobileTrip.newReservation')}
onClick={() => { planner.setEditingReservation(null); planner.setShowReservationModal(true) }}
@@ -707,7 +707,7 @@ export default function MTripShell({
type="button"
onClick={() => openSheet('rtinfo')}
aria-label={rtHeaderLabel || undefined}
- className="absolute left-[52px] right-[52px] top-1/2 mx-auto flex h-[34px] w-fit max-w-full -translate-y-1/2 items-center gap-[5px] rounded-full border border-[color:var(--m-gbr)] bg-[color:var(--m-glass)] px-[10px] backdrop-blur-[24px] backdrop-saturate-[1.7]"
+ className="absolute inset-x-[52px] top-1/2 mx-auto flex h-[34px] w-fit max-w-full -translate-y-1/2 items-center gap-[5px] rounded-full border border-[color:var(--m-gbr)] bg-[color:var(--m-glass)] px-[10px] backdrop-blur-[24px] backdrop-saturate-[1.7]"
>
<Route size={14} strokeWidth={2} className="flex-none text-m-muted" aria-hidden="true" />
{rtHeaderLabel ? (
@@ -742,7 +742,7 @@ export default function MTripShell({
if (!tab) return null
const Icon = tab.icon
return (
- <div className="pointer-events-none absolute left-[52px] right-[52px] top-1/2 flex -translate-y-1/2 items-center justify-center gap-[7px]">
+ <div className="pointer-events-none absolute inset-x-[52px] top-1/2 flex -translate-y-1/2 items-center justify-center gap-[7px]">
<div className="flex min-w-0 items-center gap-[7px] rounded-full border border-[color:var(--m-gbr)] bg-[color:var(--m-glass)] px-[13px] py-[7px] backdrop-blur-[24px] backdrop-saturate-[1.7]">
{Icon && <Icon size={14} strokeWidth={2} className="flex-none text-m-muted" />}
<span className="truncate text-[0.8125rem] font-semibold text-m-ink">{tab.label}</span>
@@ -768,7 +768,7 @@ export default function MTripShell({
</div>
{/* ── Bottom dock (replaces the global bottom nav on this screen) ── */}
- <nav className="absolute left-4 right-4 z-40 flex h-[62px] items-center justify-around rounded-[31px] border border-[color:var(--m-gbr)] bg-[color:var(--m-glass)] px-[14px] shadow-[0_16px_44px_-14px_rgba(0,0,0,.35)] backdrop-blur-[30px] backdrop-saturate-[1.8] bottom-[calc(env(safe-area-inset-bottom,0px)+12px)]">
+ <nav className="absolute inset-x-4 z-40 flex h-[62px] items-center justify-around rounded-[31px] border border-[color:var(--m-gbr)] bg-[color:var(--m-glass)] px-[14px] shadow-[0_16px_44px_-14px_rgba(0,0,0,.35)] backdrop-blur-[30px] backdrop-saturate-[1.8] bottom-[calc(env(safe-area-inset-bottom,0px)+12px)]">
{dockTabs.map(({ id, icon: Icon }) => {
const active = trTab === id
return (
diff --git a/client/src/mobile/screens/trip/map/MMapArea.tsx b/client/src/mobile/screens/trip/map/MMapArea.tsx
index 22004de6d..324bbcc6f 100644
--- a/client/src/mobile/screens/trip/map/MMapArea.tsx
+++ b/client/src/mobile/screens/trip/map/MMapArea.tsx
@@ -347,7 +347,7 @@ export default function MMapArea({ planner, shell }: MMapAreaProps) {
<span
ref={insetProbe}
aria-hidden="true"
- className="pointer-events-none invisible absolute left-0 top-0 pb-[env(safe-area-inset-bottom,0px)] pt-[env(safe-area-inset-top,0px)]"
+ className="pointer-events-none invisible absolute start-0 top-0 pb-[env(safe-area-inset-bottom,0px)] pt-[env(safe-area-inset-top,0px)]"
/>
<MapViewAuto
tripId={planner.tripId}
@@ -424,7 +424,7 @@ export default function MMapArea({ planner, shell }: MMapAreaProps) {
takes the full width between the screen margins, so its segments are
the same size as everything else the thumb aims at on this screen. */}
{mapActive && !onStage && poiPillEnabled && (
- <div className="pointer-events-none absolute left-4 right-4 z-[25] flex flex-col items-center gap-2 top-[calc(var(--m-safe-top,12px)+96px)]">
+ <div className="pointer-events-none absolute inset-x-4 z-[25] flex flex-col items-center gap-2 top-[calc(var(--m-safe-top,12px)+96px)]">
<PoiCategoryPill
fullWidth
categories={poi.categories}
@@ -458,7 +458,7 @@ export default function MMapArea({ planner, shell }: MMapAreaProps) {
right above its own toggle: it decides which pins the plan map shows, so it is
there whatever else is; the stage draws its own pins and has no use for it. */}
{mapActive && !onStage && (
- <div className="pointer-events-none absolute left-3 right-3 z-[25] flex flex-col items-end gap-2 bottom-[calc(var(--bottom-nav-h,84px)+58px)]">
+ <div className="pointer-events-none absolute inset-x-3 z-[25] flex flex-col items-end gap-2 bottom-[calc(var(--bottom-nav-h,84px)+58px)]">
{!planner.roadtripActive && planner.overviewActive && (
<TripRouteOverviewPanel
overview={planner.tripOverview}
diff --git a/client/src/mobile/screens/trip/places/MPlacesBrowser.tsx b/client/src/mobile/screens/trip/places/MPlacesBrowser.tsx
index 3856794a4..032b366de 100644
--- a/client/src/mobile/screens/trip/places/MPlacesBrowser.tsx
+++ b/client/src/mobile/screens/trip/places/MPlacesBrowser.tsx
@@ -233,7 +233,7 @@ export default function MPlacesBrowser({ planner, shell }: MPlacesBrowserProps)
>
<SlidersHorizontal size={15} strokeWidth={2} />
{panelFilterCount > 0 && (
- <span className="absolute -right-[3px] -top-[3px] box-border flex h-4 min-w-[16px] items-center justify-center rounded-full bg-m-act px-1 font-geist text-[0.5625rem] font-bold text-m-actfg">
+ <span className="absolute -end-[3px] -top-[3px] box-border flex h-4 min-w-[16px] items-center justify-center rounded-full bg-m-act px-1 font-geist text-[0.5625rem] font-bold text-m-actfg">
{panelFilterCount}
</span>
)}
@@ -285,11 +285,11 @@ export default function MPlacesBrowser({ planner, shell }: MPlacesBrowserProps)
{/* ── Selection toolbar ── */}
{selectMode && (
- <div className="mt-2 flex items-center gap-2 rounded-full border border-[color:var(--m-gbr)] bg-[color:var(--m-glass)] py-[6px] pl-[14px] pr-[6px] backdrop-blur-[20px]">
+ <div className="mt-2 flex items-center gap-2 rounded-full border border-[color:var(--m-gbr)] bg-[color:var(--m-glass)] py-[6px] ps-[14px] pe-[6px] backdrop-blur-[20px]">
<span className="font-geist text-[0.6875rem] font-bold text-m-muted">
{t('places.selectionCount', { count: selectedIds.size })}
</span>
- <div className="ml-auto flex gap-[5px]">
+ <div className="ms-auto flex gap-[5px]">
<BulkBtn label={allSelected ? t('common.deselectAll') : t('common.selectAll')} onClick={toggleAllVisible}>
<CheckCheck size={14} strokeWidth={2} />
</BulkBtn>
@@ -357,7 +357,7 @@ export default function MPlacesBrowser({ planner, shell }: MPlacesBrowserProps)
const sub = place.address || place.description
return (
<div key={place.id} className="flex items-center gap-[11px] border-b border-[color:var(--m-rowbr)] px-[2px] py-[9px]">
- <button type="button" onClick={() => openRow(place)} className="flex min-w-0 flex-1 items-center gap-[11px] text-left">
+ <button type="button" onClick={() => openRow(place)} className="flex min-w-0 flex-1 items-center gap-[11px] text-start">
{selectMode && !planner.isTourPlace(place.id) && <SquareCheck big checked={selectedIds.has(place.id)} />}
<PlaceAvatar place={place} category={cat} size={40} />
<div className="min-w-0 flex-1">
diff --git a/client/src/mobile/screens/trip/places/MPlacesBulkCategorySheet.tsx b/client/src/mobile/screens/trip/places/MPlacesBulkCategorySheet.tsx
index 0c7cc5985..c039af7e9 100644
--- a/client/src/mobile/screens/trip/places/MPlacesBulkCategorySheet.tsx
+++ b/client/src/mobile/screens/trip/places/MPlacesBulkCategorySheet.tsx
@@ -39,7 +39,7 @@ export default function MPlacesBulkCategorySheet({ open, count, categories, onPi
key={c.id}
type="button"
onClick={() => onPick(c.id)}
- className="flex w-full items-center gap-3 rounded-xl px-2 py-[11px] text-left text-[0.84375rem] font-medium text-m-ink"
+ className="flex w-full items-center gap-3 rounded-xl px-2 py-[11px] text-start text-[0.84375rem] font-medium text-m-ink"
>
<CatIcon size={16} strokeWidth={2} className="flex-none" style={{ color: c.color || 'var(--m-muted)' }} />
<span className="min-w-0 flex-1 truncate">{c.name}</span>
@@ -49,7 +49,7 @@ export default function MPlacesBulkCategorySheet({ open, count, categories, onPi
<button
type="button"
onClick={() => onPick(null)}
- className={`flex w-full items-center gap-3 px-2 py-[11px] text-left text-[0.84375rem] font-medium text-m-muted ${
+ className={`flex w-full items-center gap-3 px-2 py-[11px] text-start text-[0.84375rem] font-medium text-m-muted ${
categories.length > 0 ? 'border-t border-[color:var(--m-rowbr)]' : ''
}`}
>
diff --git a/client/src/mobile/screens/trip/places/MPlacesFilterControls.tsx b/client/src/mobile/screens/trip/places/MPlacesFilterControls.tsx
index 320e4dc78..3c50b3750 100644
--- a/client/src/mobile/screens/trip/places/MPlacesFilterControls.tsx
+++ b/client/src/mobile/screens/trip/places/MPlacesFilterControls.tsx
@@ -38,7 +38,7 @@ function CategoryFilterRow({ checked, onToggle, label, children }: {
onClick={onToggle}
role="checkbox"
aria-checked={checked}
- className="flex min-h-[44px] w-full items-center gap-[10px] border-b border-[color:var(--m-rowbr)] px-[13px] py-[10px] text-left last:border-b-0"
+ className="flex min-h-[44px] w-full items-center gap-[10px] border-b border-[color:var(--m-rowbr)] px-[13px] py-[10px] text-start last:border-b-0"
>
<SquareCheck checked={checked} />
{children}
diff --git a/client/src/mobile/screens/trip/places/MPlacesSaveToCollectionSheet.tsx b/client/src/mobile/screens/trip/places/MPlacesSaveToCollectionSheet.tsx
index c69addedd..d39196eb8 100644
--- a/client/src/mobile/screens/trip/places/MPlacesSaveToCollectionSheet.tsx
+++ b/client/src/mobile/screens/trip/places/MPlacesSaveToCollectionSheet.tsx
@@ -99,7 +99,7 @@ export default function MPlacesSaveToCollectionSheet({ open, tripId, placeIds, o
type="button"
onClick={() => pick(list)}
disabled={busyId != null}
- className="mt-2 flex w-full items-center gap-[11px] rounded-[14px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-3 py-[10px] text-left disabled:opacity-60"
+ className="mt-2 flex w-full items-center gap-[11px] rounded-[14px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-3 py-[10px] text-start disabled:opacity-60"
>
<span
className="flex h-9 w-9 flex-none items-center justify-center rounded-xl text-white"
diff --git a/client/src/mobile/screens/trip/plan/MPlanTimeline.tsx b/client/src/mobile/screens/trip/plan/MPlanTimeline.tsx
index f4731ee19..a587f982e 100644
--- a/client/src/mobile/screens/trip/plan/MPlanTimeline.tsx
+++ b/client/src/mobile/screens/trip/plan/MPlanTimeline.tsx
@@ -160,7 +160,7 @@ export default function MPlanTimeline({ planner, shell }: MPlanTimelineProps) {
<div
ref={cardRef}
data-touch-drag={editing ? '' : undefined}
- className="absolute left-4 right-4 overflow-x-hidden overflow-y-auto overscroll-contain rounded-[22px] border border-[color:var(--m-cbr)] bg-[color:var(--m-card)] px-3.5 pb-2 pt-1 backdrop-blur-[24px] backdrop-saturate-[1.6] bottom-[calc(env(safe-area-inset-bottom,0px)+90px)]"
+ className="absolute inset-x-4 overflow-x-hidden overflow-y-auto overscroll-contain rounded-[22px] border border-[color:var(--m-cbr)] bg-[color:var(--m-card)] px-3.5 pb-2 pt-1 backdrop-blur-[24px] backdrop-saturate-[1.6] bottom-[calc(env(safe-area-inset-bottom,0px)+90px)]"
style={{ top: `calc(var(--m-safe-top, 12px) + ${editing ? 140 : tl.upNext ? 216 : 102}px)` }}
>
{planner.toursEnabled && tl.rows.some(row => row.kind === 'place' && row.invalidTour) && (
@@ -312,7 +312,7 @@ function UpNextCard({ tl, t, onOpen }: {
<button
type="button"
onClick={() => onOpen(upNext.assignment)}
- className="absolute left-4 right-4 cursor-pointer rounded-[22px] border border-[color:var(--m-inbr)] bg-[color:var(--m-inner)] px-4 py-3.5 text-left shadow-[0_18px_44px_-18px_rgba(0,0,0,.3)] backdrop-blur-[28px] backdrop-saturate-[1.8] top-[calc(var(--m-safe-top,12px)+102px)]"
+ className="absolute inset-x-4 cursor-pointer rounded-[22px] border border-[color:var(--m-inbr)] bg-[color:var(--m-inner)] px-4 py-3.5 text-start shadow-[0_18px_44px_-18px_rgba(0,0,0,.3)] backdrop-blur-[28px] backdrop-saturate-[1.8] top-[calc(var(--m-safe-top,12px)+102px)]"
>
<div className="flex items-center justify-between">
<span className="whitespace-nowrap font-geist text-[0.65625rem] font-bold uppercase tracking-[.08em] text-m-muted">
@@ -336,7 +336,7 @@ function UpNextCard({ tl, t, onOpen }: {
</div>
{sub && <MarkdownText clamp className="mt-[2px] font-geist text-[0.75rem] text-m-muted">{sub}</MarkdownText>}
</div>
- <span className="ml-2 flex h-8 w-8 flex-none items-center justify-center rounded-full bg-m-act text-m-actfg">
+ <span className="ms-2 flex h-8 w-8 flex-none items-center justify-center rounded-full bg-m-act text-m-actfg">
<ChevronRight size={16} strokeWidth={2.4} />
</span>
</div>
@@ -361,7 +361,7 @@ function EditHeader({ tl, planner, shell }: {
}
return (
- <div className="absolute left-4 right-4 flex items-center gap-2 top-[calc(var(--m-safe-top,12px)+102px)]">
+ <div className="absolute inset-x-4 flex items-center gap-2 top-[calc(var(--m-safe-top,12px)+102px)]">
{renaming ? (
<input
autoFocus
@@ -410,7 +410,7 @@ function EditHeader({ tl, planner, shell }: {
onClick={() => void handleUndo()}
disabled={!canUndo}
title={lastActionLabel ? t('undo.tooltip', { action: lastActionLabel }) : undefined}
- className={`ml-auto flex flex-none items-center gap-[5px] px-3 py-1.5 text-[0.75rem] font-semibold disabled:opacity-40 ${GLASS_PILL}`}
+ className={`ms-auto flex flex-none items-center gap-[5px] px-3 py-1.5 text-[0.75rem] font-semibold disabled:opacity-40 ${GLASS_PILL}`}
>
<Undo2 size={14} strokeWidth={2} />
{t('undo.button')}
@@ -476,7 +476,7 @@ function TimelineHeader({ tl, dayLabel, openLabel, weatherLabel, onOpenDay, onOp
onClick={onOpenDay}
aria-label={weatherLabel || openLabel}
title={tl.weatherPlaceName || undefined}
- className="ml-auto flex flex-none items-center gap-1 whitespace-nowrap px-1.5 py-1 text-[0.71875rem] font-semibold"
+ className="ms-auto flex flex-none items-center gap-1 whitespace-nowrap px-1.5 py-1 text-[0.71875rem] font-semibold"
>
<WeatherIcon size={13} strokeWidth={2} />
{tl.weatherTemp}°
diff --git a/client/src/mobile/screens/trip/plan/MPlanTimelineRows.tsx b/client/src/mobile/screens/trip/plan/MPlanTimelineRows.tsx
index 140a02390..77804fb12 100644
--- a/client/src/mobile/screens/trip/plan/MPlanTimelineRows.tsx
+++ b/client/src/mobile/screens/trip/plan/MPlanTimelineRows.tsx
@@ -334,7 +334,7 @@ function TransitLegRows({ legs, t }: { legs: TransitLegDisplay[]; t: Translation
const hasSeg = i < legs.length - 1
return (
<div key={i} className="flex gap-[9px]">
- <span className="w-9 flex-none pt-[9px] text-right font-geist text-[0.65625rem] font-semibold tabular-nums text-m-muted">
+ <span className="w-9 flex-none pt-[9px] text-end font-geist text-[0.65625rem] font-semibold tabular-nums text-m-muted">
{isWalk ? '' : leg.from?.time?.slice(0, 5) || ''}
</span>
<div className="flex w-3 flex-none flex-col items-center">
@@ -356,7 +356,7 @@ function TransitLegRows({ legs, t }: { legs: TransitLegDisplay[]; t: Translation
<div className="min-w-0 flex-1 py-[7px]">
{isWalk ? (
<div className="truncate font-geist text-[0.6875rem] font-semibold text-m-muted">
- <Footprints size={10} strokeWidth={2.2} className="mr-1 inline-block align-[-1px]" />
+ <Footprints size={10} strokeWidth={2.2} className="me-1 inline-block align-[-1px]" />
{[mins ? t('transit.min', { count: mins }) : '', t('transit.walkTo', { name: leg.to?.name || '' })]
.filter(Boolean).join(' · ')}
</div>
@@ -424,12 +424,12 @@ export function TransitRow({ res, transit, dayId, open, chrome, reorder, drag, o
{to ? `${from} → ${to}` : res.title}
</span>
{start && (
- <span className="ml-auto flex-none whitespace-nowrap rounded-[6px] bg-[color:var(--m-ic)] px-[6px] py-px font-geist text-[0.6875rem] font-semibold tabular-nums">
- <Clock size={10} strokeWidth={2.2} className="mr-[3px] inline-block align-[-1px]" />
+ <span className="ms-auto flex-none whitespace-nowrap rounded-[6px] bg-[color:var(--m-ic)] px-[6px] py-px font-geist text-[0.6875rem] font-semibold tabular-nums">
+ <Clock size={10} strokeWidth={2.2} className="me-[3px] inline-block align-[-1px]" />
{fmtTime(start, chrome)}{end ? ` – ${fmtTime(end, chrome)}` : ''}
</span>
)}
- <Chevron size={15} strokeWidth={2} className={`flex-none text-m-faint ${start ? '' : 'ml-auto'}`} />
+ <Chevron size={15} strokeWidth={2} className={`flex-none text-m-faint ${start ? '' : 'ms-auto'}`} />
</div>
<TransitStrip legs={transit.legs} />
</div>
diff --git a/client/src/mobile/screens/trip/roadtrip/MRoadtripTab.tsx b/client/src/mobile/screens/trip/roadtrip/MRoadtripTab.tsx
index 10c0322f6..0c3a33e3b 100644
--- a/client/src/mobile/screens/trip/roadtrip/MRoadtripTab.tsx
+++ b/client/src/mobile/screens/trip/roadtrip/MRoadtripTab.tsx
@@ -138,7 +138,7 @@ export default function MRoadtripTab({ planner, shell }: MTripTabPanelProps) {
// fall back to the trip's first routed day, which is not the one on screen, and every
// distance it answered with would be measured against a road nobody is looking at.
const searchBar = stage && (
- <div className="pointer-events-auto absolute left-4 right-4 top-[calc(var(--m-safe-top,12px)+96px)] z-[26]">
+ <div className="pointer-events-auto absolute inset-x-4 top-[calc(var(--m-safe-top,12px)+96px)] z-[26]">
<MRtCorridorBar planner={planner} corridor={corridor} onOpen={() => shell.openSheet('rtsearch')} />
</div>
)
@@ -165,7 +165,7 @@ export default function MRoadtripTab({ planner, shell }: MTripTabPanelProps) {
Mounted only while the picker is open, so nothing invisible lies over the map's
own buttons the rest of the time. */}
{alts.open && (
- <div className="pointer-events-auto absolute left-4 right-4 bottom-[calc(var(--bottom-nav-h,84px)+4px)]">
+ <div className="pointer-events-auto absolute inset-x-4 bottom-[calc(var(--bottom-nav-h,84px)+4px)]">
<MRtAlternativesBar planner={planner} alts={alts} />
</div>
)}
@@ -243,7 +243,7 @@ export default function MRoadtripTab({ planner, shell }: MTripTabPanelProps) {
{rt.clocks.start ? formatClockTime(rt.clocks.start, is12h) : '-'}
</span>
</span>
- <span className="min-w-0 text-right">
+ <span className="min-w-0 text-end">
<span className="block font-geist text-[0.5625rem] font-bold uppercase tracking-[.08em] text-m-faint">
{t('roadtrip.stay.arrive')}
</span>
@@ -386,7 +386,7 @@ function UpNext({ planner, shell, rt, stageDayId, onOpen }: {
return (
<section className="mt-2.5 rounded-[22px] border border-[color:var(--m-inbr)] bg-[color:var(--m-inner)] px-4 py-3.5 shadow-[0_18px_44px_-18px_rgba(0,0,0,.3)]">
- <button type="button" onClick={() => onOpen(next.row)} className="w-full text-left">
+ <button type="button" onClick={() => onOpen(next.row)} className="w-full text-start">
<span className="flex items-center justify-between gap-2">
<span className="font-geist text-[0.65625rem] font-bold uppercase tracking-[.08em] text-m-muted">
{t('mobileTrip.upNext')}
diff --git a/client/src/mobile/screens/trip/roadtrip/MRtCorridorBar.tsx b/client/src/mobile/screens/trip/roadtrip/MRtCorridorBar.tsx
index 30dd8a307..2971f0b32 100644
--- a/client/src/mobile/screens/trip/roadtrip/MRtCorridorBar.tsx
+++ b/client/src/mobile/screens/trip/roadtrip/MRtCorridorBar.tsx
@@ -64,7 +64,7 @@ export default function MRtCorridorBar({ planner, corridor, onOpen }: MRtCorrido
<button
type="button"
onClick={onOpen}
- className="flex h-11 min-w-0 flex-1 items-center gap-2.5 rounded-full border border-[color:var(--m-gbr)] bg-[color:var(--m-glass)] px-3.5 text-left shadow-[0_16px_44px_-16px_rgba(0,0,0,.35)] backdrop-blur-[24px] backdrop-saturate-[1.7]"
+ className="flex h-11 min-w-0 flex-1 items-center gap-2.5 rounded-full border border-[color:var(--m-gbr)] bg-[color:var(--m-glass)] px-3.5 text-start shadow-[0_16px_44px_-16px_rgba(0,0,0,.35)] backdrop-blur-[24px] backdrop-saturate-[1.7]"
>
<span className="flex-none text-m-ink">{icon}</span>
<span className="min-w-0 flex-1 truncate text-[0.8125rem] font-semibold text-m-ink">{title}</span>
diff --git a/client/src/mobile/screens/trip/roadtrip/MRtCorridorSheet.tsx b/client/src/mobile/screens/trip/roadtrip/MRtCorridorSheet.tsx
index d2e510293..cfd0de63f 100644
--- a/client/src/mobile/screens/trip/roadtrip/MRtCorridorSheet.tsx
+++ b/client/src/mobile/screens/trip/roadtrip/MRtCorridorSheet.tsx
@@ -244,7 +244,7 @@ function HitRow({ poi, unit, t, first, onShow, onAdd }: {
const color = serviceColor(poi.category)
return (
<li className={`flex items-center gap-2.5 px-3 py-2 ${first ? '' : 'border-t border-[color:var(--m-rowbr)]'}`}>
- <button type="button" onClick={onShow} className="flex min-w-0 flex-1 items-center gap-2.5 py-1 text-left">
+ <button type="button" onClick={onShow} className="flex min-w-0 flex-1 items-center gap-2.5 py-1 text-start">
<span
className="grid h-[30px] w-[30px] flex-none place-items-center rounded-[10px]"
// theme-lint-disable: the road-signage palette from `roadtripModel`, the same
diff --git a/client/src/mobile/screens/trip/roadtrip/MRtDraftSheet.tsx b/client/src/mobile/screens/trip/roadtrip/MRtDraftSheet.tsx
index 2aad66a9b..adfc1355a 100644
--- a/client/src/mobile/screens/trip/roadtrip/MRtDraftSheet.tsx
+++ b/client/src/mobile/screens/trip/roadtrip/MRtDraftSheet.tsx
@@ -170,7 +170,7 @@ export default function MRtDraftSheet({ planner }: MRtDraftSheetProps) {
type="button"
onClick={() => { void submit() }}
disabled={saving}
- className="ml-auto flex h-11 items-center rounded-full bg-m-act px-[22px] text-[0.8125rem] font-semibold text-m-actfg disabled:opacity-40"
+ className="ms-auto flex h-11 items-center rounded-full bg-m-act px-[22px] text-[0.8125rem] font-semibold text-m-actfg disabled:opacity-40"
>
{t(draft.editing ? 'common.save' : 'roadtrip.poi.add')}
</button>
diff --git a/client/src/mobile/screens/trip/roadtrip/MRtStaySheet.tsx b/client/src/mobile/screens/trip/roadtrip/MRtStaySheet.tsx
index 98f06c4a9..27915e81e 100644
--- a/client/src/mobile/screens/trip/roadtrip/MRtStaySheet.tsx
+++ b/client/src/mobile/screens/trip/roadtrip/MRtStaySheet.tsx
@@ -304,7 +304,7 @@ export default function MRtStaySheet({ planner, shell }: MTripSheetsProps) {
type="button"
onClick={() => { void save() }}
disabled={!canEdit || saving}
- className="ml-auto inline-flex h-11 items-center rounded-full bg-m-act px-[18px] text-[0.8125rem] font-semibold text-m-actfg disabled:opacity-40"
+ className="ms-auto inline-flex h-11 items-center rounded-full bg-m-act px-[18px] text-[0.8125rem] font-semibold text-m-actfg disabled:opacity-40"
>
{t('common.save')}
</button>
@@ -376,7 +376,7 @@ function RtLeaveTime({ name, leave, arrival, departure, onClose }: {
type="button"
onClick={() => { void leave.remove?.() }}
disabled={leave.removing}
- className="ml-auto inline-flex h-11 items-center rounded-full bg-m-act px-[18px] text-[0.8125rem] font-semibold text-m-actfg disabled:opacity-40"
+ className="ms-auto inline-flex h-11 items-center rounded-full bg-m-act px-[18px] text-[0.8125rem] font-semibold text-m-actfg disabled:opacity-40"
>
{t('roadtrip.stay.clearLeave')}
</button>
diff --git a/client/src/mobile/screens/trip/roadtrip/MRtStopSheet.tsx b/client/src/mobile/screens/trip/roadtrip/MRtStopSheet.tsx
index 17d555f7a..1758f5295 100644
--- a/client/src/mobile/screens/trip/roadtrip/MRtStopSheet.tsx
+++ b/client/src/mobile/screens/trip/roadtrip/MRtStopSheet.tsx
@@ -127,7 +127,7 @@ function ActionTile({ icon, label, value, onClick, tileRef }: {
</span>
</>
)
- const box = 'flex h-14 min-w-0 items-center gap-2.5 rounded-[14px] bg-[color:var(--m-ic)] px-3 text-left'
+ const box = 'flex h-14 min-w-0 items-center gap-2.5 rounded-[14px] bg-[color:var(--m-ic)] px-3 text-start'
if (!onClick) return <div className={box}>{inner}</div>
return <button ref={tileRef} type="button" onClick={onClick} className={`${box} border-0`}>{inner}</button>
}
diff --git a/client/src/mobile/screens/trip/sheets/ImpFileStep.tsx b/client/src/mobile/screens/trip/sheets/ImpFileStep.tsx
index 4bb19b7f6..f6b430ddf 100644
--- a/client/src/mobile/screens/trip/sheets/ImpFileStep.tsx
+++ b/client/src/mobile/screens/trip/sheets/ImpFileStep.tsx
@@ -277,7 +277,7 @@ function ImpTypeToggles({ title, options, onToggle, noneSelected, noneSelectedLa
type="button"
onClick={() => onToggle(opt.key)}
aria-pressed={opt.on}
- className="flex w-full items-center gap-2 py-[5px] text-left"
+ className="flex w-full items-center gap-2 py-[5px] text-start"
>
<span
className={`flex h-4 w-4 flex-none items-center justify-center rounded-[4px] ${
diff --git a/client/src/mobile/screens/trip/sheets/MAccommodationSheet.tsx b/client/src/mobile/screens/trip/sheets/MAccommodationSheet.tsx
index 388e8098d..d33dca706 100644
--- a/client/src/mobile/screens/trip/sheets/MAccommodationSheet.tsx
+++ b/client/src/mobile/screens/trip/sheets/MAccommodationSheet.tsx
@@ -245,7 +245,7 @@ export default function MAccommodationSheet({ planner, shell }: MTripSheetsProps
key={p.id}
type="button"
onClick={() => setForm(f => ({ ...f, place_id: p.id }))}
- className={`flex items-center gap-[10px] rounded-[14px] border px-3 py-[9px] text-left ${
+ className={`flex items-center gap-[10px] rounded-[14px] border px-3 py-[9px] text-start ${
sel ? 'border-[color:var(--m-act)] bg-[color:var(--m-inner)]' : 'border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)]'
}`}
>
diff --git a/client/src/mobile/screens/trip/sheets/MBrowseActionsSheet.tsx b/client/src/mobile/screens/trip/sheets/MBrowseActionsSheet.tsx
index 18d5fae13..86d11974d 100644
--- a/client/src/mobile/screens/trip/sheets/MBrowseActionsSheet.tsx
+++ b/client/src/mobile/screens/trip/sheets/MBrowseActionsSheet.tsx
@@ -79,7 +79,7 @@ export default function MBrowseActionsSheet({ planner, shell }: MTripSheetsProps
planner.handleDeletePlace(place.id)
}
- const rowCls = 'flex w-full items-center gap-3 px-2 py-[11px] text-left text-[0.84375rem] font-medium'
+ const rowCls = 'flex w-full items-center gap-3 px-2 py-[11px] text-start text-[0.84375rem] font-medium'
return (
<MSheet open={open && !!livePlace} onClose={shell.closeSheet} variant="card" material="glass" ariaLabel={place.name}>
@@ -126,7 +126,7 @@ export default function MBrowseActionsSheet({ planner, shell }: MTripSheetsProps
type="button"
disabled={tourAlreadyAssignedToDay(d.id) || (isTourPlace(place.id) && pendingTourDayIds.current.has(`${place.id}:${d.id}`))}
onClick={() => { void assignToDay(d.id) }}
- className={`flex w-full items-center gap-2 px-3 py-[10px] text-left disabled:cursor-default disabled:opacity-40 ${i > 0 ? 'border-t border-[color:var(--m-rowbr)]' : ''}`}
+ className={`flex w-full items-center gap-2 px-3 py-[10px] text-start disabled:cursor-default disabled:opacity-40 ${i > 0 ? 'border-t border-[color:var(--m-rowbr)]' : ''}`}
>
<span className="min-w-0 flex-1 truncate text-[0.78125rem] font-semibold">
{/* A day_number of 0 is as unusable as a missing one — both take the row position. */}
diff --git a/client/src/mobile/screens/trip/sheets/MCostSheet.tsx b/client/src/mobile/screens/trip/sheets/MCostSheet.tsx
index b3e22bbd6..1ccfb1896 100644
--- a/client/src/mobile/screens/trip/sheets/MCostSheet.tsx
+++ b/client/src/mobile/screens/trip/sheets/MCostSheet.tsx
@@ -428,7 +428,7 @@ export default function MCostSheet({ tripId, base, people, me, editing, prefill,
type="button"
aria-expanded={catOpen}
onClick={() => setCatOpen(v => !v)}
- className="flex w-full items-center gap-[10px] overflow-hidden rounded-xl border border-[color:var(--m-rowbr)] bg-m-card px-[13px] py-[11px] text-left"
+ className="flex w-full items-center gap-[10px] overflow-hidden rounded-xl border border-[color:var(--m-rowbr)] bg-m-card px-[13px] py-[11px] text-start"
>
{(() => {
const meta = catMeta(cat)
@@ -449,7 +449,7 @@ export default function MCostSheet({ tripId, base, people, me, editing, prefill,
type="button"
aria-pressed={on}
onClick={() => { setCat(c.key); setCatOpen(false) }}
- className="flex w-full items-center gap-[10px] border-b border-[color:var(--m-rowbr)] px-[13px] py-[11px] text-left last:border-b-0"
+ className="flex w-full items-center gap-[10px] border-b border-[color:var(--m-rowbr)] px-[13px] py-[11px] text-start last:border-b-0"
>
<Icon size={14} strokeWidth={2} style={{ color: c.color }} className="flex-none" />
<span className={`flex-1 text-[0.78125rem] ${on ? 'font-bold text-m-ink' : 'font-medium text-m-muted'}`}>{t(c.labelKey)}</span>
@@ -492,7 +492,7 @@ export default function MCostSheet({ tripId, base, people, me, editing, prefill,
<button
type="button"
onClick={() => togglePayer(p.id)}
- className="flex min-w-0 flex-1 items-center gap-[8px] text-left"
+ className="flex min-w-0 flex-1 items-center gap-[8px] text-start"
>
<Avatar p={p} idx={idx} dim={!on} />
<span className="truncate text-[0.8125rem] font-medium text-m-ink">{nameOf(p)}</span>
@@ -506,7 +506,7 @@ export default function MCostSheet({ tripId, base, people, me, editing, prefill,
placeholder={localizeAmountInput('0.00', currency)}
value={localizeAmountInput(payerAmounts[p.id] || '', currency)}
onValueChange={v => onPayerAmountChange(p.id, v)}
- className="w-full border-0 bg-transparent py-[7px] text-right text-[0.8125rem] font-semibold text-m-ink outline-none"
+ className="w-full border-0 bg-transparent py-[7px] text-end text-[0.8125rem] font-semibold text-m-ink outline-none"
/>
</div>
) : (
@@ -560,7 +560,7 @@ export default function MCostSheet({ tripId, base, people, me, editing, prefill,
placeholder={localizeAmountInput('0.00', currency)}
value={localizeAmountInput(item.price, currency)}
onValueChange={v => handleUpdateItemPrice(item.id, v)}
- className="w-full border-0 bg-transparent py-[7px] text-right text-[0.8125rem] font-semibold text-m-ink outline-none"
+ className="w-full border-0 bg-transparent py-[7px] text-end text-[0.8125rem] font-semibold text-m-ink outline-none"
/>
</div>
<button type="button" onClick={() => handleRemoveItem(item.id)} className="flex-none text-m-muted" aria-label={t('common.delete')}>
@@ -615,7 +615,7 @@ export default function MCostSheet({ tripId, base, people, me, editing, prefill,
<button
type="button"
onClick={() => toggleParticipant(p.id)}
- className="flex min-w-0 flex-1 items-center gap-[8px] text-left"
+ className="flex min-w-0 flex-1 items-center gap-[8px] text-start"
>
<Avatar p={p} idx={idx} dim={!on} />
<span className="truncate text-[0.8125rem] font-medium text-m-ink">{nameOf(p)}</span>
@@ -623,11 +623,11 @@ export default function MCostSheet({ tripId, base, people, me, editing, prefill,
</button>
{splitMode === 'equally' ? (
on ? (
- <span className="flex-none pr-1 text-[0.8125rem] font-semibold text-m-ink [font-variant-numeric:tabular-nums]">
+ <span className="flex-none pe-1 text-[0.8125rem] font-semibold text-m-ink [font-variant-numeric:tabular-nums]">
{sym(currency)}{(equalShares[p.id] || 0).toFixed(2)}
</span>
) : (
- <span className="flex-none pr-1 text-[0.6875rem] text-m-faint">{t('costs.tapToInclude')}</span>
+ <span className="flex-none pe-1 text-[0.6875rem] text-m-faint">{t('costs.tapToInclude')}</span>
)
) : on ? (
<div className={`${MINI_INPUT_WRAP} w-[120px] flex-none`}>
@@ -638,7 +638,7 @@ export default function MCostSheet({ tripId, base, people, me, editing, prefill,
placeholder={localizeAmountInput((placeholderShares[p.id] || 0).toFixed(2), currency)}
value={localizeAmountInput(customAmounts[p.id] || '', currency)}
onChange={e => handleCustomAmountChange(p.id, e.target.value)}
- className="w-full border-0 bg-transparent py-[7px] text-right text-[0.8125rem] font-semibold text-m-ink outline-none placeholder:text-m-faint"
+ className="w-full border-0 bg-transparent py-[7px] text-end text-[0.8125rem] font-semibold text-m-ink outline-none placeholder:text-m-faint"
/>
</div>
) : (
@@ -715,7 +715,7 @@ export default function MCostSheet({ tripId, base, people, me, editing, prefill,
<button
type="button"
onClick={() => setPreviewReceipts({ receipts, initialIndex: rIdx })}
- className="flex min-w-0 flex-1 items-center gap-2 text-left"
+ className="flex min-w-0 flex-1 items-center gap-2 text-start"
>
<Receipt size={14} className="flex-none text-m-faint" />
<span className="truncate text-[0.8125rem] font-medium text-m-ink">{r.original_name}</span>
diff --git a/client/src/mobile/screens/trip/sheets/MDaySheet.tsx b/client/src/mobile/screens/trip/sheets/MDaySheet.tsx
index 9193f4f51..1a66b45d4 100644
--- a/client/src/mobile/screens/trip/sheets/MDaySheet.tsx
+++ b/client/src/mobile/screens/trip/sheets/MDaySheet.tsx
@@ -420,7 +420,7 @@ export default function MDaySheet({ planner, shell }: MTripSheetsProps) {
key={r.id}
type="button"
onClick={() => openReservation(r)}
- className={`flex w-full items-center gap-[10px] rounded-[13px] px-[11px] py-[9px] text-left ${INNER_CLS}`}
+ className={`flex w-full items-center gap-[10px] rounded-[13px] px-[11px] py-[9px] text-start ${INNER_CLS}`}
>
<ResIcon size={15} strokeWidth={2} className="flex-none text-m-muted" />
<span className="min-w-0 flex-1 truncate text-[0.8125rem] font-semibold">{r.title}</span>
@@ -447,7 +447,7 @@ export default function MDaySheet({ planner, shell }: MTripSheetsProps) {
type="button"
onClick={() => shell.openSheet('note', { dayId: day.id })}
aria-label={t('dayplan.addNote')}
- className="ml-auto flex h-6 w-6 items-center justify-center rounded-full bg-[color:var(--m-ic)] text-m-muted"
+ className="ms-auto flex h-6 w-6 items-center justify-center rounded-full bg-[color:var(--m-ic)] text-m-muted"
>
<Plus size={12} strokeWidth={2.2} />
</button>
@@ -465,7 +465,7 @@ export default function MDaySheet({ planner, shell }: MTripSheetsProps) {
key={note.id}
type="button"
onClick={() => { if (canEditDays) shell.openSheet('note', { dayId: day.id, note }) }}
- className={`flex w-full items-center gap-[10px] rounded-[13px] px-[11px] py-[9px] text-left ${INNER_CLS}`}
+ className={`flex w-full items-center gap-[10px] rounded-[13px] px-[11px] py-[9px] text-start ${INNER_CLS}`}
>
<NoteIcon size={15} strokeWidth={1.8} className="flex-none text-m-muted" />
<span className="min-w-0 flex-1">
@@ -507,7 +507,7 @@ export default function MDaySheet({ planner, shell }: MTripSheetsProps) {
if (canEditDays) editAccommodation(acc.id)
else if (acc.place_id) openAccommodationPlace(acc.place_id)
}}
- className="flex min-w-0 flex-1 items-center gap-[10px] text-left"
+ className="flex min-w-0 flex-1 items-center gap-[10px] text-start"
>
{acc.place_image ? (
<div
@@ -565,7 +565,7 @@ export default function MDaySheet({ planner, shell }: MTripSheetsProps) {
<button
type="button"
onClick={() => openReservation(linked)}
- className="mt-2 flex w-full items-center gap-2 text-left"
+ className="mt-2 flex w-full items-center gap-2 text-start"
>
<span
className="h-2 w-2 flex-none rounded-full"
diff --git a/client/src/mobile/screens/trip/sheets/MExportSheet.tsx b/client/src/mobile/screens/trip/sheets/MExportSheet.tsx
index 73c34fc3e..054f0e119 100644
--- a/client/src/mobile/screens/trip/sheets/MExportSheet.tsx
+++ b/client/src/mobile/screens/trip/sheets/MExportSheet.tsx
@@ -193,7 +193,7 @@ function ExportRow({ icon: Icon, title, sub, onClick }: {
<button
type="button"
onClick={onClick}
- className={`flex w-full items-center gap-[13px] rounded-[16px] px-3 py-[11px] text-left ${INNER_CLS}`}
+ className={`flex w-full items-center gap-[13px] rounded-[16px] px-3 py-[11px] text-start ${INNER_CLS}`}
>
<span className="flex h-[34px] w-[34px] flex-none items-center justify-center rounded-[10px] bg-[color:var(--m-ic)]">
<Icon size={16} strokeWidth={1.9} />
diff --git a/client/src/mobile/screens/trip/sheets/MImportSheet.tsx b/client/src/mobile/screens/trip/sheets/MImportSheet.tsx
index ece48650d..0eaf2c8ef 100644
--- a/client/src/mobile/screens/trip/sheets/MImportSheet.tsx
+++ b/client/src/mobile/screens/trip/sheets/MImportSheet.tsx
@@ -91,7 +91,7 @@ function ImpMenuRow({ icon: Icon, title, sub, onClick, className = '' }: ImpMenu
<button
type="button"
onClick={onClick}
- className={`flex w-full items-center gap-3 rounded-2xl border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-3 py-[13px] text-left ${className}`}
+ className={`flex w-full items-center gap-3 rounded-2xl border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-3 py-[13px] text-start ${className}`}
>
<span className="flex h-[38px] w-[38px] flex-none items-center justify-center rounded-[12px] bg-[color:var(--m-glass)]">
<Icon size={17} strokeWidth={1.9} />
diff --git a/client/src/mobile/screens/trip/sheets/MLinkedCosts.tsx b/client/src/mobile/screens/trip/sheets/MLinkedCosts.tsx
index 9072010c6..ef4f94198 100644
--- a/client/src/mobile/screens/trip/sheets/MLinkedCosts.tsx
+++ b/client/src/mobile/screens/trip/sheets/MLinkedCosts.tsx
@@ -64,8 +64,8 @@ export default function MLinkedCosts({ reservationId = null, placeId = null, hin
const meta = catMeta(item.category)
const Icon = meta.Icon
return (
- <div key={item.id} className="flex items-center gap-1 rounded-[13px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] py-[5px] pl-[10px] pr-1">
- <button type="button" onClick={() => onEdit(item)} aria-label={t('common.edit')} className="flex min-w-0 flex-1 items-center gap-[10px] py-[3px] text-left">
+ <div key={item.id} className="flex items-center gap-1 rounded-[13px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] py-[5px] ps-[10px] pe-1">
+ <button type="button" onClick={() => onEdit(item)} aria-label={t('common.edit')} className="flex min-w-0 flex-1 items-center gap-[10px] py-[3px] text-start">
<span className="flex h-[30px] w-[30px] flex-none items-center justify-center rounded-[9px]" style={{ background: `${meta.color}22`, color: meta.color }}>
<Icon size={15} strokeWidth={2} />
</span>
@@ -120,7 +120,7 @@ export default function MLinkedCosts({ reservationId = null, placeId = null, hin
return (
<button key={item.id} type="button"
onClick={async () => { await link(item); setPicking(false); setQuery('') }}
- className="flex w-full items-center gap-[10px] rounded-[10px] px-[10px] py-[8px] text-left active:bg-[color:var(--m-ic)]">
+ className="flex w-full items-center gap-[10px] rounded-[10px] px-[10px] py-[8px] text-start active:bg-[color:var(--m-ic)]">
<Icon size={14} strokeWidth={2} className="flex-none" style={{ color: meta.color }} />
<span className="min-w-0 flex-1 truncate text-[0.78125rem] font-medium text-m-ink">{item.name}</span>
<span className="flex-none font-geist text-[0.71875rem] tabular-nums text-m-muted">{money(item)}</span>
diff --git a/client/src/mobile/screens/trip/sheets/MMehrSheet.tsx b/client/src/mobile/screens/trip/sheets/MMehrSheet.tsx
index 8540c3e03..2fdb162d5 100644
--- a/client/src/mobile/screens/trip/sheets/MMehrSheet.tsx
+++ b/client/src/mobile/screens/trip/sheets/MMehrSheet.tsx
@@ -69,7 +69,7 @@ export default function MMehrSheet({ planner, shell }: MTripSheetsProps) {
key={tab.id}
type="button"
onClick={() => openSection(tab.id)}
- className="rounded-[18px] bg-[color:var(--m-ic)] px-4 pb-[15px] pt-[14px] text-left"
+ className="rounded-[18px] bg-[color:var(--m-ic)] px-4 pb-[15px] pt-[14px] text-start"
>
<div
className="flex h-[38px] w-[38px] items-center justify-center rounded-[11px]"
@@ -91,7 +91,7 @@ export default function MMehrSheet({ planner, shell }: MTripSheetsProps) {
key={action.id}
type="button"
onClick={action.go}
- className="flex w-full items-center gap-[13px] rounded-[18px] bg-[color:var(--m-ic)] px-4 py-[14px] text-left"
+ className="flex w-full items-center gap-[13px] rounded-[18px] bg-[color:var(--m-ic)] px-4 py-[14px] text-start"
>
<div className="flex h-[34px] w-[34px] flex-none items-center justify-center rounded-[10px] bg-[color:var(--m-ic)]">
<action.icon size={17} strokeWidth={1.9} />
diff --git a/client/src/mobile/screens/trip/sheets/MNoteSheet.tsx b/client/src/mobile/screens/trip/sheets/MNoteSheet.tsx
index c8da9bed3..ae8a51156 100644
--- a/client/src/mobile/screens/trip/sheets/MNoteSheet.tsx
+++ b/client/src/mobile/screens/trip/sheets/MNoteSheet.tsx
@@ -134,7 +134,7 @@ export default function MNoteSheet({ planner, open, payload, onClose }: MNoteShe
<ChevronDown
size={11}
strokeWidth={2.4}
- className={`absolute bottom-[3px] right-[3px] text-m-faint transition-transform duration-200 ${iconOpen ? 'rotate-180' : ''}`}
+ className={`absolute bottom-[3px] end-[3px] text-m-faint transition-transform duration-200 ${iconOpen ? 'rotate-180' : ''}`}
/>
</button>
diff --git a/client/src/mobile/screens/trip/sheets/MPlaceSheet.tsx b/client/src/mobile/screens/trip/sheets/MPlaceSheet.tsx
index bcc7b9375..52ef62473 100644
--- a/client/src/mobile/screens/trip/sheets/MPlaceSheet.tsx
+++ b/client/src/mobile/screens/trip/sheets/MPlaceSheet.tsx
@@ -292,7 +292,7 @@ export default function MPlaceSheet({ planner, shell }: MTripSheetsProps) {
onClick={handleImageRemove}
aria-label={t('places.removeImage')}
className="absolute flex items-center justify-center rounded-full"
- style={{ top: -5, right: -5, width: 18, height: 18, background: '#ef4444', color: '#fff', border: '2px solid var(--m-sheet)' }}
+ style={{ top: -5, insetInlineEnd: -5, width: 18, height: 18, background: '#ef4444', color: '#fff', border: '2px solid var(--m-sheet)' }}
>
<X size={9} strokeWidth={3} />
</button>
@@ -409,7 +409,7 @@ export default function MPlaceSheet({ planner, shell }: MTripSheetsProps) {
{placeAssignments.map(({ day, assignment }) => (
<span
key={assignment.id}
- className={`flex items-center gap-1 rounded-full py-1 pl-[10px] text-[0.75rem] font-semibold ${INNER_CLS} ${canEditDays ? 'pr-1' : 'pr-[10px]'}`}
+ className={`flex items-center gap-1 rounded-full py-1 ps-[10px] text-[0.75rem] font-semibold ${INNER_CLS} ${canEditDays ? 'pe-1' : 'pe-[10px]'}`}
>
{day.title || t('planner.dayN', { n: (day.day_number ?? planner.days.indexOf(day) + 1) || '?' })}
{canEditDays && !isTourPlace && place.lat != null && place.lng != null && (
@@ -455,7 +455,7 @@ export default function MPlaceSheet({ planner, shell }: MTripSheetsProps) {
key={d.id}
type="button"
onClick={() => { planner.handleAssignToDay(place.id, d.id); setDayPickerOpen(false) }}
- className="flex w-full items-center gap-2 rounded-[10px] px-[10px] py-[9px] text-left text-[0.78125rem] font-semibold"
+ className="flex w-full items-center gap-2 rounded-[10px] px-[10px] py-[9px] text-start text-[0.78125rem] font-semibold"
>
<span className="min-w-0 flex-1 truncate">
{d.title || t('planner.dayN', { n: (d.day_number ?? planner.days.indexOf(d) + 1) || '?' })}
@@ -502,7 +502,7 @@ export default function MPlaceSheet({ planner, shell }: MTripSheetsProps) {
onClick={() => openRes(res)}
disabled={!canOpenRes(res)}
aria-label={canOpenRes(res) ? t('inspector.editRes') : undefined}
- className={`flex w-full items-center gap-2 rounded-[14px] px-3 py-[10px] text-left ${INNER_CLS}`}
+ className={`flex w-full items-center gap-2 rounded-[14px] px-3 py-[10px] text-start ${INNER_CLS}`}
>
<span
className="h-2 w-2 flex-none rounded-full"
@@ -529,7 +529,7 @@ export default function MPlaceSheet({ planner, shell }: MTripSheetsProps) {
key={m.id}
type="button"
onClick={() => { if (activeMembers.length > 1) removeParticipant(m.id) }}
- className={`flex items-center gap-[6px] rounded-full p-1 pr-[11px] ${INNER_CLS}`}
+ className={`flex items-center gap-[6px] rounded-full p-1 pe-[11px] ${INNER_CLS}`}
>
<span className="flex h-[22px] w-[22px] flex-none items-center justify-center overflow-hidden rounded-full bg-m-act text-[0.625rem] font-bold text-m-actfg">
{(m.avatar_url || m.avatar)
@@ -558,7 +558,7 @@ export default function MPlaceSheet({ planner, shell }: MTripSheetsProps) {
key={m.id}
type="button"
onClick={() => addParticipant(m.id)}
- className="flex w-full items-center gap-2 rounded-[10px] px-[10px] py-2 text-left text-[0.78125rem] font-semibold"
+ className="flex w-full items-center gap-2 rounded-[10px] px-[10px] py-2 text-start text-[0.78125rem] font-semibold"
>
<span className="flex h-[20px] w-[20px] flex-none items-center justify-center overflow-hidden rounded-full bg-[color:var(--m-ic)] text-[0.5625rem] font-bold text-m-muted">
{(m.avatar_url || m.avatar)
@@ -608,7 +608,7 @@ export default function MPlaceSheet({ planner, shell }: MTripSheetsProps) {
key={f.id}
type="button"
onClick={() => openFile(f.url, f.original_name)}
- className="flex w-full items-center gap-2 rounded-[10px] bg-[color:var(--m-ic)] px-[10px] py-[7px] text-left"
+ className="flex w-full items-center gap-2 rounded-[10px] bg-[color:var(--m-ic)] px-[10px] py-[7px] text-start"
>
<span className="min-w-0 flex-1 truncate text-[0.75rem] font-medium">{f.original_name}</span>
<ExternalLink size={11} strokeWidth={2} className="flex-none text-m-faint" />
@@ -663,7 +663,7 @@ export default function MPlaceSheet({ planner, shell }: MTripSheetsProps) {
onClick={() => { planner.openPlaceEditor(place, assignmentInDay?.id ?? null); close() }}
label={t('common.edit')}
primary
- className="ml-auto"
+ className="ms-auto"
>
<Pencil size={15} strokeWidth={2} />
</ActionCircle>
diff --git a/client/src/mobile/screens/trip/sheets/MReservationSheet.tsx b/client/src/mobile/screens/trip/sheets/MReservationSheet.tsx
index 8f3f826f5..5cbcc101c 100644
--- a/client/src/mobile/screens/trip/sheets/MReservationSheet.tsx
+++ b/client/src/mobile/screens/trip/sheets/MReservationSheet.tsx
@@ -37,7 +37,7 @@ const TYPE_OPTIONS = [
]
// Traveler picker row — same surface as the cost-split rows (bg on --m-ic).
-const TRAVELER_ROW_CLS = 'flex w-full items-center gap-[9px] rounded-[12px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-3 py-[9px] text-left'
+const TRAVELER_ROW_CLS = 'flex w-full items-center gap-[9px] rounded-[12px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-3 py-[9px] text-start'
const EMPTY = {
title: '', type: 'other', status: 'pending',
@@ -528,13 +528,13 @@ export default function MReservationSheet({ planner, onOpenExpense }: MReservati
{/* LINK */}
<Eyebrow className="mb-[5px] mt-3 uppercase">{t('reservations.urlLabel')}</Eyebrow>
<div className="relative">
- <Link2 size={15} className="pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-m-faint" />
+ <Link2 size={15} className="pointer-events-none absolute start-3 top-1/2 -translate-y-1/2 text-m-faint" />
<input
type="url"
value={form.url}
onChange={e => set('url', e.target.value)}
placeholder={t('reservations.urlPlaceholder')}
- className={`${FIELD_CLS} pl-[34px]`}
+ className={`${FIELD_CLS} ps-[34px]`}
/>
</div>
diff --git a/client/src/mobile/screens/trip/sheets/MTransportFormSheet.tsx b/client/src/mobile/screens/trip/sheets/MTransportFormSheet.tsx
index b3373686b..a09c63e29 100644
--- a/client/src/mobile/screens/trip/sheets/MTransportFormSheet.tsx
+++ b/client/src/mobile/screens/trip/sheets/MTransportFormSheet.tsx
@@ -115,7 +115,7 @@ function emptyStationWaypoint(dayId: string | number = ''): StationWaypointForm
}
// Traveler picker row — same surface as the cost-split rows (bg on --m-ic).
-const TRAVELER_ROW_CLS = 'flex w-full items-center gap-[9px] rounded-[12px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-3 py-[9px] text-left'
+const TRAVELER_ROW_CLS = 'flex w-full items-center gap-[9px] rounded-[12px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-3 py-[9px] text-start'
const EMPTY = {
title: '',
@@ -1105,7 +1105,7 @@ export default function MTransportFormSheet({ planner, onOpenExpense }: MTranspo
<button
type="button"
onClick={handleClose}
- className="ml-auto rounded-full border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-4 py-[9px] text-[0.78125rem] font-semibold text-m-ink"
+ className="ms-auto rounded-full border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-4 py-[9px] text-[0.78125rem] font-semibold text-m-ink"
>
{t('common.cancel')}
</button>
diff --git a/client/src/mobile/screens/trip/sheets/MTransportSheet.tsx b/client/src/mobile/screens/trip/sheets/MTransportSheet.tsx
index 26c32ca7e..64141dbda 100644
--- a/client/src/mobile/screens/trip/sheets/MTransportSheet.tsx
+++ b/client/src/mobile/screens/trip/sheets/MTransportSheet.tsx
@@ -300,7 +300,7 @@ export default function MTransportSheet({ planner, shell }: MTripSheetsProps) {
<button
type="button"
onClick={editTransport}
- className="ml-auto flex items-center gap-[5px] rounded-full bg-m-act px-3 py-[7px] text-[0.75rem] font-semibold text-m-actfg"
+ className="ms-auto flex items-center gap-[5px] rounded-full bg-m-act px-3 py-[7px] text-[0.75rem] font-semibold text-m-actfg"
>
<Pencil size={13} strokeWidth={2} />
{t('common.edit')}
diff --git a/client/src/mobile/screens/trip/sheets/PlFileAttach.tsx b/client/src/mobile/screens/trip/sheets/PlFileAttach.tsx
index 44490ddf9..e3aa2097b 100644
--- a/client/src/mobile/screens/trip/sheets/PlFileAttach.tsx
+++ b/client/src/mobile/screens/trip/sheets/PlFileAttach.tsx
@@ -21,7 +21,7 @@ interface PlFileAttachProps {
onLink?: (file: TripFile) => Promise<boolean>
}
-const ITEM_CLS = 'flex w-full items-center gap-2 rounded-[10px] bg-[color:var(--m-ic)] px-2 py-[6px] text-left'
+const ITEM_CLS = 'flex w-full items-center gap-2 rounded-[10px] bg-[color:var(--m-ic)] px-2 py-[6px] text-start'
/**
* Files row of the place and booking forms: picker pill plus the pending
diff --git a/client/src/mobile/screens/trip/sheets/PlPlaceSearch.tsx b/client/src/mobile/screens/trip/sheets/PlPlaceSearch.tsx
index 5455201de..5cc733bc7 100644
--- a/client/src/mobile/screens/trip/sheets/PlPlaceSearch.tsx
+++ b/client/src/mobile/screens/trip/sheets/PlPlaceSearch.tsx
@@ -320,14 +320,14 @@ export default function PlPlaceSearch({ planner, locationBias, onPick, onResolvi
</div>
{suggestions.length > 0 && (
- <div className="absolute left-0 right-12 top-[calc(100%+6px)] z-10 max-h-[210px] overflow-y-auto rounded-[14px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-sheetop)] shadow-[0_20px_44px_-18px_rgba(0,0,0,.45)]">
+ <div className="absolute start-0 end-12 top-[calc(100%+6px)] z-10 max-h-[210px] overflow-y-auto rounded-[14px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-sheetop)] shadow-[0_20px_44px_-18px_rgba(0,0,0,.45)]">
{suggestions.map(s => (
<button
key={s.placeId}
type="button"
onPointerDown={e => e.preventDefault()}
onClick={() => handleSelectSuggestion(s)}
- className="block w-full border-t border-[color:var(--m-rowbr)] px-[13px] py-[10px] text-left first:border-t-0"
+ className="block w-full border-t border-[color:var(--m-rowbr)] px-[13px] py-[10px] text-start first:border-t-0"
>
<div className="flex items-center gap-2">
<div className="min-w-0 flex-1">
@@ -350,7 +350,7 @@ export default function PlPlaceSearch({ planner, locationBias, onPick, onResolvi
key={idx}
type="button"
onClick={() => applyPlace(result, { mode: 'search', rank: idx, count: results.length })}
- className="block w-full border-t border-[color:var(--m-rowbr)] px-[13px] py-[10px] text-left first:border-t-0"
+ className="block w-full border-t border-[color:var(--m-rowbr)] px-[13px] py-[10px] text-start first:border-t-0"
>
<div className="flex items-center gap-2">
<div className="min-w-0 flex-1">
diff --git a/client/src/mobile/screens/trip/sheets/PlSheetChrome.tsx b/client/src/mobile/screens/trip/sheets/PlSheetChrome.tsx
index 3fc31e354..599a261ec 100644
--- a/client/src/mobile/screens/trip/sheets/PlSheetChrome.tsx
+++ b/client/src/mobile/screens/trip/sheets/PlSheetChrome.tsx
@@ -88,7 +88,7 @@ export function FormSheetFooter({
<button
type="button"
onClick={onCancel}
- className="ml-auto rounded-full border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-4 py-[9px] text-[0.78125rem] font-semibold text-m-ink"
+ className="ms-auto rounded-full border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-4 py-[9px] text-[0.78125rem] font-semibold text-m-ink"
>
{cancelLabel}
</button>
diff --git a/client/src/mobile/screens/trip/tabs/MBagsSheet.tsx b/client/src/mobile/screens/trip/tabs/MBagsSheet.tsx
index 186934d0b..5bacbfb0f 100644
--- a/client/src/mobile/screens/trip/tabs/MBagsSheet.tsx
+++ b/client/src/mobile/screens/trip/tabs/MBagsSheet.tsx
@@ -206,7 +206,7 @@ function BagRow({ planner, bag, itemCount, weight, pct, tripMembers, canEdit, on
className="min-w-0 flex-1 border-b border-[color:var(--m-rowbr)] bg-transparent text-[0.8125rem] font-semibold text-m-ink outline-none"
/>
) : (
- <button type="button" onClick={() => canEdit && setEditingName(true)} className="min-w-0 flex-1 truncate text-left text-[0.8125rem] font-semibold text-m-ink">
+ <button type="button" onClick={() => canEdit && setEditingName(true)} className="min-w-0 flex-1 truncate text-start text-[0.8125rem] font-semibold text-m-ink">
{bag.name}
</button>
)}
@@ -224,7 +224,7 @@ function BagRow({ planner, bag, itemCount, weight, pct, tripMembers, canEdit, on
onChange={e => setLimitVal(e.target.value)}
onBlur={saveLimit}
onKeyDown={e => { if (e.key === 'Enter') saveLimit(); if (e.key === 'Escape') { setLimitVal(limitToInput(bag.weight_limit_grams)); setEditingLimit(false) } }}
- className="w-9 border-b border-[color:var(--m-rowbr)] bg-transparent text-right text-m-ink outline-none"
+ className="w-9 border-b border-[color:var(--m-rowbr)] bg-transparent text-end text-m-ink outline-none"
/>
<span>kg</span>
</>
@@ -278,7 +278,7 @@ function BagRow({ planner, bag, itemCount, weight, pct, tripMembers, canEdit, on
</button>
)}
{showPicker && (
- <div className="absolute left-0 top-[26px] z-[5] max-h-[180px] w-[190px] overflow-y-auto rounded-[12px] border border-[color:var(--m-rowbr)] bg-m-sheetop p-1 shadow-[0_16px_40px_-16px_rgba(0,0,0,.45)]">
+ <div className="absolute start-0 top-[26px] z-[5] max-h-[180px] w-[190px] overflow-y-auto rounded-[12px] border border-[color:var(--m-rowbr)] bg-m-sheetop p-1 shadow-[0_16px_40px_-16px_rgba(0,0,0,.45)]">
{tripMembers.length === 0 && (
<div className="px-[10px] py-2 font-geist text-[0.6875rem] text-m-faint">{t('packing.noMembers')}</div>
)}
@@ -290,7 +290,7 @@ function BagRow({ planner, bag, itemCount, weight, pct, tripMembers, canEdit, on
key={m.id}
type="button"
onClick={() => toggleMember(m.id)}
- className="flex w-full items-center gap-[8px] rounded-[8px] px-[8px] py-[6px] text-left"
+ className="flex w-full items-center gap-[8px] rounded-[8px] px-[8px] py-[6px] text-start"
>
<span className="flex h-5 w-5 flex-none items-center justify-center overflow-hidden rounded-full bg-[color:var(--m-ic)] text-[0.5625rem] font-bold text-m-muted">
{src ? <img src={src} alt="" className="h-full w-full object-cover" /> : m.username[0]?.toUpperCase()}
diff --git a/client/src/mobile/screens/trip/tabs/MBookingsTab.tsx b/client/src/mobile/screens/trip/tabs/MBookingsTab.tsx
index 30fba55ae..95c2abdd4 100644
--- a/client/src/mobile/screens/trip/tabs/MBookingsTab.tsx
+++ b/client/src/mobile/screens/trip/tabs/MBookingsTab.tsx
@@ -156,7 +156,7 @@ function BookingCard({ res, planner, canEdit, compact }: {
{/* Header */}
<div className="flex items-center gap-[7px] border-b border-[color:var(--m-rowbr)] px-3 py-[10px]" style={{ background: tint }}>
<StatusDot color={dotColor} />
- <button type="button" onClick={openEdit} className="flex min-w-0 flex-1 items-center gap-[7px] text-left">
+ <button type="button" onClick={openEdit} className="flex min-w-0 flex-1 items-center gap-[7px] text-start">
<span className="inline-flex flex-none items-center gap-1 rounded-full border border-[color:var(--m-rowbr)] bg-m-card px-2 py-[2px] font-geist text-[0.5625rem] font-bold uppercase tracking-[.06em] text-m-muted">
<TypeIcon size={10} strokeWidth={2.2} style={{ color: typeColor }} />
{t(`reservations.type.${res.type}`)}
@@ -194,7 +194,7 @@ function BookingCard({ res, planner, canEdit, compact }: {
control instead of a click handler buried inside the card button. */}
{!compact && (
<div className="px-3 pb-3 pt-[9px]">
- <button type="button" onClick={openEdit} className="block w-full text-left">
+ <button type="button" onClick={openEdit} className="block w-full text-start">
<div className="flex gap-2">
<Field label={t('reservations.date')} className="flex-[1.4]">{dayValue}</Field>
<Field label={t('reservations.time')} className="flex-1" tabular>{timeValue}</Field>
@@ -210,7 +210,7 @@ function BookingCard({ res, planner, canEdit, compact }: {
/>
)}
- <button type="button" onClick={openEdit} className="block w-full text-left">
+ <button type="button" onClick={openEdit} className="block w-full text-start">
{metaCells.length > 0 && (
<div className="mt-2 flex gap-2">
{metaCells.slice(0, 3).map((c, i) => (
diff --git a/client/src/mobile/screens/trip/tabs/MCollabChat.tsx b/client/src/mobile/screens/trip/tabs/MCollabChat.tsx
index c68ac1b77..c45cf4ba7 100644
--- a/client/src/mobile/screens/trip/tabs/MCollabChat.tsx
+++ b/client/src/mobile/screens/trip/tabs/MCollabChat.tsx
@@ -296,7 +296,7 @@ export default function MCollabChat({ planner }: MCollabChatProps) {
<div className="mt-[10px] flex flex-none flex-col gap-2">
{replyTo && (
- <div className="flex items-center gap-2 rounded-[12px] border-l-[3px] border-m-act bg-[color:var(--m-ic)] px-[10px] py-[6px]">
+ <div className="flex items-center gap-2 rounded-[12px] border-s-[3px] border-m-act bg-[color:var(--m-ic)] px-[10px] py-[6px]">
<Reply size={12} strokeWidth={2} className="flex-none text-m-faint" />
<span className="min-w-0 flex-1 truncate font-geist text-[0.71875rem] text-m-muted">
<strong className="text-m-ink">{replyTo.username}</strong>: {replyTo.text.slice(0, 60)}
@@ -319,7 +319,7 @@ export default function MCollabChat({ planner }: MCollabChatProps) {
{images.previews.map((url, i) => (
<div key={url} className="relative">
<img src={url} alt="" className="h-14 w-14 rounded-lg object-cover" />
- <button type="button" aria-label="Remove image" onClick={() => images.remove(i)} className="absolute -right-1 -top-1 h-4 w-4 rounded-full bg-m-ink text-[10px] text-m-bg">×</button>
+ <button type="button" aria-label="Remove image" onClick={() => images.remove(i)} className="absolute -end-1 -top-1 h-4 w-4 rounded-full bg-m-ink text-[10px] text-m-bg">×</button>
</div>
))}
</div>
@@ -433,7 +433,7 @@ function ChatBubbleRow({ msg, own, showHeader, isLastInGroup, marginTop, is12h,
return (
<div
- className={`flex gap-2 ${own ? 'flex-row-reverse pl-10' : 'flex-row pr-10'}`}
+ className={`flex gap-2 ${own ? 'flex-row-reverse ps-10' : 'flex-row pe-10'}`}
style={{ marginTop }}
>
{!own && (
@@ -452,7 +452,7 @@ function ChatBubbleRow({ msg, own, showHeader, isLastInGroup, marginTop, is12h,
<div className={`flex min-w-0 max-w-[78%] flex-col ${own ? 'items-end' : 'items-start'}`}>
{showHeader && (
- <span className="mb-[2px] pl-1 font-geist text-[0.59375rem] font-bold text-m-faint">{msg.username}</span>
+ <span className="mb-[2px] ps-1 font-geist text-[0.59375rem] font-bold text-m-faint">{msg.username}</span>
)}
<button
@@ -462,7 +462,7 @@ function ChatBubbleRow({ msg, own, showHeader, isLastInGroup, marginTop, is12h,
onPointerMove={onPointerMove}
onPointerUp={onPointerUp}
onPointerCancel={clearPress}
- className="max-w-full text-left"
+ className="max-w-full text-start"
>
{bigEmoji ? (
<div className="py-[2px] text-[2.5rem] leading-[1.15]">{msg.text}</div>
@@ -562,7 +562,7 @@ function MessageActionsPopover({ x, y, canDeleteOwn, t, onReact, onReply, onDele
<button
type="button"
onClick={onReply}
- className="flex w-full items-center gap-2 rounded-[10px] px-2 py-[8px] text-left text-[0.8125rem] font-semibold text-m-ink"
+ className="flex w-full items-center gap-2 rounded-[10px] px-2 py-[8px] text-start text-[0.8125rem] font-semibold text-m-ink"
>
<Reply size={14} strokeWidth={2} /> {t('collab.chat.reply')}
</button>
@@ -570,7 +570,7 @@ function MessageActionsPopover({ x, y, canDeleteOwn, t, onReact, onReply, onDele
<button
type="button"
onClick={onDelete}
- className="flex w-full items-center gap-2 rounded-[10px] px-2 py-[8px] text-left text-[0.8125rem] font-semibold text-[color:var(--m-st-danger)]"
+ className="flex w-full items-center gap-2 rounded-[10px] px-2 py-[8px] text-start text-[0.8125rem] font-semibold text-[color:var(--m-st-danger)]"
>
<Trash2 size={14} strokeWidth={2} /> {t('common.delete')}
</button>
diff --git a/client/src/mobile/screens/trip/tabs/MCollabNotes.tsx b/client/src/mobile/screens/trip/tabs/MCollabNotes.tsx
index cb7d77fdb..876148279 100644
--- a/client/src/mobile/screens/trip/tabs/MCollabNotes.tsx
+++ b/client/src/mobile/screens/trip/tabs/MCollabNotes.tsx
@@ -314,7 +314,7 @@ function NoteCardRow({ note, color, canEdit, onTap, onTogglePin, onDelete, t }:
<div className="mt-2 overflow-hidden rounded-2xl border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)]">
<div className="flex items-center gap-[7px] px-3 py-[10px]" style={{ background: `${color}0d` }}>
{!!note.pinned && <Pin size={11} strokeWidth={2.4} style={{ color }} className="flex-none" />}
- <button type="button" onClick={onTap} className="flex min-w-0 flex-1 items-center gap-[7px] text-left">
+ <button type="button" onClick={onTap} className="flex min-w-0 flex-1 items-center gap-[7px] text-start">
<span className="min-w-0 flex-1 truncate text-[0.8125rem] font-bold text-m-ink">{note.title}</span>
{note.category && (
<span
@@ -358,9 +358,9 @@ function NoteCardRow({ note, color, canEdit, onTap, onTogglePin, onDelete, t }:
)}
</div>
- <button type="button" onClick={onTap} className="block w-full px-3 pb-3 pt-[9px] text-left">
+ <button type="button" onClick={onTap} className="block w-full px-3 pb-3 pt-[9px] text-start">
{note.content && (
- <div className="line-clamp-3 [overflow-wrap:anywhere] font-geist text-[0.75rem] leading-[1.5] text-m-muted [&_a]:underline [&_ol]:list-decimal [&_ol]:pl-4 [&_p]:mb-1 [&_strong]:font-bold [&_ul]:list-disc [&_ul]:pl-4">
+ <div className="line-clamp-3 [overflow-wrap:anywhere] font-geist text-[0.75rem] leading-[1.5] text-m-muted [&_a]:underline [&_ol]:list-decimal [&_ol]:ps-4 [&_p]:mb-1 [&_strong]:font-bold [&_ul]:list-disc [&_ul]:ps-4">
<Markdown remarkPlugins={[remarkGfm, remarkBreaks]} rehypePlugins={sanitizedMarkdownPlugins} components={sanitizedMarkdownComponents}>{note.content}</Markdown>
</div>
)}
@@ -640,7 +640,7 @@ function NoteViewSheet({ open, note, onClose, t }: {
/>
<div className="min-h-0 flex-1 overflow-y-auto px-[18px] pb-4 pt-1">
{snapshot?.content && (
- <div className="font-geist text-[0.8125rem] leading-[1.6] text-m-ink [overflow-wrap:anywhere] [&_a]:underline [&_ol]:list-decimal [&_ol]:pl-5 [&_p]:mb-2 [&_strong]:font-bold [&_ul]:list-disc [&_ul]:pl-5">
+ <div className="font-geist text-[0.8125rem] leading-[1.6] text-m-ink [overflow-wrap:anywhere] [&_a]:underline [&_ol]:list-decimal [&_ol]:ps-5 [&_p]:mb-2 [&_strong]:font-bold [&_ul]:list-disc [&_ul]:ps-5">
<Markdown remarkPlugins={[remarkGfm, remarkBreaks]} rehypePlugins={sanitizedMarkdownPlugins} components={sanitizedMarkdownComponents}>{snapshot.content}</Markdown>
</div>
)}
@@ -662,7 +662,7 @@ function NoteViewSheet({ open, note, onClose, t }: {
key={f.id}
type="button"
onClick={() => openFile(f.url, f.original_name)}
- className="flex items-center gap-[6px] rounded-[10px] border border-[color:var(--m-rowbr)] bg-m-card px-[10px] py-[8px] text-left"
+ className="flex items-center gap-[6px] rounded-[10px] border border-[color:var(--m-rowbr)] bg-m-card px-[10px] py-[8px] text-start"
>
<FileText size={13} strokeWidth={2} className="flex-none text-m-muted" />
<span className="min-w-0 flex-1 truncate font-geist text-[0.71875rem] font-semibold text-m-muted">
diff --git a/client/src/mobile/screens/trip/tabs/MCollabPolls.tsx b/client/src/mobile/screens/trip/tabs/MCollabPolls.tsx
index 50164c676..8fd382347 100644
--- a/client/src/mobile/screens/trip/tabs/MCollabPolls.tsx
+++ b/client/src/mobile/screens/trip/tabs/MCollabPolls.tsx
@@ -260,7 +260,7 @@ function PollCardRow({ poll, canEdit, currentUserId, t, onVote, onClosePoll, onD
{/* Question is cross-user markdown (#2177): sanitized, raw HTML stays
inert, links open in a new tab with rel protection (#1629).
Heading/list sizes are em-based so they follow the text scale. */}
- <div className="break-words text-[0.8125rem] font-bold leading-[1.35] text-m-ink [&_a]:underline [&_h1]:mb-1 [&_h1]:text-[1.35em] [&_h1]:leading-[1.2] [&_h2]:mb-1 [&_h2]:text-[1.2em] [&_h2]:leading-[1.25] [&_h3]:mb-1 [&_h3]:text-[1.1em] [&_h3]:leading-[1.3] [&_ol]:list-decimal [&_ol]:pl-4 [&_p]:mb-1 [&_ul]:list-disc [&_ul]:pl-4">
+ <div className="break-words text-[0.8125rem] font-bold leading-[1.35] text-m-ink [&_a]:underline [&_h1]:mb-1 [&_h1]:text-[1.35em] [&_h1]:leading-[1.2] [&_h2]:mb-1 [&_h2]:text-[1.2em] [&_h2]:leading-[1.25] [&_h3]:mb-1 [&_h3]:text-[1.1em] [&_h3]:leading-[1.3] [&_ol]:list-decimal [&_ol]:ps-4 [&_p]:mb-1 [&_ul]:list-disc [&_ul]:ps-4">
<Markdown remarkPlugins={[remarkGfm, remarkBreaks]} rehypePlugins={sanitizedMarkdownPlugins} components={sanitizedMarkdownComponents}>
{poll.question}
</Markdown>
@@ -327,7 +327,7 @@ function PollCardRow({ poll, canEdit, currentUserId, t, onVote, onClosePoll, onD
type="button"
disabled={closed || !canEdit}
onClick={() => onVote(poll.id, idx)}
- className="relative flex items-start gap-[8px] overflow-hidden rounded-[10px] bg-m-card px-[12px] py-[10px] text-left disabled:cursor-default"
+ className="relative flex items-start gap-[8px] overflow-hidden rounded-[10px] bg-m-card px-[12px] py-[10px] text-start disabled:cursor-default"
>
<span className="absolute inset-y-0 left-0" style={{ width: `${pct}%`, background: fillTint }} />
<span
@@ -343,7 +343,7 @@ function PollCardRow({ poll, canEdit, currentUserId, t, onVote, onClosePoll, onD
{opt.text}
</span>
{(voted || closed) && count > 0 && (
- <span className="relative flex flex-none -space-x-1">
+ <span className="relative flex flex-none [&>*+*]:-ms-1">
{(opt.voters || []).slice(0, 3).map(v => (
<span
key={v.user_id}
diff --git a/client/src/mobile/screens/trip/tabs/MCostsTab.tsx b/client/src/mobile/screens/trip/tabs/MCostsTab.tsx
index d48f793fe..9a351f011 100644
--- a/client/src/mobile/screens/trip/tabs/MCostsTab.tsx
+++ b/client/src/mobile/screens/trip/tabs/MCostsTab.tsx
@@ -256,14 +256,14 @@ export default function MCostsTab({ planner, shell }: MTabScreenProps) {
type="button"
aria-expanded={settleOpen}
onClick={() => setSettleOpen(v => !v)}
- className="flex min-w-0 flex-1 items-center gap-[7px] text-left"
+ className="flex min-w-0 flex-1 items-center gap-[7px] text-start"
>
<span className="text-[0.875rem] font-extrabold text-m-ink">{t('costs.settleUp')}</span>
<CountPill>{flows.length}</CountPill>
{settleOpen ? (
- <ChevronUp size={14} strokeWidth={2} className="ml-auto flex-none text-m-faint" />
+ <ChevronUp size={14} strokeWidth={2} className="ms-auto flex-none text-m-faint" />
) : (
- <ChevronDown size={14} strokeWidth={2} className="ml-auto flex-none text-m-faint" />
+ <ChevronDown size={14} strokeWidth={2} className="ms-auto flex-none text-m-faint" />
)}
</button>
{canEdit && (
@@ -295,7 +295,7 @@ export default function MCostsTab({ planner, shell }: MTabScreenProps) {
<span className="min-w-0 flex-1 truncate text-[0.78125rem] font-semibold text-m-ink">{personName(f.from.user_id)}</span>
<ArrowRight size={12} strokeWidth={2.2} className="flex-none text-m-faint" />
<span className="min-w-0 flex-1 truncate text-[0.78125rem] font-semibold text-m-ink">{personName(f.to.user_id)}</span>
- <span className="ml-auto flex-none font-geist text-[0.78125rem] font-extrabold tabular-nums text-m-ink">{formatMoney(f.amount, base, locale)}</span>
+ <span className="ms-auto flex-none font-geist text-[0.78125rem] font-extrabold tabular-nums text-m-ink">{formatMoney(f.amount, base, locale)}</span>
</div>
))}
</div>
@@ -310,7 +310,7 @@ export default function MCostsTab({ planner, shell }: MTabScreenProps) {
<div key={p.id} className="flex items-center gap-[9px] border-b border-[color:var(--m-rowbr)] py-[7px] last:border-b-0">
<MemberAvatar name={p.username} avatarUrl={p.avatar_url} isMe={p.id === me} variant="neutral" size={24} t={t} />
<span className="min-w-0 flex-1 truncate text-[0.78125rem] font-semibold text-m-ink">{p.id === me ? t('costs.you') : p.username}</span>
- <span className="ml-auto flex-none font-geist text-[0.75rem] font-extrabold tabular-nums" style={{ color: pos ? STATUS_COLOR.confirmed : neg ? STATUS_COLOR.danger : 'var(--m-faint)' }}>
+ <span className="ms-auto flex-none font-geist text-[0.75rem] font-extrabold tabular-nums" style={{ color: pos ? STATUS_COLOR.confirmed : neg ? STATUS_COLOR.danger : 'var(--m-faint)' }}>
{pos ? '+' : neg ? '−' : ''}
{formatMoney(Math.abs(balance), base, locale)}
</span>
@@ -335,11 +335,11 @@ export default function MCostsTab({ planner, shell }: MTabScreenProps) {
type="button"
aria-expanded={open}
onClick={() => setExpandedFinalId(open ? null : p.id)}
- className="flex w-full items-center gap-[9px] py-[7px] text-left font-[inherit]"
+ className="flex w-full items-center gap-[9px] py-[7px] text-start font-[inherit]"
>
<MemberAvatar name={p.username} avatarUrl={p.avatar_url} isMe={p.id === me} variant="neutral" size={24} t={t} />
<span className="min-w-0 flex-1 truncate text-[0.78125rem] font-semibold text-m-ink">{personName(p.id)}</span>
- <span className="ml-auto flex-none font-geist text-[0.75rem] font-extrabold tabular-nums text-m-ink">{formatMoney(row.final, base, locale)}</span>
+ <span className="ms-auto flex-none font-geist text-[0.75rem] font-extrabold tabular-nums text-m-ink">{formatMoney(row.final, base, locale)}</span>
{open
? <ChevronUp size={13} strokeWidth={2.2} className="flex-none text-m-faint" />
: <ChevronDown size={13} strokeWidth={2.2} className="flex-none text-m-faint" />}
@@ -365,7 +365,7 @@ export default function MCostsTab({ planner, shell }: MTabScreenProps) {
<div className="flex items-center gap-[7px]">
<span className="h-2 w-2 flex-none rounded-full" style={{ background: meta.color }} />
<span className="min-w-0 flex-1 truncate font-geist text-[0.65625rem] font-semibold text-m-muted">{t(meta.labelKey)}</span>
- <span className="ml-auto flex-none font-geist text-[0.65625rem] font-bold tabular-nums text-m-ink">{formatMoney(c.amount, base, locale)}</span>
+ <span className="ms-auto flex-none font-geist text-[0.65625rem] font-bold tabular-nums text-m-ink">{formatMoney(c.amount, base, locale)}</span>
</div>
<div className="mt-1 h-1 overflow-hidden rounded-full bg-[color:var(--m-ic)]">
<span className="block h-full rounded-full" style={{ width: `${c.widthPct}%`, background: meta.color }} />
@@ -408,7 +408,7 @@ export default function MCostsTab({ planner, shell }: MTabScreenProps) {
setCatOpen(v => !v)
setDayOpen(false)
}}
- className="flex flex-1 items-center justify-between gap-2 overflow-hidden rounded-xl border border-[color:var(--m-rowbr)] bg-m-card px-[13px] py-[9px] text-left"
+ className="flex flex-1 items-center justify-between gap-2 overflow-hidden rounded-xl border border-[color:var(--m-rowbr)] bg-m-card px-[13px] py-[9px] text-start"
>
<span className="min-w-0 flex-1 truncate text-[0.75rem] font-semibold text-m-ink">
{catFilter ? t(catMeta(catFilter).labelKey) : t('costs.filter.allCategories')}
@@ -422,7 +422,7 @@ export default function MCostsTab({ planner, shell }: MTabScreenProps) {
setDayOpen(v => !v)
setCatOpen(false)
}}
- className="flex flex-1 items-center justify-between gap-2 overflow-hidden rounded-xl border border-[color:var(--m-rowbr)] bg-m-card px-[13px] py-[9px] text-left"
+ className="flex flex-1 items-center justify-between gap-2 overflow-hidden rounded-xl border border-[color:var(--m-rowbr)] bg-m-card px-[13px] py-[9px] text-start"
>
<span className="min-w-0 flex-1 truncate text-[0.75rem] font-semibold text-m-ink">
{dayFilter ? dayOptionLabel(dayFilter) : t('costs.filter.allDays')}
@@ -439,7 +439,7 @@ export default function MCostsTab({ planner, shell }: MTabScreenProps) {
setCatFilter('')
setCatOpen(false)
}}
- className="flex w-full items-center gap-[10px] border-b border-[color:var(--m-rowbr)] px-[13px] py-[10px] text-left"
+ className="flex w-full items-center gap-[10px] border-b border-[color:var(--m-rowbr)] px-[13px] py-[10px] text-start"
>
<Layers size={14} strokeWidth={2} className="flex-none text-m-muted" />
<span className="text-[0.78125rem] font-medium text-m-ink">{t('costs.filter.allCategories')}</span>
@@ -455,7 +455,7 @@ export default function MCostsTab({ planner, shell }: MTabScreenProps) {
setCatFilter(k)
setCatOpen(false)
}}
- className="flex w-full items-center gap-[10px] border-b border-[color:var(--m-rowbr)] px-[13px] py-[10px] text-left last:border-b-0"
+ className="flex w-full items-center gap-[10px] border-b border-[color:var(--m-rowbr)] px-[13px] py-[10px] text-start last:border-b-0"
>
<Icon size={14} strokeWidth={2} style={{ color: meta.color }} className="flex-none" />
<span className="text-[0.78125rem] font-medium text-m-ink">{t(meta.labelKey)}</span>
@@ -473,7 +473,7 @@ export default function MCostsTab({ planner, shell }: MTabScreenProps) {
setDayFilter('')
setDayOpen(false)
}}
- className="w-full border-b border-[color:var(--m-rowbr)] px-[13px] py-[10px] text-left text-[0.78125rem] font-medium text-m-ink"
+ className="w-full border-b border-[color:var(--m-rowbr)] px-[13px] py-[10px] text-start text-[0.78125rem] font-medium text-m-ink"
>
{t('costs.filter.allDays')}
</button>
@@ -485,7 +485,7 @@ export default function MCostsTab({ planner, shell }: MTabScreenProps) {
setDayFilter(d)
setDayOpen(false)
}}
- className="w-full border-b border-[color:var(--m-rowbr)] px-[13px] py-[10px] text-left text-[0.78125rem] font-medium text-m-ink last:border-b-0"
+ className="w-full border-b border-[color:var(--m-rowbr)] px-[13px] py-[10px] text-start text-[0.78125rem] font-medium text-m-ink last:border-b-0"
>
{dayOptionLabel(d)}
</button>
@@ -500,7 +500,7 @@ export default function MCostsTab({ planner, shell }: MTabScreenProps) {
<div key={g.dateKey || 'no-date'}>
<div className="mt-[14px] flex items-baseline gap-2 px-[2px]">
<span className="font-geist text-[0.625rem] font-bold uppercase tracking-[.09em] text-m-faint">{groupLabel(g.dateKey)}</span>
- <span className="ml-auto flex-none font-geist text-[0.59375rem] font-bold tabular-nums text-m-muted">
+ <span className="ms-auto flex-none font-geist text-[0.59375rem] font-bold tabular-nums text-m-muted">
{t('costs.spent', { amount: formatMoney(groupTotal, base, locale) })}
</span>
</div>
@@ -640,7 +640,7 @@ function ExpenseRow({ item, ctx, base, locale, t, canEdit, onEdit, onDelete, onT
<div className="mt-2 flex items-center gap-[6px]">
<div className="relative min-w-0 flex-1 rounded-2xl bg-m-card px-3 pb-[10px] pt-[22px]" style={{ border: `1.5px solid ${borderColor}` }}>
<span
- className="absolute -left-[1.5px] -top-[1.5px] flex items-center gap-1 rounded-bl-none rounded-br-[12px] rounded-tl-[15px] rounded-tr-none px-[11px] pb-[4px] pt-[3px] font-geist text-[0.5625rem] font-extrabold uppercase tracking-[.05em] text-white"
+ className="absolute -start-[1.5px] -top-[1.5px] flex items-center gap-1 rounded-es-none rounded-ee-[12px] rounded-ss-[15px] rounded-se-none px-[11px] pb-[4px] pt-[3px] font-geist text-[0.5625rem] font-extrabold uppercase tracking-[.05em] text-white"
style={{ background: meta.color }}
>
<Icon size={10} strokeWidth={2.4} />
@@ -648,7 +648,7 @@ function ExpenseRow({ item, ctx, base, locale, t, canEdit, onEdit, onDelete, onT
</span>
{unfinished && (
<span
- className="absolute -right-[1.5px] -top-[1.5px] rounded-bl-[12px] rounded-br-none rounded-tl-none rounded-tr-[15px] px-[11px] pb-[4px] pt-[3px] font-geist text-[0.53125rem] font-extrabold uppercase tracking-[.03em] text-white"
+ className="absolute -end-[1.5px] -top-[1.5px] rounded-es-[12px] rounded-ee-none rounded-ss-none rounded-se-[15px] px-[11px] pb-[4px] pt-[3px] font-geist text-[0.53125rem] font-extrabold uppercase tracking-[.03em] text-white"
style={{ background: 'var(--m-st-pending)' }}
>
{t('costs.unfinished')}
@@ -688,7 +688,7 @@ function ExpenseRow({ item, ctx, base, locale, t, canEdit, onEdit, onDelete, onT
disabled={!canEdit}
aria-pressed={Boolean(m.paid)}
onClick={() => onTogglePaid(m.user_id, !m.paid)}
- className={`inline-flex items-center gap-1 rounded-full py-[2px] pl-[3px] pr-[7px] ${
+ className={`inline-flex items-center gap-1 rounded-full py-[2px] ps-[3px] pe-[7px] ${
m.paid ? 'border-2 border-[color:var(--m-st-confirmed)]' : 'border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)]'
}`}
>
@@ -734,7 +734,7 @@ function RowNote({ note }: { note: string }) {
type="button"
aria-expanded={open}
onClick={() => setOpen(v => !v)}
- className="mt-[7px] flex w-full items-center gap-[7px] rounded-xl bg-[color:var(--m-ic)] px-[9px] py-[6px] text-left"
+ className="mt-[7px] flex w-full items-center gap-[7px] rounded-xl bg-[color:var(--m-ic)] px-[9px] py-[6px] text-start"
>
<StickyNote size={11} strokeWidth={2} className="flex-none text-m-faint" />
<span className={`min-w-0 flex-1 text-[0.6875rem] leading-[1.5] text-m-muted ${open ? 'whitespace-pre-wrap [overflow-wrap:anywhere]' : 'truncate'}`}>
diff --git a/client/src/mobile/screens/trip/tabs/MDocSyncSheet.tsx b/client/src/mobile/screens/trip/tabs/MDocSyncSheet.tsx
index c2dc08487..df2c29aff 100644
--- a/client/src/mobile/screens/trip/tabs/MDocSyncSheet.tsx
+++ b/client/src/mobile/screens/trip/tabs/MDocSyncSheet.tsx
@@ -639,7 +639,7 @@ function ScopeView({
type="button"
onClick={() => void bind(s)}
disabled={working !== null}
- className="flex items-center gap-[10px] rounded-2xl border border-[color:var(--m-rowbr)] bg-m-sheetop px-3 py-[9px] text-left disabled:opacity-50"
+ className="flex items-center gap-[10px] rounded-2xl border border-[color:var(--m-rowbr)] bg-m-sheetop px-3 py-[9px] text-start disabled:opacity-50"
>
<span className="min-w-0 flex-1">
<span className="block truncate text-[0.78125rem] font-semibold text-m-ink">{s.label}</span>
@@ -679,7 +679,7 @@ function StoreRow({
<button
type="button"
onClick={onClick}
- className="flex items-center gap-[10px] rounded-2xl border border-[color:var(--m-rowbr)] bg-m-sheetop px-3 py-[9px] text-left"
+ className="flex items-center gap-[10px] rounded-2xl border border-[color:var(--m-rowbr)] bg-m-sheetop px-3 py-[9px] text-start"
>
<span className="flex h-9 w-9 flex-none items-center justify-center rounded-[10px] bg-[color:var(--m-ic)] text-m-ink">
{Icon ? <Icon className="h-4 w-4" /> : null}
@@ -742,7 +742,7 @@ function LaneRow({
onClick={onClick}
disabled={disabled}
aria-pressed={active}
- className={`flex h-11 items-center gap-[10px] overflow-hidden rounded-2xl px-3 text-left ${
+ className={`flex h-11 items-center gap-[10px] overflow-hidden rounded-2xl px-3 text-start ${
active ? 'bg-m-act text-m-actfg' : 'trek-docsync-lane-off-m bg-[color:var(--m-inner)] text-m-faint'
}`}
>
@@ -860,7 +860,7 @@ function MConflicts({
<button
type="button"
onClick={() => setOpen(v => !v)}
- className="flex w-full items-center justify-between gap-3 text-left"
+ className="flex w-full items-center justify-between gap-3 text-start"
>
{heading}
<span className="shrink-0 font-geist text-[0.6875rem] font-bold text-m-ink">
@@ -868,7 +868,7 @@ function MConflicts({
</span>
</button>
) : (
- <div className="flex w-full items-center justify-between gap-3 text-left">
+ <div className="flex w-full items-center justify-between gap-3 text-start">
{heading}
<span className="shrink-0 font-geist text-[0.6875rem] font-bold tabular-nums text-m-ink">{count}</span>
</div>
diff --git a/client/src/mobile/screens/trip/tabs/MFileLightbox.tsx b/client/src/mobile/screens/trip/tabs/MFileLightbox.tsx
index c17f350c8..58956b607 100644
--- a/client/src/mobile/screens/trip/tabs/MFileLightbox.tsx
+++ b/client/src/mobile/screens/trip/tabs/MFileLightbox.tsx
@@ -89,7 +89,7 @@ export default function MFileLightbox({ files, index, onIndexChange, onClose, t
<div role="presentation" className="flex flex-none items-center justify-between px-4 py-[10px]" onClick={e => e.stopPropagation()}>
<span className="min-w-0 flex-1 truncate font-geist text-[0.75rem] text-white/70">
{file.original_name}
- <span className="ml-2 text-white/40">{index + 1} / {files.length}</span>
+ <span className="ms-2 text-white/40">{index + 1} / {files.length}</span>
</span>
<div className="flex flex-none items-center gap-1">
<button
diff --git a/client/src/mobile/screens/trip/tabs/MFileLinkSheet.tsx b/client/src/mobile/screens/trip/tabs/MFileLinkSheet.tsx
index 2c16b94ee..16b220acb 100644
--- a/client/src/mobile/screens/trip/tabs/MFileLinkSheet.tsx
+++ b/client/src/mobile/screens/trip/tabs/MFileLinkSheet.tsx
@@ -171,7 +171,7 @@ function LinkRow({ icon: Icon, label, active, busy, onClick }: {
type="button"
onClick={onClick}
disabled={busy}
- className={`flex w-full items-center gap-[10px] rounded-[13px] border px-3 py-[10px] text-left disabled:opacity-60 ${
+ className={`flex w-full items-center gap-[10px] rounded-[13px] border px-3 py-[10px] text-start disabled:opacity-60 ${
active ? 'border-[color:var(--m-act)] bg-[color:var(--m-ic)]' : 'border-[color:var(--m-rowbr)] bg-m-card'
}`}
>
diff --git a/client/src/mobile/screens/trip/tabs/MFilesTab.tsx b/client/src/mobile/screens/trip/tabs/MFilesTab.tsx
index cd4d0f9b8..6239a570e 100644
--- a/client/src/mobile/screens/trip/tabs/MFilesTab.tsx
+++ b/client/src/mobile/screens/trip/tabs/MFilesTab.tsx
@@ -261,7 +261,7 @@ function FileRow({ file, planner, onOpen, onStar, onMenu }: {
return (
<div className="mt-2 flex items-center gap-[11px] rounded-2xl border border-[color:var(--m-rowbr)] bg-m-sheetop px-[11px] py-[10px]">
- <button type="button" onClick={onOpen} className="flex min-w-0 flex-1 items-center gap-[11px] text-left">
+ <button type="button" onClick={onOpen} className="flex min-w-0 flex-1 items-center gap-[11px] text-start">
<div
className="flex h-[42px] w-[42px] flex-none flex-col items-center justify-center gap-[2px] rounded-[13px]"
style={{ background: `${meta.color}22`, color: meta.color }}
@@ -283,7 +283,7 @@ function FileRow({ file, planner, onOpen, onStar, onMenu }: {
{formatFileDate(file.created_at, locale)}
</span>
{file.uploaded_by_name && (
- <span className="flex items-center gap-[3px] rounded-full bg-[color:var(--m-ic)] py-[2px] pl-[3px] pr-[7px]">
+ <span className="flex items-center gap-[3px] rounded-full bg-[color:var(--m-ic)] py-[2px] ps-[3px] pe-[7px]">
<span className="flex h-3 w-3 flex-none items-center justify-center rounded-full bg-m-act font-geist text-[0.40625rem] font-extrabold text-m-actfg">
{file.uploaded_by_name[0]?.toUpperCase()}
</span>
diff --git a/client/src/mobile/screens/trip/tabs/MPackItemSheet.tsx b/client/src/mobile/screens/trip/tabs/MPackItemSheet.tsx
index 930180fdf..57cb4861d 100644
--- a/client/src/mobile/screens/trip/tabs/MPackItemSheet.tsx
+++ b/client/src/mobile/screens/trip/tabs/MPackItemSheet.tsx
@@ -211,7 +211,7 @@ export default function MPackItemSheet({
key={m.id}
type="button"
onClick={() => toggleRecipient(m.id)}
- className="flex items-center gap-[8px] rounded-[9px] px-[8px] py-[7px] text-left"
+ className="flex items-center gap-[8px] rounded-[9px] px-[8px] py-[7px] text-start"
>
<span className="flex h-[22px] w-[22px] flex-none items-center justify-center overflow-hidden rounded-full bg-m-act text-[0.625rem] font-bold text-m-actfg">
{src ? <img src={src} alt="" className="h-full w-full object-cover" /> : m.username[0]?.toUpperCase()}
diff --git a/client/src/mobile/screens/trip/tabs/MPackingListTab.tsx b/client/src/mobile/screens/trip/tabs/MPackingListTab.tsx
index e6a9dc7f6..92849264d 100644
--- a/client/src/mobile/screens/trip/tabs/MPackingListTab.tsx
+++ b/client/src/mobile/screens/trip/tabs/MPackingListTab.tsx
@@ -289,7 +289,7 @@ export default function MPackingListTab({ planner }: { planner: TripPlanner }) {
<div className="flex items-baseline gap-[7px]">
<span className="font-geist text-[1rem] font-extrabold tabular-nums text-m-ink">{progress.checked}/{progress.total}</span>
<span className="font-geist text-[0.625rem] font-bold text-m-faint">{progress.pct}%</span>
- <div className="ml-auto flex items-center gap-[6px]">
+ <div className="ms-auto flex items-center gap-[6px]">
{bagTrackingEnabled && (
<button
type="button"
@@ -369,7 +369,7 @@ export default function MPackingListTab({ planner }: { planner: TripPlanner }) {
key={tmpl.id}
type="button"
onClick={() => applyTemplate(tmpl.id)}
- className="flex w-full items-center gap-[9px] rounded-[10px] px-[10px] py-[9px] text-left"
+ className="flex w-full items-center gap-[9px] rounded-[10px] px-[10px] py-[9px] text-start"
>
<Package size={14} strokeWidth={2} className="flex-none text-m-muted" />
<span className="min-w-0 flex-1">
@@ -571,7 +571,7 @@ function ActionRow({ icon: Icon, label, onClick, danger = false }: {
<button
type="button"
onClick={onClick}
- className={`flex w-full items-center gap-[9px] border-b border-[color:var(--m-rowbr)] px-[13px] py-[11px] text-left text-[0.78125rem] font-semibold last:border-b-0 ${
+ className={`flex w-full items-center gap-[9px] border-b border-[color:var(--m-rowbr)] px-[13px] py-[11px] text-start text-[0.78125rem] font-semibold last:border-b-0 ${
danger ? 'text-[color:var(--m-st-danger)]' : 'text-m-ink'
}`}
>
@@ -646,7 +646,7 @@ function PackingCategoryCard({
onClick={onToggle}
onKeyDown={e => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); onToggle() } }}
aria-expanded={open}
- className="flex w-full items-center gap-[8px] bg-[color:var(--m-ic)] px-[13px] py-[9px] text-left"
+ className="flex w-full items-center gap-[8px] bg-[color:var(--m-ic)] px-[13px] py-[9px] text-start"
>
<span className="h-[9px] w-[9px] flex-none rounded-full" style={{ background: dot }} />
{renaming ? (
@@ -957,11 +957,11 @@ function PackingItemRow({ item, planner, currentUserId, editMode, canEdit, bagTr
</div>
{menuOpen && editMode && canEdit && (
- <div className="mb-[6px] ml-[28px] overflow-hidden rounded-[13px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-glass)] backdrop-blur-[24px]">
+ <div className="mb-[6px] ms-[28px] overflow-hidden rounded-[13px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-glass)] backdrop-blur-[24px]">
<button
type="button"
onClick={() => { setMenuOpen(false); onEdit() }}
- className="flex w-full items-center gap-[9px] border-b border-[color:var(--m-rowbr)] px-3 py-2 text-left text-[0.75rem] font-medium text-m-ink"
+ className="flex w-full items-center gap-[9px] border-b border-[color:var(--m-rowbr)] px-3 py-2 text-start text-[0.75rem] font-medium text-m-ink"
>
<Pencil size={12} strokeWidth={2} />
{t('common.edit')}
@@ -969,7 +969,7 @@ function PackingItemRow({ item, planner, currentUserId, editMode, canEdit, bagTr
<button
type="button"
onClick={() => { setMenuOpen(false); onDelete() }}
- className="flex w-full items-center gap-[9px] px-3 py-2 text-left text-[0.75rem] font-medium text-[color:var(--m-st-danger)]"
+ className="flex w-full items-center gap-[9px] px-3 py-2 text-start text-[0.75rem] font-medium text-[color:var(--m-st-danger)]"
>
<Trash2 size={12} strokeWidth={2} />
{t('common.delete')}
@@ -978,13 +978,13 @@ function PackingItemRow({ item, planner, currentUserId, editMode, canEdit, bagTr
)}
{bagPickerOpen && bagTrackingEnabled && (
- <div className="mb-[6px] ml-[28px] overflow-hidden rounded-[13px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-glass)] backdrop-blur-[24px]">
- <button type="button" onClick={() => assignBag(null)} className="flex w-full items-center gap-[9px] border-b border-[color:var(--m-rowbr)] px-3 py-2 text-left text-[0.75rem] font-medium text-m-muted">
+ <div className="mb-[6px] ms-[28px] overflow-hidden rounded-[13px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-glass)] backdrop-blur-[24px]">
+ <button type="button" onClick={() => assignBag(null)} className="flex w-full items-center gap-[9px] border-b border-[color:var(--m-rowbr)] px-3 py-2 text-start text-[0.75rem] font-medium text-m-muted">
<span className="h-[9px] w-[9px] flex-none rounded-full border border-dashed border-[color:var(--m-faint)]" />
{t('packing.noBag')}
</button>
{bags.map(b => (
- <button key={b.id} type="button" onClick={() => assignBag(b.id)} className="flex w-full items-center gap-[9px] border-b border-[color:var(--m-rowbr)] px-3 py-2 text-left text-[0.75rem] font-medium text-m-ink">
+ <button key={b.id} type="button" onClick={() => assignBag(b.id)} className="flex w-full items-center gap-[9px] border-b border-[color:var(--m-rowbr)] px-3 py-2 text-start text-[0.75rem] font-medium text-m-ink">
<span className="h-[9px] w-[9px] flex-none rounded-full" style={{ background: b.color }} />
{b.name}
</button>
@@ -1005,7 +1005,7 @@ function PackingItemRow({ item, planner, currentUserId, editMode, canEdit, bagTr
</button>
</div>
) : (
- <button type="button" onClick={() => setCreatingBag(true)} className="flex w-full items-center gap-[7px] px-3 py-2 text-left font-geist text-[0.6875rem] font-semibold text-m-muted">
+ <button type="button" onClick={() => setCreatingBag(true)} className="flex w-full items-center gap-[7px] px-3 py-2 text-start font-geist text-[0.6875rem] font-semibold text-m-muted">
<Plus size={11} strokeWidth={2.2} />
{t('packing.addBag')}
</button>
diff --git a/client/src/mobile/screens/trip/tabs/MTodoListTab.tsx b/client/src/mobile/screens/trip/tabs/MTodoListTab.tsx
index 8f0d38fd2..17a384c78 100644
--- a/client/src/mobile/screens/trip/tabs/MTodoListTab.tsx
+++ b/client/src/mobile/screens/trip/tabs/MTodoListTab.tsx
@@ -86,7 +86,7 @@ export default function MTodoListTab({ planner }: { planner: TripPlanner }) {
<button
type="button"
onClick={openCreate}
- className="ml-auto flex items-center gap-1 rounded-full bg-m-act px-[12px] py-[5px] text-[0.6875rem] font-semibold text-m-actfg"
+ className="ms-auto flex items-center gap-1 rounded-full bg-m-act px-[12px] py-[5px] text-[0.6875rem] font-semibold text-m-actfg"
>
<Plus size={11} strokeWidth={2.4} />
{t('todo.newItem')}
@@ -214,7 +214,7 @@ function TaskCard({ item, members, today, onToggle, onOpen }: {
<Check size={12} strokeWidth={3} />
</button>
- <button type="button" onClick={() => onOpen(item.id)} className="flex min-w-0 flex-1 items-start gap-[8px] text-left">
+ <button type="button" onClick={() => onOpen(item.id)} className="flex min-w-0 flex-1 items-start gap-[8px] text-start">
<div className="min-w-0 flex-1">
<div className={`truncate text-[0.8125rem] font-semibold ${done ? 'text-m-faint line-through opacity-45' : 'text-m-ink'}`}>
{item.name}
@@ -241,7 +241,7 @@ function TaskCard({ item, members, today, onToggle, onOpen }: {
</span>
)}
{assignee && (
- <span className="inline-flex items-center gap-[4px] rounded-full bg-[color:var(--m-ic)] py-[2px] pl-[3px] pr-2 font-geist text-[0.59375rem] font-bold text-m-muted">
+ <span className="inline-flex items-center gap-[4px] rounded-full bg-[color:var(--m-ic)] py-[2px] ps-[3px] pe-2 font-geist text-[0.59375rem] font-bold text-m-muted">
<span className="flex h-[13px] w-[13px] flex-none items-center justify-center overflow-hidden rounded-full bg-m-act text-[0.4375rem] font-extrabold text-m-actfg">
{avatarSrcUrl ? <img src={avatarSrcUrl} alt="" className="h-full w-full object-cover" /> : assignee.username[0]?.toUpperCase()}
</span>
diff --git a/client/src/mobile/screens/trip/tabs/MTransportsTab.tsx b/client/src/mobile/screens/trip/tabs/MTransportsTab.tsx
index 3840fb8ec..fb2d1a62c 100644
--- a/client/src/mobile/screens/trip/tabs/MTransportsTab.tsx
+++ b/client/src/mobile/screens/trip/tabs/MTransportsTab.tsx
@@ -177,7 +177,7 @@ function TransportCard({ res, planner, shell, canEdit, compact }: {
<button
type="button"
onClick={openDetail}
- className="flex min-w-0 flex-1 items-center gap-[7px] text-left"
+ className="flex min-w-0 flex-1 items-center gap-[7px] text-start"
>
<span className="inline-flex flex-none items-center gap-1 rounded-full border border-[color:var(--m-rowbr)] bg-m-card px-2 py-[2px] font-geist text-[0.5625rem] font-bold uppercase tracking-[.06em] text-m-muted">
<TypeIcon size={10} strokeWidth={2.2} style={{ color: typeColor }} />
@@ -216,7 +216,7 @@ function TransportCard({ res, planner, shell, canEdit, compact }: {
control instead of a click handler buried inside the card button. */}
{!compact && (
<div className="px-3 pb-3 pt-[9px]">
- <button type="button" onClick={openDetail} className="block w-full text-left">
+ <button type="button" onClick={openDetail} className="block w-full text-start">
<div className="flex gap-2">
<Field label={t('reservations.date')} className="flex-[1.4]">{dayValue}</Field>
<Field label={t('reservations.time')} className="flex-1" tabular>{timeValue}</Field>
@@ -232,7 +232,7 @@ function TransportCard({ res, planner, shell, canEdit, compact }: {
/>
)}
- <button type="button" onClick={openDetail} className="block w-full text-left">
+ <button type="button" onClick={openDetail} className="block w-full text-start">
{eps.length >= 2 && (
<div className="mt-2 flex flex-wrap items-center justify-center gap-2 rounded-[10px] border border-[color:var(--m-rowbr)] bg-m-card px-[10px] py-2 text-[0.71875rem] font-semibold text-m-ink">
{eps.map((ep, i) => (
diff --git a/client/src/mobile/screens/trip/tabs/tabChrome.tsx b/client/src/mobile/screens/trip/tabs/tabChrome.tsx
index 3c1ebe86b..274df40d2 100644
--- a/client/src/mobile/screens/trip/tabs/tabChrome.tsx
+++ b/client/src/mobile/screens/trip/tabs/tabChrome.tsx
@@ -48,16 +48,16 @@ export function SectionHeader({ label, count, open, onToggle }: {
type="button"
onClick={onToggle}
aria-expanded={open}
- className="mb-[2px] mt-[15px] flex w-full items-center gap-[7px] px-[2px] text-left"
+ className="mb-[2px] mt-[15px] flex w-full items-center gap-[7px] px-[2px] text-start"
>
<span className="font-geist text-[0.625rem] font-bold uppercase tracking-[.09em] text-m-faint">
{label}
</span>
{count != null && <CountPill>{count}</CountPill>}
{open ? (
- <ChevronUp size={13} strokeWidth={2} className="ml-auto flex-none text-m-faint" />
+ <ChevronUp size={13} strokeWidth={2} className="ms-auto flex-none text-m-faint" />
) : (
- <ChevronDown size={13} strokeWidth={2} className="ml-auto flex-none text-m-faint" />
+ <ChevronDown size={13} strokeWidth={2} className="ms-auto flex-none text-m-faint" />
)}
</button>
)
@@ -175,7 +175,7 @@ export function TravelerAvatars({ travelers, label }: {
return (
<span
key={tv.user_id}
- className="flex items-center gap-[6px] rounded-full border border-[color:var(--m-rowbr)] bg-m-card py-[3px] pl-[3px] pr-[10px]"
+ className="flex items-center gap-[6px] rounded-full border border-[color:var(--m-rowbr)] bg-m-card py-[3px] ps-[3px] pe-[10px]"
>
<span className="flex h-[20px] w-[20px] flex-none items-center justify-center overflow-hidden rounded-full bg-m-act text-[0.5625rem] font-extrabold text-m-actfg">
{src ? <img src={src} alt="" className="h-full w-full object-cover" /> : tv.username?.[0]?.toUpperCase()}
diff --git a/client/src/mobile/screens/vacay/MVacay.tsx b/client/src/mobile/screens/vacay/MVacay.tsx
index f13ba4501..0772ac22c 100644
--- a/client/src/mobile/screens/vacay/MVacay.tsx
+++ b/client/src/mobile/screens/vacay/MVacay.tsx
@@ -48,7 +48,7 @@ export default function MVacay() {
// h-dvh, not h-full: the shell stopped providing a definite height (#1809).
<div className="relative h-dvh">
{/* Header */}
- <div className="absolute left-4 right-4 z-[5] flex items-center gap-2 top-[var(--m-safe-top,12px)]">
+ <div className="absolute inset-x-4 z-[5] flex items-center gap-2 top-[var(--m-safe-top,12px)]">
<MIconBtn onClick={() => v.setSheet('invite')} ariaLabel={t('vacay.inviteUser')}>
<UserPlus size={16} strokeWidth={2} className="text-m-muted" />
</MIconBtn>
@@ -378,7 +378,7 @@ function MVacayIncomingInvite({ invites, onAccept, onDecline }: {
<div className="mt-1 font-geist text-[0.75rem] text-m-muted">
<span className="font-bold text-m-ink">{inv.owner_username}</span> {t('vacay.inviteWantsToFuse')}
</div>
- <div className="mt-3 flex flex-col gap-[6px] text-left">
+ <div className="mt-3 flex flex-col gap-[6px] text-start">
<FuseInfo icon={Eye} text={t('vacay.fuseInfo1')} />
<FuseInfo icon={Pencil} text={t('vacay.fuseInfo2')} />
<FuseInfo icon={Trash2} text={t('vacay.fuseInfo3')} />
diff --git a/client/src/mobile/screens/vacay/MVacayInviteSheet.tsx b/client/src/mobile/screens/vacay/MVacayInviteSheet.tsx
index fb7060eb6..07a39f3cd 100644
--- a/client/src/mobile/screens/vacay/MVacayInviteSheet.tsx
+++ b/client/src/mobile/screens/vacay/MVacayInviteSheet.tsx
@@ -76,7 +76,7 @@ export default function MVacayInviteSheet({ open, onClose }: MVacayInviteSheetPr
onClick={() => setPickerOpen(o => !o)}
className="flex w-full items-center gap-[9px] rounded-[14px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-[14px] py-3 text-[0.8125rem] font-semibold"
>
- <span className={`min-w-0 flex-1 truncate text-left ${selectedUser ? '' : 'text-m-muted'}`}>
+ <span className={`min-w-0 flex-1 truncate text-start ${selectedUser ? '' : 'text-m-muted'}`}>
{selectedUser ? selectedUser.username : t('vacay.selectUser')}
</span>
<ChevronDown size={14} strokeWidth={2} className="flex-none text-m-faint" />
@@ -88,7 +88,7 @@ export default function MVacayInviteSheet({ open, onClose }: MVacayInviteSheetPr
key={u.id}
type="button"
onClick={() => { setSelected(u.id); setPickerOpen(false) }}
- className={`flex w-full items-center gap-[9px] rounded-[10px] px-[10px] py-[9px] text-left text-[0.8125rem] font-semibold ${
+ className={`flex w-full items-center gap-[9px] rounded-[10px] px-[10px] py-[9px] text-start text-[0.8125rem] font-semibold ${
u.id === selected ? 'bg-[color:var(--m-ic)]' : ''
}`}
>
@@ -124,7 +124,7 @@ export default function MVacayInviteSheet({ open, onClose }: MVacayInviteSheetPr
<button
type="button"
onClick={onClose}
- className="ml-auto rounded-full border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-4 py-[9px] text-[0.78125rem] font-semibold"
+ className="ms-auto rounded-full border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-4 py-[9px] text-[0.78125rem] font-semibold"
>
{t('common.cancel')}
</button>
diff --git a/client/src/mobile/screens/vacay/MVacayMonth.tsx b/client/src/mobile/screens/vacay/MVacayMonth.tsx
index a73e381eb..51ac21623 100644
--- a/client/src/mobile/screens/vacay/MVacayMonth.tsx
+++ b/client/src/mobile/screens/vacay/MVacayMonth.tsx
@@ -67,7 +67,7 @@ export default function MVacayMonth({
<span
aria-hidden
className={`absolute rounded-full ${
- mini ? 'right-[2px] top-[2px] h-[3px] w-[3px]' : 'right-[4px] top-[4px] h-[5px] w-[5px]'
+ mini ? 'end-[2px] top-[2px] h-[3px] w-[3px]' : 'end-[4px] top-[4px] h-[5px] w-[5px]'
}`}
style={{ background: tripDotColor }}
/>
@@ -76,7 +76,7 @@ export default function MVacayMonth({
<span
aria-hidden
className={`absolute rounded-full ${
- mini ? 'right-[2px] bottom-[2px] h-[3px] w-[3px]' : 'right-[4px] bottom-[4px] h-[5px] w-[5px]'
+ mini ? 'end-[2px] bottom-[2px] h-[3px] w-[3px]' : 'end-[4px] bottom-[4px] h-[5px] w-[5px]'
}`}
style={{ background: '#f97316' }}
/>
diff --git a/client/src/mobile/screens/vacay/MVacaySettingsSheet.tsx b/client/src/mobile/screens/vacay/MVacaySettingsSheet.tsx
index 4a74013d4..087f3b0e1 100644
--- a/client/src/mobile/screens/vacay/MVacaySettingsSheet.tsx
+++ b/client/src/mobile/screens/vacay/MVacaySettingsSheet.tsx
@@ -90,10 +90,10 @@ export default function MVacaySettingsSheet({ open, onClose }: MVacaySettingsShe
</div>
{plan.block_weekends !== false && (
<>
- <div className="mb-[6px] ml-7 mt-[2px] font-geist text-[0.625rem] font-bold uppercase tracking-[.06em] text-m-faint">
+ <div className="mb-[6px] ms-7 mt-[2px] font-geist text-[0.625rem] font-bold uppercase tracking-[.06em] text-m-faint">
{t('vacay.weekendDays')}
</div>
- <div className="mb-[6px] ml-7 flex gap-1">
+ <div className="mb-[6px] ms-7 flex gap-1">
{weekdayChips.map(({ day, label }) => {
const active = weekendDays.includes(day)
return (
@@ -324,7 +324,7 @@ function YearTypeRows() {
<div className="font-geist text-[0.65625rem] text-m-muted">{t('vacay.yearTypeHint')}</div>
</div>
</div>
- <div className="ml-7 flex gap-1">
+ <div className="ms-7 flex gap-1">
{([
{ value: 'calendar', label: t('vacay.yearTypeCalendar') },
{ value: 'fiscal', label: t('vacay.yearTypeFiscal') },
@@ -344,7 +344,7 @@ function YearTypeRows() {
</div>
{type === 'fiscal' && (
- <div className="ml-7 flex gap-2">
+ <div className="ms-7 flex gap-2">
<span className="min-w-0 flex-1">
<SelectRow
value={String(yearSettings.year_start_month)}
@@ -365,7 +365,7 @@ function YearTypeRows() {
)}
{type === 'anniversary' && (
- <div className="ml-7">
+ <div className="ms-7">
<input
type="date"
value={yearSettings.hire_date || ''}
@@ -376,7 +376,7 @@ function YearTypeRows() {
</div>
)}
- <div className="ml-7 mt-[6px] font-geist text-[0.625rem] text-m-faint">
+ <div className="ms-7 mt-[6px] font-geist text-[0.625rem] text-m-faint">
{t('vacay.yearWindow', { year: selectedYear, window: windowLabel })}
</div>
</>
@@ -428,7 +428,7 @@ function ColorSwatch({ color, onPick }: { color: string; onPick: (color: string)
style={{ background: color }}
/>
{openPalette && (
- <span className="absolute left-0 top-[32px] z-10 grid w-[124px] grid-cols-4 gap-1 rounded-xl border border-[color:var(--m-rowbr)] bg-[color:var(--m-sheetop)] p-2 shadow-[0_8px_24px_rgba(0,0,0,.12)]">
+ <span className="absolute start-0 top-[32px] z-10 grid w-[124px] grid-cols-4 gap-1 rounded-xl border border-[color:var(--m-rowbr)] bg-[color:var(--m-sheetop)] p-2 shadow-[0_8px_24px_rgba(0,0,0,.12)]">
{CALENDAR_COLORS.map(c => (
<button
key={c}
diff --git a/client/src/mobile/screens/vacay/MVacayShareSheet.tsx b/client/src/mobile/screens/vacay/MVacayShareSheet.tsx
index 53f99c7f9..f116729ee 100644
--- a/client/src/mobile/screens/vacay/MVacayShareSheet.tsx
+++ b/client/src/mobile/screens/vacay/MVacayShareSheet.tsx
@@ -79,7 +79,7 @@ export default function MVacayShareSheet({ open, onClose }: MVacayShareSheetProp
onClick={() => setPickerOpen(o => !o)}
className="flex min-w-0 flex-1 items-center gap-[9px] rounded-[14px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-[14px] py-3 text-[0.8125rem] font-semibold"
>
- <span className={`min-w-0 flex-1 truncate text-left ${selectedUser ? '' : 'text-m-muted'}`}>
+ <span className={`min-w-0 flex-1 truncate text-start ${selectedUser ? '' : 'text-m-muted'}`}>
{selectedUser ? selectedUser.username : t('vacay.selectUser')}
</span>
<ChevronDown size={14} strokeWidth={2} className="flex-none text-m-faint" />
@@ -101,7 +101,7 @@ export default function MVacayShareSheet({ open, onClose }: MVacayShareSheetProp
key={u.id}
type="button"
onClick={() => { setSelected(u.id); setPickerOpen(false) }}
- className={`flex w-full items-center gap-[9px] rounded-[10px] px-[10px] py-[9px] text-left text-[0.8125rem] font-semibold ${
+ className={`flex w-full items-center gap-[9px] rounded-[10px] px-[10px] py-[9px] text-start text-[0.8125rem] font-semibold ${
u.id === selected ? 'bg-[color:var(--m-ic)]' : ''
}`}
>
diff --git a/client/src/pages/AtlasPage.tsx b/client/src/pages/AtlasPage.tsx
index 3354bd3fc..48275c7a4 100644
--- a/client/src/pages/AtlasPage.tsx
+++ b/client/src/pages/AtlasPage.tsx
@@ -96,7 +96,7 @@ function AtlasPageDesktop(): React.ReactElement {
return (
<div className="h-screen overflow-hidden bg-surface">
<Navbar />
- <div style={{ position: 'fixed', top: 'var(--nav-h)', left: 0, right: 0, bottom: 'env(safe-area-inset-bottom, 0px)' }}>
+ <div style={{ position: 'fixed', top: 'var(--nav-h)', insetInline: 0, bottom: 'env(safe-area-inset-bottom, 0px)' }}>
{/* Map */}
<div ref={mapRef} style={{ position: 'absolute', inset: 0, zIndex: 1, background: dark ? '#1a1a2e' : '#f0f0f0' }} />
@@ -155,7 +155,7 @@ function AtlasPageDesktop(): React.ReactElement {
)}
{/* Mobile: Bottom bar */}
- <div className="md:hidden absolute left-0 right-0 z-10 flex justify-center" style={{ bottom: 'calc(84px + env(safe-area-inset-bottom, 0px) + 8px)', touchAction: 'manipulation' }}>
+ <div className="md:hidden absolute inset-x-0 z-10 flex justify-center" style={{ bottom: 'calc(84px + env(safe-area-inset-bottom, 0px) + 8px)', touchAction: 'manipulation' }}>
<div className="flex items-center gap-4 px-5 py-4 rounded-2xl"
style={{ background: dark ? 'rgba(0,0,0,0.45)' : 'rgba(255,255,255,0.5)', backdropFilter: 'blur(16px)' }}>
{/* Countries highlighted */}
@@ -180,8 +180,7 @@ function AtlasPageDesktop(): React.ReactElement {
className="hidden md:grid absolute z-10 items-stretch"
style={{
bottom: 16,
- left: 20,
- right: 20,
+ insetInline: 20,
gridTemplateColumns: '1fr auto 1fr',
alignItems: 'stretch',
gap: 12,
@@ -462,7 +461,7 @@ function CountryChoice({ icon: Icon, tone = 'text-content-secondary', title, hin
<button
type="button"
onClick={onClick}
- className="group flex w-full items-center gap-3 rounded-[14px] border border-edge-faint bg-surface-card px-3 py-2.5 text-left transition-colors hover:bg-surface-hover"
+ className="group flex w-full items-center gap-3 rounded-[14px] border border-edge-faint bg-surface-card px-3 py-2.5 text-start transition-colors hover:bg-surface-hover"
>
<span className={`grid h-9 w-9 flex-none place-items-center rounded-[10px] bg-surface-tertiary transition-colors group-hover:bg-surface-card ${tone}`}>
<Icon size={16} strokeWidth={1.9} />
@@ -627,7 +626,7 @@ function SidebarContent({ data, stats, regionsVisited, countryRegions, onOpenPla
)}
<button type="button" onClick={() => onDeleteBucket(item.id)}
className="opacity-0 group-hover:opacity-100"
- style={{ position: 'absolute', top: 4, right: 4, background: 'none', border: 'none', cursor: 'pointer', padding: 2, color: tf, display: 'flex', transition: 'opacity 0.15s' }}>
+ style={{ position: 'absolute', top: 4, insetInlineEnd: 4, background: 'none', border: 'none', cursor: 'pointer', padding: 2, color: tf, display: 'flex', transition: 'opacity 0.15s' }}>
<X size={10} />
</button>
</div>
@@ -689,7 +688,7 @@ function SidebarContent({ data, stats, regionsVisited, countryRegions, onOpenPla
zIndex: 99999, borderRadius: 8, boxShadow: '0 4px 12px rgba(0,0,0,0.12)', overflowY: 'auto',
}}>
{bucketSearchResults.slice(0, 6).map((r, i) => (
- <button type="button" key={i} onClick={() => onSelectBucketPoi(r)} className="border-b border-edge-faint" style={{ display: 'flex', flexDirection: 'column', gap: 1, width: '100%', padding: '6px 10px', borderTop: 'none', borderLeft: 'none', borderRight: 'none', background: 'none', cursor: 'pointer', textAlign: 'left', fontFamily: 'inherit' }}>
+ <button type="button" key={i} onClick={() => onSelectBucketPoi(r)} className="border-b border-edge-faint" style={{ display: 'flex', flexDirection: 'column', gap: 1, width: '100%', padding: '6px 10px', borderTop: 'none', borderInline: 'none', background: 'none', cursor: 'pointer', textAlign: 'start', fontFamily: 'inherit' }}>
<span className="text-content" style={{ fontSize: 'calc(12px * var(--fs-scale-body, 1))', fontWeight: 500 }}>{r.name}</span>
{r.address && <span className="text-content-faint" style={{ fontSize: 'calc(10px * var(--fs-scale-caption, 1))' }}>{r.address}</span>}
</button>
@@ -826,7 +825,7 @@ function SidebarContent({ data, stats, regionsVisited, countryRegions, onOpenPla
<p className="text-sm font-bold" style={{ color: tp }}>
{resolveName(selectedCountry)}
{countryDetail.status && countryDetail.status !== 'visited' && (
- <span className="ml-2 text-[9px] font-semibold uppercase tracking-wide" style={{ color: tf }}>{t('atlas.planned')}</span>
+ <span className="ms-2 text-[9px] font-semibold uppercase tracking-wide" style={{ color: tf }}>{t('atlas.planned')}</span>
)}
</p>
{/* Counts as quiet badges, the regions among them once any is visited (#1639). */}
diff --git a/client/src/pages/ForgotPasswordPage.tsx b/client/src/pages/ForgotPasswordPage.tsx
index 474f301d8..95e15e106 100644
--- a/client/src/pages/ForgotPasswordPage.tsx
+++ b/client/src/pages/ForgotPasswordPage.tsx
@@ -4,7 +4,7 @@ import { useTranslation } from '../i18n'
import { useForgotPassword } from './forgotPassword/useForgotPassword'
const inputBase: React.CSSProperties = {
- width: '100%', padding: '11px 12px 11px 38px', borderRadius: 12,
+ width: '100%', paddingBlock: 11, paddingInlineEnd: 12, paddingInlineStart: 38, borderRadius: 12,
border: '1px solid #e5e7eb', fontSize: 'calc(14px * var(--fs-scale-body, 1))', fontFamily: 'inherit',
outline: 'none', transition: 'border-color 120ms',
background: 'white', color: '#111827',
@@ -52,7 +52,7 @@ function ForgotPasswordPage() {
<div style={{
marginTop: 18, padding: '12px 14px',
background: '#fffbeb', border: '1px solid #fde68a',
- borderRadius: 10, textAlign: 'left',
+ borderRadius: 10, textAlign: 'start',
display: 'flex', alignItems: 'flex-start', gap: 10,
}}>
<Terminal size={16} className="text-[#92400e]" style={{ marginTop: 1, flexShrink: 0 }} />
@@ -93,7 +93,7 @@ function ForgotPasswordPage() {
{t('common.email')}
</label>
<div style={{ position: 'relative' }}>
- <Mail size={15} className="text-[#9ca3af]" style={{ position: 'absolute', left: 13, top: '50%', transform: 'translateY(-50%)', pointerEvents: 'none' }} />
+ <Mail size={15} className="text-[#9ca3af]" style={{ position: 'absolute', insetInlineStart: 13, top: '50%', transform: 'translateY(-50%)', pointerEvents: 'none' }} />
<input
type="email" value={email}
onChange={(e: ChangeEvent<HTMLInputElement>) => setEmail(e.target.value)}
diff --git a/client/src/pages/HelpPage.test.tsx b/client/src/pages/HelpPage.test.tsx
index d902b7c4e..c3281f5b4 100644
--- a/client/src/pages/HelpPage.test.tsx
+++ b/client/src/pages/HelpPage.test.tsx
@@ -80,7 +80,7 @@ describe('HelpPage', () => {
const inactive = screen.getByRole('link', { name: 'FAQ' })
expect(inactive.className).toContain('text-content-secondary')
- expect(inactive.querySelector('span')?.className).toContain('pl-[18px]')
+ expect(inactive.querySelector('span')?.className).toContain('ps-[18px]')
})
it('FE-PAGE-HELPUI-003: typing in the search box reports the query upwards', () => {
diff --git a/client/src/pages/HelpPage.tsx b/client/src/pages/HelpPage.tsx
index 9490eb897..30b46a314 100644
--- a/client/src/pages/HelpPage.tsx
+++ b/client/src/pages/HelpPage.tsx
@@ -16,12 +16,12 @@ export default function HelpPage() {
const nav = (
<nav className="flex flex-col gap-5">
<div className="relative">
- <Search size={14} className="absolute left-3 top-1/2 -translate-y-1/2 text-content-faint" />
+ <Search size={14} className="absolute start-3 top-1/2 -translate-y-1/2 text-content-faint" />
<input
value={query}
onChange={(e) => setQuery(e.target.value)}
placeholder={t('help.search')}
- className="w-full bg-surface-tertiary text-content rounded-lg pl-9 pr-3 py-2 text-[13px] outline-none border border-transparent focus:border-edge"
+ className="w-full bg-surface-tertiary text-content rounded-lg ps-9 pe-3 py-2 text-[13px] outline-none border border-transparent focus:border-edge"
/>
</div>
{filtered.map((section) => (
@@ -45,7 +45,7 @@ export default function HelpPage() {
}`}
>
{active && <ChevronRight size={13} className="shrink-0" />}
- <span className={active ? '' : 'pl-[18px]'}>{p.title}</span>
+ <span className={active ? '' : 'ps-[18px]'}>{p.title}</span>
</Link>
)
})}
@@ -61,7 +61,7 @@ export default function HelpPage() {
<div className="max-w-[1600px] mx-auto px-4 lg:px-10 py-6 flex gap-10">
{/* Desktop sidebar */}
<aside className="hidden lg:block w-[260px] shrink-0">
- <div className="sticky top-[calc(var(--nav-h,56px)+24px)] max-h-[calc(100vh-var(--nav-h,56px)-48px)] overflow-y-auto pr-1">
+ <div className="sticky top-[calc(var(--nav-h,56px)+24px)] max-h-[calc(100vh-var(--nav-h,56px)-48px)] overflow-y-auto pe-1">
<div className="flex items-center gap-2 mb-4 px-2">
<BookOpen size={16} className="text-accent" />
<span className="text-[14px] font-bold text-content">{t('help.title')}</span>
@@ -103,7 +103,7 @@ export default function HelpPage() {
<div className="lg:hidden fixed inset-0 z-[120]" role="presentation" onClick={() => setNavOpen(false)}>
<div className="absolute inset-0 bg-black/40" />
<div
- className="absolute left-0 top-0 bottom-0 w-[280px] bg-surface-card p-5 overflow-y-auto shadow-xl"
+ className="absolute start-0 top-0 bottom-0 w-[280px] bg-surface-card p-5 overflow-y-auto shadow-xl"
role="presentation"
onClick={(e) => e.stopPropagation()}
>
@@ -154,8 +154,8 @@ function WikiContent({ markdown }: { markdown: string }) {
h3: ({ children }) => <h3 id={headingId(children)} className="text-[15.5px] font-semibold text-content mt-6 mb-2 scroll-mt-24">{children}</h3>,
h4: ({ children }) => <h4 id={headingId(children)} className="text-[14px] font-semibold text-content mt-5 mb-2 scroll-mt-24">{children}</h4>,
p: ({ children }) => <p className="text-[14px] text-content-secondary leading-[1.7] my-3">{children}</p>,
- ul: ({ children }) => <ul className="list-disc pl-5 my-3 space-y-1.5 text-[14px] text-content-secondary">{children}</ul>,
- ol: ({ children }) => <ol className="list-decimal pl-5 my-3 space-y-1.5 text-[14px] text-content-secondary">{children}</ol>,
+ ul: ({ children }) => <ul className="list-disc ps-5 my-3 space-y-1.5 text-[14px] text-content-secondary">{children}</ul>,
+ ol: ({ children }) => <ol className="list-decimal ps-5 my-3 space-y-1.5 text-[14px] text-content-secondary">{children}</ol>,
li: ({ children }) => <li className="leading-[1.6]">{children}</li>,
a: ({ href, children }) => {
const url = href ?? ''
@@ -181,7 +181,7 @@ function WikiContent({ markdown }: { markdown: string }) {
</pre>
),
blockquote: ({ children }) => (
- <blockquote className="border-l-3 border-accent bg-accent-subtle/40 rounded-r-lg px-4 py-1 my-4 text-content-secondary">
+ <blockquote className="border-s-3 border-accent bg-accent-subtle/40 rounded-e-lg px-4 py-1 my-4 text-content-secondary">
{children}
</blockquote>
),
@@ -191,7 +191,7 @@ function WikiContent({ markdown }: { markdown: string }) {
</div>
),
th: ({ children }) => (
- <th className="text-left font-semibold text-content border border-edge-secondary px-3 py-2 bg-surface-tertiary">
+ <th className="text-start font-semibold text-content border border-edge-secondary px-3 py-2 bg-surface-tertiary">
{children}
</th>
),
diff --git a/client/src/pages/InAppNotificationsPage.tsx b/client/src/pages/InAppNotificationsPage.tsx
index 294badbc4..b9d81235f 100644
--- a/client/src/pages/InAppNotificationsPage.tsx
+++ b/client/src/pages/InAppNotificationsPage.tsx
@@ -31,7 +31,7 @@ function InAppNotificationsPageDesktop(): React.ReactElement {
<h1 className="text-xl font-semibold text-content">
{t('notifications.title')}
{unreadCount > 0 && (
- <span className="ml-2 px-2 py-0.5 rounded-full text-xs font-medium align-middle inline-flex items-center justify-center bg-content text-surface">
+ <span className="ms-2 px-2 py-0.5 rounded-full text-xs font-medium align-middle inline-flex items-center justify-center bg-content text-surface">
{unreadCount}
</span>
)}
diff --git a/client/src/pages/JourneyDetailPage.tsx b/client/src/pages/JourneyDetailPage.tsx
index fc2b272b1..af1fbc9a2 100644
--- a/client/src/pages/JourneyDetailPage.tsx
+++ b/client/src/pages/JourneyDetailPage.tsx
@@ -188,7 +188,7 @@ function JourneyDetailPageDesktop() {
back | tabs+title | book export, suggestions, settings */}
{isMobileChromeless && (
<div
- className="fixed left-0 right-0 z-30 flex items-start justify-between gap-2 px-4"
+ className="fixed inset-x-0 z-30 flex items-start justify-between gap-2 px-4"
style={{ top: 'calc(var(--nav-h, 56px) + 12px)' }}
>
<button type="button"
@@ -333,7 +333,7 @@ function JourneyDetailPageDesktop() {
>
{hideSkeletons ? <EyeOff size={14} /> : <Eye size={14} />}
</button>
- <span className="absolute top-full mt-2 right-0 px-2 py-1 rounded-md bg-zinc-900 dark:bg-zinc-100 text-white dark:text-zinc-900 text-[11px] font-medium whitespace-nowrap opacity-0 pointer-events-none group-hover:opacity-100 transition-opacity">
+ <span className="absolute top-full mt-2 end-0 px-2 py-1 rounded-md bg-zinc-900 dark:bg-zinc-100 text-white dark:text-zinc-900 text-[11px] font-medium whitespace-nowrap opacity-0 pointer-events-none group-hover:opacity-100 transition-opacity">
{skeletonLabel}
</span>
</div>
@@ -515,7 +515,7 @@ function JourneyDetailPageDesktop() {
feed misaligned with the day header above it. Shown on
hover, since they are for the one card you are working on. */}
{canReorder && (
- <div className="absolute right-full top-1/2 mr-1.5 flex -translate-y-1/2 flex-col gap-1 opacity-0 transition-opacity duration-150 group-hover:opacity-100 focus-within:opacity-100">
+ <div className="absolute end-full top-1/2 me-1.5 flex -translate-y-1/2 flex-col gap-1 opacity-0 transition-opacity duration-150 group-hover:opacity-100 focus-within:opacity-100">
<button
type="button"
onClick={() => move(-1)}
@@ -661,7 +661,7 @@ function JourneyDetailPageDesktop() {
{/* RIGHT column on desktop — sticky rounded map (polarsteps-style).
Hidden on mobile; mobile gets its own chromeless combined view. */}
{!isMobile && (
- <aside className="w-[44%] max-w-[820px] min-w-[420px] pt-6 pr-4 pb-4 pl-0">
+ <aside className="w-[44%] max-w-[820px] min-w-[420px] pt-6 pe-4 pb-4 ps-0">
<div className="h-full rounded-[22px] overflow-hidden shadow-sm" style={{ border: '1px solid var(--vg-line)' }}>
<JourneyMap
ref={mapRef}
diff --git a/client/src/pages/JourneyPage.tsx b/client/src/pages/JourneyPage.tsx
index d58fc6dcd..2325f28cd 100644
--- a/client/src/pages/JourneyPage.tsx
+++ b/client/src/pages/JourneyPage.tsx
@@ -134,7 +134,7 @@ function JourneyPageDesktop() {
<button
type="button"
onClick={() => navigate(`/journey/${activeJourney.id}`)}
- className="block w-full text-left relative rounded-[28px] overflow-hidden cursor-pointer h-[250px] md:h-[280px] transition-transform duration-300 ease-[cubic-bezier(0.23,1,0.32,1)] hover:-translate-y-1 shadow-[0_2px_4px_rgba(0,0,0,0.06),0_20px_48px_-18px_rgba(0,0,0,0.32)]"
+ className="block w-full text-start relative rounded-[28px] overflow-hidden cursor-pointer h-[250px] md:h-[280px] transition-transform duration-300 ease-[cubic-bezier(0.23,1,0.32,1)] hover:-translate-y-1 shadow-[0_2px_4px_rgba(0,0,0,0.06),0_20px_48px_-18px_rgba(0,0,0,0.32)]"
style={{
background: activeJourney.cover_image
? `linear-gradient(120deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0.05) 100%), url(/uploads/${activeJourney.cover_image}) center/cover`
@@ -192,7 +192,7 @@ function JourneyPageDesktop() {
</div>
))}
</div>
- <span className="ml-auto hidden md:inline-flex items-center gap-2" style={{ padding: '13px 22px', borderRadius: 14, background: '#fff', color: '#101013', fontSize: 14, fontWeight: 700 }}>
+ <span className="ms-auto hidden md:inline-flex items-center gap-2" style={{ padding: '13px 22px', borderRadius: 14, background: '#fff', color: '#101013', fontSize: 14, fontWeight: 700 }}>
{t('journey.frontpage.continueWriting')}<ChevronRight size={16} strokeWidth={2.4} />
</span>
</div>
@@ -425,7 +425,7 @@ function JourneyCard({ journey, onClick }: { journey: Journey & { entry_count?:
<button
type="button"
onClick={onClick}
- className="vg-card w-full text-left rounded-[24px] overflow-hidden cursor-pointer transition-[transform,box-shadow] duration-300 ease-[cubic-bezier(0.23,1,0.32,1)] hover:-translate-y-1 flex flex-col"
+ className="vg-card w-full text-start rounded-[24px] overflow-hidden cursor-pointer transition-[transform,box-shadow] duration-300 ease-[cubic-bezier(0.23,1,0.32,1)] hover:-translate-y-1 flex flex-col"
>
{/* Cover with title overlay */}
<div className="relative h-[200px] overflow-hidden" style={{ background: pickGradient(j.id) }}>
@@ -434,19 +434,19 @@ function JourneyCard({ journey, onClick }: { journey: Journey & { entry_count?:
)}
<div className="absolute inset-0" style={{ background: 'linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.62) 100%)' }} />
- <span className="absolute top-3.5 left-3.5 z-[2] inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-white text-[11px] font-semibold"
+ <span className="absolute top-3.5 start-3.5 z-[2] inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-white text-[11px] font-semibold"
style={{ background: 'rgba(255,255,255,0.18)', backdropFilter: 'blur(12px)', WebkitBackdropFilter: 'blur(12px)', border: '1px solid rgba(255,255,255,0.26)' }}>
<Calendar size={12} strokeWidth={2.2} />
{new Date(j.created_at).getFullYear()}
</span>
{lifecycle !== 'live' && (
- <span className="absolute top-3.5 right-3.5 z-[2] px-2 py-0.5 rounded-full text-[10px] font-semibold uppercase tracking-wide text-white"
+ <span className="absolute top-3.5 end-3.5 z-[2] px-2 py-0.5 rounded-full text-[10px] font-semibold uppercase tracking-wide text-white"
style={{ background: 'rgba(0,0,0,0.4)', backdropFilter: 'blur(8px)', WebkitBackdropFilter: 'blur(8px)' }}>
{t(`journey.status.${lifecycle}`)}
</span>
)}
- <div className="absolute left-[18px] right-[18px] bottom-[15px] z-[2] text-white">
+ <div className="absolute inset-x-[18px] bottom-[15px] z-[2] text-white">
<div className="text-[21px] font-bold tracking-[-0.02em] leading-tight" style={{ textShadow: '0 1px 8px rgba(0,0,0,0.4)' }}>{j.title}</div>
{j.subtitle && (
<div className="text-[12px] font-medium mt-[3px]" style={{ color: 'rgba(255,255,255,0.88)', textShadow: '0 1px 6px rgba(0,0,0,0.5)' }}>{j.subtitle}</div>
diff --git a/client/src/pages/JourneyPublicPage.tsx b/client/src/pages/JourneyPublicPage.tsx
index c331d3c22..8cf0e88a6 100644
--- a/client/src/pages/JourneyPublicPage.tsx
+++ b/client/src/pages/JourneyPublicPage.tsx
@@ -211,7 +211,7 @@ export default function JourneyPublicPage() {
</div>
{/* Entries */}
- <div className="flex flex-col gap-4 pl-[52px]">
+ <div className="flex flex-col gap-4 ps-[52px]">
{dayEntries.map((entry) => {
const photos = entry.photos || [];
const mood = entry.mood ? MOOD_CONFIG[entry.mood] : null;
@@ -247,7 +247,7 @@ export default function JourneyPublicPage() {
{photos.length === 1 && (
<button
type="button"
- className="relative block w-full cursor-pointer text-left"
+ className="relative block w-full cursor-pointer text-start"
onClick={() => setLightbox({ photos: lightboxPhotos, index: 0 })}
>
<div className={`relative h-64 w-full ${photos[0].media_type === 'video' ? 'bg-black' : ''}`}>
@@ -277,7 +277,7 @@ export default function JourneyPublicPage() {
}}
/>
{entry.location_name && (
- <div className="absolute left-4 top-3">
+ <div className="absolute start-4 top-3">
<span className="inline-flex items-center gap-1 rounded-full bg-black/40 px-2.5 py-1 text-[10px] font-semibold text-white backdrop-blur-sm">
<MapPin size={10} className="flex-shrink-0" />
<span className="max-w-[200px] truncate">{formatLocationName(entry.location_name)}</span>
@@ -285,7 +285,7 @@ export default function JourneyPublicPage() {
</div>
)}
{entry.title && (
- <div className="pointer-events-none absolute bottom-4 left-5 right-5">
+ <div className="pointer-events-none absolute bottom-4 inset-x-5">
<h3 className="text-[18px] font-bold leading-tight text-white drop-shadow-sm">
{entry.title}
</h3>
@@ -615,7 +615,9 @@ export default function JourneyPublicPage() {
position: 'sticky',
top: 0,
height: '100dvh',
- padding: '16px 16px 16px 0',
+ paddingBlock: 16,
+ paddingInlineEnd: 16,
+ paddingInlineStart: 0,
alignSelf: 'flex-start',
}}
>
@@ -640,7 +642,7 @@ export default function JourneyPublicPage() {
{/* Floating view toggle — visible above the fullscreen map on mobile */}
{isMobile && view === 'timeline' && perms.share_timeline && perms.share_map && availableViews.length > 1 && (
<div
- className="fixed left-0 right-0 z-50 flex justify-center px-4"
+ className="fixed inset-x-0 z-50 flex justify-center px-4"
style={{ top: 'calc(env(safe-area-inset-top, 0px) + 12px)' }}
>
<div className="flex overflow-hidden rounded-lg border border-zinc-200 bg-white/90 shadow-lg backdrop-blur-lg dark:border-zinc-700 dark:bg-zinc-800/90">
diff --git a/client/src/pages/LoginPage.tsx b/client/src/pages/LoginPage.tsx
index 1ee9c8848..8b3cbfe67 100644
--- a/client/src/pages/LoginPage.tsx
+++ b/client/src/pages/LoginPage.tsx
@@ -102,7 +102,9 @@ export default function LoginPage(): React.ReactElement {
const inputBase: React.CSSProperties = {
width: '100%',
- padding: '11px 12px 11px 40px',
+ paddingBlock: 11,
+ paddingInlineEnd: 12,
+ paddingInlineStart: 40,
border: '1px solid #e5e7eb',
borderRadius: 12,
fontSize: 'calc(14px * var(--fs-scale-body, 1))',
@@ -229,7 +231,7 @@ export default function LoginPage(): React.ReactElement {
return (
<div style={{ minHeight: '100vh', display: 'flex', fontFamily: 'var(--font-system)', position: 'relative' }}>
{/* Language dropdown */}
- <div style={{ position: 'absolute', top: 16, right: 16, zIndex: 10 }}>
+ <div style={{ position: 'absolute', top: 16, insetInlineEnd: 16, zIndex: 10 }}>
<button type="button"
onClick={(e) => {
e.stopPropagation();
@@ -281,7 +283,7 @@ export default function LoginPage(): React.ReactElement {
style={{
position: 'absolute',
top: '100%',
- right: 0,
+ insetInlineEnd: 0,
marginTop: 4,
background: 'white',
borderRadius: 12,
@@ -304,7 +306,7 @@ export default function LoginPage(): React.ReactElement {
style={{
display: 'block',
width: '100%',
- textAlign: 'left',
+ textAlign: 'start',
padding: '9px 16px',
border: 'none',
background: value === language ? 'rgba(99,102,241,0.08)' : 'transparent',
@@ -676,7 +678,7 @@ export default function LoginPage(): React.ReactElement {
className="text-[#9ca3af]"
style={{
position: 'absolute',
- left: 13,
+ insetInlineStart: 13,
top: '50%',
transform: 'translateY(-50%)',
pointerEvents: 'none',
@@ -715,7 +717,7 @@ export default function LoginPage(): React.ReactElement {
className="text-[#9ca3af]"
style={{
position: 'absolute',
- left: 13,
+ insetInlineStart: 13,
top: '50%',
transform: 'translateY(-50%)',
pointerEvents: 'none',
@@ -757,7 +759,7 @@ export default function LoginPage(): React.ReactElement {
className="text-[#9ca3af]"
style={{
position: 'absolute',
- left: 13,
+ insetInlineStart: 13,
top: '50%',
transform: 'translateY(-50%)',
pointerEvents: 'none',
@@ -826,7 +828,7 @@ export default function LoginPage(): React.ReactElement {
className="text-[#9ca3af]"
style={{
position: 'absolute',
- left: 13,
+ insetInlineStart: 13,
top: '50%',
transform: 'translateY(-50%)',
pointerEvents: 'none',
@@ -866,7 +868,7 @@ export default function LoginPage(): React.ReactElement {
className="text-[#9ca3af]"
style={{
position: 'absolute',
- left: 13,
+ insetInlineStart: 13,
top: '50%',
transform: 'translateY(-50%)',
pointerEvents: 'none',
@@ -906,7 +908,7 @@ export default function LoginPage(): React.ReactElement {
className="text-[#9ca3af]"
style={{
position: 'absolute',
- left: 13,
+ insetInlineStart: 13,
top: '50%',
transform: 'translateY(-50%)',
pointerEvents: 'none',
@@ -918,7 +920,7 @@ export default function LoginPage(): React.ReactElement {
onChange={(e: React.ChangeEvent<HTMLInputElement>) => setPassword(e.target.value)}
required
placeholder="••••••••"
- style={{ ...inputBase, paddingRight: 44 }}
+ style={{ ...inputBase, paddingInlineEnd: 44 }}
onFocus={(e: React.FocusEvent<HTMLInputElement>) => (e.target.style.borderColor = '#111827')}
onBlur={(e: React.FocusEvent<HTMLInputElement>) => (e.target.style.borderColor = '#e5e7eb')}
/>
@@ -927,7 +929,7 @@ export default function LoginPage(): React.ReactElement {
onClick={() => setShowPassword((v) => !v)}
style={{
position: 'absolute',
- right: 12,
+ insetInlineEnd: 12,
top: '50%',
transform: 'translateY(-50%)',
background: 'none',
diff --git a/client/src/pages/LoginPage.wiring.test.tsx b/client/src/pages/LoginPage.wiring.test.tsx
index 2003c77c6..c2bd5e163 100644
--- a/client/src/pages/LoginPage.wiring.test.tsx
+++ b/client/src/pages/LoginPage.wiring.test.tsx
@@ -248,7 +248,7 @@ describe('LoginPage — password form', () => {
expect(input).toHaveAttribute('type', 'password');
const buttons = screen.getAllByRole('button');
- const toggle = buttons.find((b) => b.getAttribute('type') === 'button' && b.querySelector('svg') && b.style.right === '12px')!;
+ const toggle = buttons.find((b) => b.getAttribute('type') === 'button' && b.querySelector('svg') && b.style.insetInlineEnd === '12px')!;
fireEvent.click(toggle);
const updater = vi.mocked(fixture.setShowPassword).mock.calls[0][0] as (v: boolean) => boolean;
diff --git a/client/src/pages/OAuthAuthorizePage.tsx b/client/src/pages/OAuthAuthorizePage.tsx
index 4b751e299..91464c528 100644
--- a/client/src/pages/OAuthAuthorizePage.tsx
+++ b/client/src/pages/OAuthAuthorizePage.tsx
@@ -82,7 +82,7 @@ export default function OAuthAuthorizePage(): React.ReactElement {
<div className="w-full max-w-2xl rounded-xl shadow-lg overflow-hidden flex flex-col sm:flex-row" style={{ background: 'var(--bg-card)' }}>
{/* Left panel — app identity + actions */}
- <div className="sm:w-64 sm:flex-shrink-0 flex flex-col px-8 py-8 sm:border-r" style={{ borderColor: 'var(--border-primary)' }}>
+ <div className="sm:w-64 sm:flex-shrink-0 flex flex-col px-8 py-8 sm:border-e" style={{ borderColor: 'var(--border-primary)' }}>
<div className="flex-1 space-y-4">
<div className="w-12 h-12 rounded-full flex items-center justify-center" style={{ background: 'var(--bg-secondary)' }}>
<ShieldCheck className="w-6 h-6" style={{ color: 'var(--accent-primary, #4f46e5)' }} />
@@ -151,7 +151,7 @@ export default function OAuthAuthorizePage(): React.ReactElement {
className="rounded flex-shrink-0"
/>
<span className="text-xs font-semibold" style={{ color: 'var(--text-secondary)' }}>{group}</span>
- <span className="ml-auto text-xs" style={{ color: 'var(--text-tertiary)' }}>
+ <span className="ms-auto text-xs" style={{ color: 'var(--text-tertiary)' }}>
{groupScopes.filter(s => selectedScopes.includes(s)).length}/{groupScopes.length}
</span>
</label>
diff --git a/client/src/pages/ResetPasswordPage.tsx b/client/src/pages/ResetPasswordPage.tsx
index 7ffc123d2..5d6d80d95 100644
--- a/client/src/pages/ResetPasswordPage.tsx
+++ b/client/src/pages/ResetPasswordPage.tsx
@@ -5,7 +5,7 @@ import { useResetPassword } from './resetPassword/useResetPassword'
import PasswordChecklist from '../components/shared/PasswordChecklist'
const inputBase: React.CSSProperties = {
- width: '100%', padding: '11px 44px 11px 38px', borderRadius: 12,
+ width: '100%', paddingBlock: 11, paddingInlineEnd: 44, paddingInlineStart: 38, borderRadius: 12,
border: '1px solid #e5e7eb', fontSize: 'calc(14px * var(--fs-scale-body, 1))', fontFamily: 'inherit',
outline: 'none', transition: 'border-color 120ms',
background: 'white', color: '#111827',
@@ -102,7 +102,7 @@ function ResetPasswordPage() {
{t('login.newPassword')}
</label>
<div style={{ position: 'relative' }}>
- <Lock size={15} className="text-[#9ca3af]" style={{ position: 'absolute', left: 13, top: '50%', transform: 'translateY(-50%)', pointerEvents: 'none' }} />
+ <Lock size={15} className="text-[#9ca3af]" style={{ position: 'absolute', insetInlineStart: 13, top: '50%', transform: 'translateY(-50%)', pointerEvents: 'none' }} />
<input
type={showPw ? 'text' : 'password'} value={pw}
onChange={(e: ChangeEvent<HTMLInputElement>) => setPw(e.target.value)}
@@ -111,7 +111,7 @@ function ResetPasswordPage() {
onBlur={(e) => { e.currentTarget.style.borderColor = '#e5e7eb' }}
/>
<button type="button" onClick={() => setShowPw(v => !v)} style={{
- position: 'absolute', right: 12, top: '50%', transform: 'translateY(-50%)',
+ position: 'absolute', insetInlineEnd: 12, top: '50%', transform: 'translateY(-50%)',
background: 'none', border: 'none', cursor: 'pointer', padding: 2, color: '#9ca3af',
}}>{showPw ? <EyeOff size={16} /> : <Eye size={16} />}</button>
</div>
@@ -122,7 +122,7 @@ function ResetPasswordPage() {
{t('login.confirmPassword')}
</label>
<div style={{ position: 'relative' }}>
- <Lock size={15} className="text-[#9ca3af]" style={{ position: 'absolute', left: 13, top: '50%', transform: 'translateY(-50%)', pointerEvents: 'none' }} />
+ <Lock size={15} className="text-[#9ca3af]" style={{ position: 'absolute', insetInlineStart: 13, top: '50%', transform: 'translateY(-50%)', pointerEvents: 'none' }} />
<input
type={showPw ? 'text' : 'password'} value={pw2}
onChange={(e: ChangeEvent<HTMLInputElement>) => setPw2(e.target.value)}
@@ -140,11 +140,11 @@ function ResetPasswordPage() {
{t('login.mfaCode')}
</label>
<div style={{ position: 'relative' }}>
- <KeyRound size={15} className="text-[#9ca3af]" style={{ position: 'absolute', left: 13, top: '50%', transform: 'translateY(-50%)', pointerEvents: 'none' }} />
+ <KeyRound size={15} className="text-[#9ca3af]" style={{ position: 'absolute', insetInlineStart: 13, top: '50%', transform: 'translateY(-50%)', pointerEvents: 'none' }} />
<input
type="text" inputMode="numeric" value={mfaCode}
onChange={(e: ChangeEvent<HTMLInputElement>) => setMfaCode(e.target.value)}
- required placeholder="123456 or backup-code" style={{ ...inputBase, paddingRight: 12 }}
+ required placeholder="123456 or backup-code" style={{ ...inputBase, paddingInlineEnd: 12 }}
autoFocus
onFocus={(e) => { e.currentTarget.style.borderColor = '#111827' }}
onBlur={(e) => { e.currentTarget.style.borderColor = '#e5e7eb' }}
diff --git a/client/src/pages/TripPlannerPage.tsx b/client/src/pages/TripPlannerPage.tsx
index a8396fa28..d91991588 100644
--- a/client/src/pages/TripPlannerPage.tsx
+++ b/client/src/pages/TripPlannerPage.tsx
@@ -154,7 +154,7 @@ function ListsContainer({ tripId, packingItems, todoItems }: { tripId: number; p
<div style={{ padding: '24px 28px 0', flexShrink: 0 }} className="max-md:!px-4 max-md:!pt-4">
<div className="bg-surface-tertiary" style={{
borderRadius: 18,
- padding: '14px 16px 14px 22px',
+ paddingBlock: 14, paddingInlineEnd: 16, paddingInlineStart: 22,
display: 'flex', alignItems: 'center', gap: 16, flexWrap: 'wrap',
}}>
<h2 className="text-content" style={{ margin: 0, fontSize: 'calc(18px * var(--fs-scale-subtitle, 1))', fontWeight: 600, letterSpacing: '-0.01em', flexShrink: 0 }}>
@@ -197,7 +197,7 @@ function ListsContainer({ tripId, packingItems, todoItems }: { tripId: number; p
borderRadius: 10, fontSize: 'calc(13px * var(--fs-scale-body, 1))', fontWeight: 500,
}
return (
- <div style={{ display: 'flex', gap: 6, flexShrink: 0, marginLeft: 'auto', flexWrap: 'wrap' }}>
+ <div style={{ display: 'flex', gap: 6, flexShrink: 0, marginInlineStart: 'auto', flexWrap: 'wrap' }}>
{canEditPacking && (
<button type="button" onClick={() => setAddCategorySignal(s => s + 1)}
className={`${sharedBtnClass} bg-accent text-accent-text`}
@@ -242,7 +242,7 @@ function ListsContainer({ tripId, packingItems, todoItems }: { tripId: number; p
display: 'inline-flex', alignItems: 'center', gap: 6,
padding: '9px 14px', borderRadius: 10, fontSize: 'calc(13px * var(--fs-scale-body, 1))', fontWeight: 500,
flexShrink: 0,
- marginLeft: 'auto',
+ marginInlineStart: 'auto',
}}
>
<Plus size={14} strokeWidth={2.5} />
@@ -440,7 +440,7 @@ function TripPlannerPageDesktop(): React.ReactElement | null {
<Navbar tripTitle={trip.title} tripId={tripId} showBack onBack={() => navigate('/dashboard')} onShare={() => setShowMembersModal(true)} />
<div className="bg-surface-elevated border-b border-edge-faint" style={{
- position: 'fixed', top: 'var(--nav-h)', left: 0, right: 0, zIndex: 40,
+ position: 'fixed', top: 'var(--nav-h)', insetInline: 0, zIndex: 40,
display: 'flex', alignItems: 'center', justifyContent: 'center',
padding: '0 12px',
backdropFilter: 'blur(16px)',
@@ -462,7 +462,7 @@ function TripPlannerPageDesktop(): React.ReactElement | null {
</div>
{/* Offset by navbar + tab bar (44px) */}
- <div style={{ position: 'fixed', top: 'calc(var(--nav-h) + 44px)', left: 0, right: 0, bottom: 0, overflow: 'hidden', overscrollBehavior: 'contain' }}>
+ <div style={{ position: 'fixed', top: 'calc(var(--nav-h) + 44px)', insetInline: 0, bottom: 0, overflow: 'hidden', overscrollBehavior: 'contain' }}>
{/* Plugin validation/warning contributions (#1429) — navbar chips for
plugins with a tab here, floating bottom overlay for the rest. */}
@@ -622,7 +622,7 @@ function TripPlannerPageDesktop(): React.ReactElement | null {
{/* Mobile POI search controls live in a portal like the Plan/Places
buttons so map touch handlers cannot swallow the tap targets. */}
{poiPillEnabled && !mobileSidebarOpen && !showPlaceForm && !showMembersModal && !showReservationModal && createPortal(
- <div data-testid="mobile-poi-category-pill" className="flex md:hidden" style={{ position: 'fixed', left: 12, right: 12, bottom: 'calc(var(--bottom-nav-h, 0px) + 12px)', justifyContent: 'center', zIndex: 100, pointerEvents: 'none' }}>
+ <div data-testid="mobile-poi-category-pill" className="flex md:hidden" style={{ position: 'fixed', insetInline: 12, bottom: 'calc(var(--bottom-nav-h, 0px) + 12px)', justifyContent: 'center', zIndex: 100, pointerEvents: 'none' }}>
<PoiCategoryPill categories={poi.categories} active={poi.active} onToggle={poi.toggle} loadingKeys={poi.loadingKeys} errorKeys={poi.errorKeys} moved={poi.moved} onSearchArea={poi.searchArea} />
</div>,
document.body
@@ -862,7 +862,7 @@ function TripPlannerPageDesktop(): React.ReactElement | null {
{/* Mobile sidebar buttons — portal to body to escape Leaflet touch handling */}
{activeTab === 'plan' && !mobileSidebarOpen && !showPlaceForm && !showMembersModal && !showReservationModal && createPortal(
- <div className="flex md:hidden" style={{ position: 'fixed', top: 'calc(var(--nav-h) + 44px + 12px)', left: 12, right: 12, justifyContent: 'space-between', zIndex: 100, pointerEvents: 'none' }}>
+ <div className="flex md:hidden" style={{ position: 'fixed', top: 'calc(var(--nav-h) + 44px + 12px)', insetInline: 12, justifyContent: 'space-between', zIndex: 100, pointerEvents: 'none' }}>
<button type="button" onClick={() => setMobileSidebarOpen('left')}
className="bg-surface-card text-content border border-edge"
style={{ pointerEvents: 'auto', backdropFilter: 'blur(12px)', borderRadius: 24, padding: '11px 24px', fontSize: 'calc(15px * var(--fs-scale-subtitle, 1))', fontWeight: 600, cursor: 'pointer', boxShadow: '0 2px 12px rgba(0,0,0,0.15)', minHeight: 44, fontFamily: 'inherit', touchAction: 'manipulation' }}>
@@ -1056,7 +1056,7 @@ function TripPlannerPageDesktop(): React.ReactElement | null {
{mobileSidebarOpen && createPortal(
<div className="bg-[rgba(0,0,0,0.3)]" style={{ position: 'fixed', inset: 0, zIndex: 9999 }} role="presentation" onClick={() => setMobileSidebarOpen(null)}>
- <div className="bg-surface-card" style={{ position: 'absolute', top: 'var(--nav-h)', left: 0, right: 0, bottom: 0, display: 'flex', flexDirection: 'column', overflow: 'hidden' }} role="presentation" onClick={e => e.stopPropagation()}>
+ <div className="bg-surface-card" style={{ position: 'absolute', top: 'var(--nav-h)', insetInline: 0, bottom: 0, display: 'flex', flexDirection: 'column', overflow: 'hidden' }} role="presentation" onClick={e => e.stopPropagation()}>
<div className="border-b border-edge-secondary" style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', padding: '14px 16px' }}>
<span className="text-content" style={{ fontWeight: 600, fontSize: 'calc(14px * var(--fs-scale-body, 1))' }}>{mobileSidebarOpen === 'left' ? t('trip.mobilePlan') : t('trip.mobilePlaces')}</span>
<button type="button" onClick={() => setMobileSidebarOpen(null)} className="bg-surface-tertiary text-content" style={{ border: 'none', borderRadius: '50%', width: 28, height: 28, cursor: 'pointer', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
@@ -1264,7 +1264,7 @@ function TripPlannerPageDesktop(): React.ReactElement | null {
)}
{activeTab === 'collab' && (
- <div style={{ position: 'absolute', top: 0, left: 0, right: 0, bottom: 'var(--bottom-nav-h)', overflow: 'hidden' }}>
+ <div style={{ position: 'absolute', top: 0, insetInline: 0, bottom: 'var(--bottom-nav-h)', overflow: 'hidden' }}>
<LazyPanel id="collab">
<CollabPanel tripId={tripId} tripMembers={tripMembers} collabFeatures={collabFeatures} />
</LazyPanel>
@@ -1273,7 +1273,7 @@ function TripPlannerPageDesktop(): React.ReactElement | null {
{activeTab.startsWith('plugin:') && (
- <div style={{ position: 'absolute', top: 0, left: 0, right: 0, bottom: 'var(--bottom-nav-h)', overflow: 'hidden' }}>
+ <div style={{ position: 'absolute', top: 0, insetInline: 0, bottom: 'var(--bottom-nav-h)', overflow: 'hidden' }}>
<PluginFrame pluginId={activeTab.slice('plugin:'.length)} tripId={String(tripId)} fill surface="trip-tab" className="w-full h-full" />
</div>
)}
diff --git a/client/src/pages/VacayPage.tsx b/client/src/pages/VacayPage.tsx
index 1e2cd1031..4f6622fc4 100644
--- a/client/src/pages/VacayPage.tsx
+++ b/client/src/pages/VacayPage.tsx
@@ -88,7 +88,7 @@ function VacayPageDesktop(): React.ReactElement {
{years.length > 1 && (
<button type="button" aria-label={t('vacay.removeYear')}
onClick={e => { e.stopPropagation(); setDeleteYear(y); setShowMobileSidebar(false) }}
- className="absolute -top-1 -right-1 w-3.5 h-3.5 rounded-full bg-red-500 text-white text-[7px] flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity cursor-pointer">
+ className="absolute -top-1 -end-1 w-3.5 h-3.5 rounded-full bg-red-500 text-white text-[7px] flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity cursor-pointer">
<Minus size={7} />
</button>
)}
diff --git a/client/src/pages/admin/AdminSettingsTab.tsx b/client/src/pages/admin/AdminSettingsTab.tsx
index 5b5d53ec4..914f265d6 100644
--- a/client/src/pages/admin/AdminSettingsTab.tsx
+++ b/client/src/pages/admin/AdminSettingsTab.tsx
@@ -81,13 +81,13 @@ function KeyField({ shown, value, onChange, inputProps, label, onToggle }: {
value={value}
onChange={e => onChange(e.target.value)}
{...inputProps}
- className={`${INPUT} pr-10 font-geist`}
+ className={`${INPUT} pe-10 font-geist`}
/>
<button
type="button"
onClick={onToggle}
aria-label={label}
- className="absolute right-1.5 top-1/2 grid h-7 w-7 -translate-y-1/2 place-items-center rounded-[8px] text-content-faint hover:bg-surface-hover hover:text-content"
+ className="absolute end-1.5 top-1/2 grid h-7 w-7 -translate-y-1/2 place-items-center rounded-[8px] text-content-faint hover:bg-surface-hover hover:text-content"
>
{shown ? <EyeOff size={15} /> : <Eye size={15} />}
</button>
@@ -441,10 +441,10 @@ export default function AdminSettingsTab({ admin, t }: AdminSettingsTabProps): R
</div>
<SettingsHint>{t('admin.mapsKeyHintLong')}</SettingsHint>
{validation.maps === true && (
- <div><StatusPill tone="success" icon={<span className="mr-0.5 h-1.5 w-1.5 rounded-full bg-success" />}>{t('admin.keyValid')}</StatusPill></div>
+ <div><StatusPill tone="success" icon={<span className="me-0.5 h-1.5 w-1.5 rounded-full bg-success" />}>{t('admin.keyValid')}</StatusPill></div>
)}
{validation.maps === false && (
- <div><StatusPill tone="danger" icon={<span className="mr-0.5 h-1.5 w-1.5 rounded-full bg-danger" />}>{t('admin.keyInvalid')}</StatusPill></div>
+ <div><StatusPill tone="danger" icon={<span className="me-0.5 h-1.5 w-1.5 rounded-full bg-danger" />}>{t('admin.keyInvalid')}</StatusPill></div>
)}
</div>
diff --git a/client/src/pages/admin/AdminStatCard.tsx b/client/src/pages/admin/AdminStatCard.tsx
index 4a2afd436..8b31f1c4c 100644
--- a/client/src/pages/admin/AdminStatCard.tsx
+++ b/client/src/pages/admin/AdminStatCard.tsx
@@ -7,7 +7,7 @@ import { fs } from '../../components/shared/DialogShell'
export default function AdminStatCard({ label, value, icon: Icon }: { label: string; value: number; icon: React.ComponentType<{ className?: string; style?: React.CSSProperties }> }): React.ReactElement {
const animated = useCountUp(value, 900)
return (
- <div className="flex min-w-0 items-center gap-2.5 rounded-[12px] bg-surface-card py-2 pl-2 pr-3.5 shadow-sm">
+ <div className="flex min-w-0 items-center gap-2.5 rounded-[12px] bg-surface-card py-2 ps-2 pe-3.5 shadow-sm">
<span className="grid h-8 w-8 flex-none place-items-center rounded-[10px] bg-surface-tertiary text-content-secondary">
<Icon className="h-4 w-4" />
</span>
diff --git a/client/src/pages/admin/AdminUserModals.tsx b/client/src/pages/admin/AdminUserModals.tsx
index 226594354..61ca8ff05 100644
--- a/client/src/pages/admin/AdminUserModals.tsx
+++ b/client/src/pages/admin/AdminUserModals.tsx
@@ -69,9 +69,9 @@ function PasswordInput({
value={value}
onChange={(e) => onChange(e.target.value)}
placeholder={placeholder}
- className={`${INPUT} pr-10`}
+ className={`${INPUT} pe-10`}
/>
- <span className="absolute right-1.5 top-1/2 flex -translate-y-1/2">
+ <span className="absolute end-1.5 top-1/2 flex -translate-y-1/2">
<Tooltip label="Show or hide password" placement="top">
<button
type="button"
diff --git a/client/src/pages/admin/AdminUsersTab.tsx b/client/src/pages/admin/AdminUsersTab.tsx
index 9456a2711..ee6068a30 100644
--- a/client/src/pages/admin/AdminUsersTab.tsx
+++ b/client/src/pages/admin/AdminUsersTab.tsx
@@ -67,13 +67,13 @@ export default function AdminUsersTab({ admin, t, locale }: AdminUsersTabProps):
<div className="overflow-x-auto rounded-[12px] border border-edge-faint bg-surface-card">
<table className="w-full border-collapse">
<thead>
- <tr className="border-b border-edge-faint text-left" style={fs(9.5)}>
+ <tr className="border-b border-edge-faint text-start" style={fs(9.5)}>
<th className={TH}>{t('admin.table.user')}</th>
<th className={TH}>{t('admin.table.email')}</th>
<th className={TH}>{t('admin.table.role')}</th>
<th className={TH}>{t('admin.table.created')}</th>
<th className={TH}>{t('admin.table.lastLogin')}</th>
- <th className={`${TH} text-right`}>{t('admin.table.actions')}</th>
+ <th className={`${TH} text-end`}>{t('admin.table.actions')}</th>
</tr>
</thead>
<tbody className="trek-stagger divide-y divide-edge-faint">
@@ -91,7 +91,7 @@ export default function AdminUsersTab({ admin, t, locale }: AdminUsersTabProps):
{u.username.charAt(0).toUpperCase()}
</div>
)}
- <span className={`absolute -bottom-0.5 -right-0.5 h-3 w-3 rounded-full border-2 border-surface-card ${u.online ? 'bg-success' : 'bg-content-faint'}`} />
+ <span className={`absolute -bottom-0.5 -end-0.5 h-3 w-3 rounded-full border-2 border-surface-card ${u.online ? 'bg-success' : 'bg-content-faint'}`} />
</div>
<div className="min-w-0">
<p className="m-0 truncate font-semibold text-content" style={fs(13, 'body')}>{u.username}</p>
diff --git a/client/src/pages/atlas/AtlasCountrySearch.tsx b/client/src/pages/atlas/AtlasCountrySearch.tsx
index 4c7bd0855..7ca7c4d30 100644
--- a/client/src/pages/atlas/AtlasCountrySearch.tsx
+++ b/client/src/pages/atlas/AtlasCountrySearch.tsx
@@ -50,7 +50,7 @@ export default function AtlasCountrySearch({
return (
<div
className="absolute z-20 flex justify-center"
- style={{ top: 'calc(env(safe-area-inset-top, 0px) + 14px)', left: 0, right: 0, pointerEvents: 'none' }}
+ style={{ top: 'calc(env(safe-area-inset-top, 0px) + 14px)', insetInline: 0, pointerEvents: 'none' }}
>
<div ref={boxRef} style={{ width: 'min(520px, calc(100vw - 28px))', pointerEvents: 'auto' }}>
<div style={{
@@ -155,7 +155,7 @@ export default function AtlasCountrySearch({
alignItems: 'center',
justifyContent: 'space-between',
fontFamily: 'inherit',
- textAlign: 'left',
+ textAlign: 'start',
borderBottom: '1px solid ' + (dark ? 'rgba(255,255,255,0.06)' : 'rgba(0,0,0,0.06)'),
}}
onMouseEnter={(e) => { (e.currentTarget as HTMLButtonElement).style.background = dark ? 'rgba(255,255,255,0.06)' : 'rgba(0,0,0,0.05)' }}
@@ -200,7 +200,7 @@ export default function AtlasCountrySearch({
alignItems: 'center',
justifyContent: 'space-between',
fontFamily: 'inherit',
- textAlign: 'left',
+ textAlign: 'start',
borderBottom: '1px solid ' + (dark ? 'rgba(255,255,255,0.06)' : 'rgba(0,0,0,0.06)'),
}}
onMouseEnter={(e) => { (e.currentTarget as HTMLButtonElement).style.background = dark ? 'rgba(255,255,255,0.06)' : 'rgba(0,0,0,0.05)' }}
diff --git a/client/src/pages/sharedTrip/SharedChrome.tsx b/client/src/pages/sharedTrip/SharedChrome.tsx
index fcbd76ec8..d619eade6 100644
--- a/client/src/pages/sharedTrip/SharedChrome.tsx
+++ b/client/src/pages/sharedTrip/SharedChrome.tsx
@@ -39,7 +39,7 @@ export function SharedTopBar({ title, locale, langOpen, onLangOpenChange }: TopB
<img src="/logo-dark.svg" alt="TREK" className="hidden sm:block" style={{ height: 26 }} />
<span className="hidden text-content-faint sm:inline">/</span>
<span className="hidden min-w-0 truncate font-medium text-content-muted sm:inline" style={fs(14, 'body')}>{title}</span>
- <div className="ml-auto flex flex-none items-center gap-2">
+ <div className="ms-auto flex flex-none items-center gap-2">
<Tooltip label={t('shared.readOnly')}>
<span className="inline-flex items-center gap-1.5 rounded-full bg-surface-tertiary px-3 py-1.5 font-semibold text-content-muted" style={fs(12, 'body')}>
<Eye size={13} strokeWidth={2} className="flex-none" aria-hidden />
@@ -151,7 +151,7 @@ export function SharedFooter() {
const { t } = useTranslation()
return (
<footer className="mt-14 border-t border-edge-faint bg-surface-card">
- <div className={`${PAGE_WIDTH} flex flex-col items-center gap-4 py-8 text-center sm:flex-row sm:justify-between sm:text-left`}>
+ <div className={`${PAGE_WIDTH} flex flex-col items-center gap-4 py-8 text-center sm:flex-row sm:justify-between sm:text-start`}>
<div className="flex items-center gap-3">
<img src="/icons/icon.svg" alt="TREK" width="34" height="34" className="rounded-[10px] shadow-sm" />
<div>
diff --git a/client/src/pages/sharedTrip/SharedDayCard.tsx b/client/src/pages/sharedTrip/SharedDayCard.tsx
index 0097a4f65..4ba6a509a 100644
--- a/client/src/pages/sharedTrip/SharedDayCard.tsx
+++ b/client/src/pages/sharedTrip/SharedDayCard.tsx
@@ -53,8 +53,8 @@ export function SharedDayCard(p: SharedDayCardProps) {
id={`shared-day-${day.id}`}
className={`scroll-mt-20 overflow-hidden rounded-2xl border border-edge-faint bg-surface-card transition-shadow ${p.selected ? 'shadow-md' : ''}`}
>
- <div className="flex items-start gap-1 py-2.5 pl-2.5 pr-2" style={{ background: p.selected ? DAY_HEAD_SELECTED : NEUTRAL_TINT }}>
- <button type="button" onClick={p.onSelect} aria-pressed={p.selected} className="flex min-w-0 flex-1 items-start gap-2.5 text-left">
+ <div className="flex items-start gap-1 py-2.5 ps-2.5 pe-2" style={{ background: p.selected ? DAY_HEAD_SELECTED : NEUTRAL_TINT }}>
+ <button type="button" onClick={p.onSelect} aria-pressed={p.selected} className="flex min-w-0 flex-1 items-start gap-2.5 text-start">
<span
className={`grid h-8 w-8 flex-none place-items-center rounded-[10px] font-geist font-bold tabular-nums shadow-sm ${p.selected ? 'bg-accent text-accent-text' : 'bg-surface-card text-content-muted'}`}
style={fs(12)}
@@ -153,7 +153,7 @@ export function PlaceRow({ place, notes, number, category }: PlaceRowProps) {
: <CatIcon size={16} strokeWidth={2} color="white" />}
</span>
{number != null && (
- <span className="absolute -bottom-1 -right-1 grid h-[18px] min-w-[18px] place-items-center rounded-full border border-edge-faint bg-surface-card px-1 font-geist font-bold tabular-nums text-content shadow-sm" style={fs(9.5)}>
+ <span className="absolute -bottom-1 -end-1 grid h-[18px] min-w-[18px] place-items-center rounded-full border border-edge-faint bg-surface-card px-1 font-geist font-bold tabular-nums text-content shadow-sm" style={fs(9.5)}>
{number}
</span>
)}
diff --git a/client/src/pages/sharedTrip/SharedListsViews.tsx b/client/src/pages/sharedTrip/SharedListsViews.tsx
index 4427befc2..20b170a33 100644
--- a/client/src/pages/sharedTrip/SharedListsViews.tsx
+++ b/client/src/pages/sharedTrip/SharedListsViews.tsx
@@ -34,7 +34,7 @@ export function SharedPackingView({ items }: { items: PackingItem[] }) {
<div className="flex flex-col gap-4">
<div className={`${CARD} px-5 py-4`}>
<SectionTitle icon={<PackageCheck size={16} strokeWidth={2} />} title={t('shared.tabPacking')}>
- <span className="ml-auto font-medium text-content-muted" style={fs(12.5, 'body')}>
+ <span className="ms-auto font-medium text-content-muted" style={fs(12.5, 'body')}>
{t('packing.progress', { packed, total: items.length, percent: Math.round((packed / items.length) * 100) })}
</span>
</SectionTitle>
@@ -185,7 +185,7 @@ export function SharedChatView({ messages }: { messages: ChatMessage[] }) {
)}
<div className="flex items-end gap-2.5">
<TripMemberAvatar username={msg.username || '?'} avatarUrl={msg.avatar ? avatarSrc(msg.avatar) : null} size={30} />
- <div className="min-w-0 max-w-[85%] rounded-2xl rounded-bl-md bg-surface-secondary px-3.5 py-2">
+ <div className="min-w-0 max-w-[85%] rounded-2xl rounded-es-md bg-surface-secondary px-3.5 py-2">
<div className="flex items-baseline gap-2">
<span className="font-semibold text-content" style={fs(12, 'body')}>{msg.username}</span>
<span className="text-content-faint" style={fs(10.5)}>
diff --git a/client/src/pages/sharedTrip/SharedUnplannedCard.tsx b/client/src/pages/sharedTrip/SharedUnplannedCard.tsx
index bbc96be0b..45179cd70 100644
--- a/client/src/pages/sharedTrip/SharedUnplannedCard.tsx
+++ b/client/src/pages/sharedTrip/SharedUnplannedCard.tsx
@@ -21,7 +21,7 @@ export function SharedUnplannedCard({ places, categories }: SharedUnplannedCardP
if (places.length === 0) return null
return (
<article className="overflow-hidden rounded-2xl border border-edge-faint bg-surface-card">
- <div className="flex items-center gap-2.5 py-2.5 pl-2.5 pr-2" style={{ background: NEUTRAL_TINT }}>
+ <div className="flex items-center gap-2.5 py-2.5 ps-2.5 pe-2" style={{ background: NEUTRAL_TINT }}>
<span className="grid h-8 w-8 flex-none place-items-center rounded-[10px] bg-surface-card text-content-muted shadow-sm">
<MapPin size={14} strokeWidth={2} />
</span>
diff --git a/client/src/styles/collections.css b/client/src/styles/collections.css
index 73fd21b2b..762bfd951 100644
--- a/client/src/styles/collections.css
+++ b/client/src/styles/collections.css
@@ -42,7 +42,7 @@
font-size: 10.5px; text-transform: uppercase; letter-spacing: .13em; color: var(--ink-3); font-weight: 600;
}
.trek-dash .col-rail-label .badge {
- margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
+ margin-inline-start: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
display: grid; place-items: center; background: var(--accent); color: var(--accent-text); font-size: 10px; letter-spacing: 0;
}
.trek-dash .col-rail-sep { height: 1px; background: var(--line); margin: 8px 6px; }
@@ -50,7 +50,7 @@
.trek-dash .col-row { position: relative; }
.trek-dash .col-row-btn {
display: flex; align-items: center; gap: 10px; width: 100%;
- padding: 9px 11px; border-radius: var(--r-sm); text-align: left;
+ padding: 9px 11px; border-radius: var(--r-sm); text-align: start;
color: var(--ink-2); font-size: 13.5px; font-weight: 500; transition: background .12s, color .12s;
}
.trek-dash .col-row-btn:hover { background: var(--surface-2); color: var(--ink); }
@@ -62,9 +62,9 @@
.trek-dash .col-row-btn .ct { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; flex-shrink: 0; }
/* The kebab lives to the right of the count and is always visible (just dimmed)
so it is easy to hit — no hover-to-reveal timing. Reserve space for it. */
-.trek-dash .col-row:has(.col-row-menu) .col-row-btn { padding-right: 34px; }
+.trek-dash .col-row:has(.col-row-menu) .col-row-btn { padding-inline-end: 34px; }
.trek-dash .col-row-menu {
- position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
+ position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%);
width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
color: var(--ink-3); opacity: .5; transition: opacity .12s, background .12s, color .12s;
}
@@ -135,7 +135,7 @@
display: flex; flex-wrap: wrap; align-items: center; gap: 8px 9px; font-size: 11.5px;
letter-spacing: .18em; text-transform: uppercase; font-weight: 600; opacity: .94;
}
-.trek-dash .col-hero-eyebrow .members { display: inline-flex; align-items: center; margin-left: 2px; }
+.trek-dash .col-hero-eyebrow .members { display: inline-flex; align-items: center; margin-inline-start: 2px; }
.trek-dash .col-hero-title {
font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1.02; margin: 0;
text-shadow: 0 1px 12px rgba(0,0,0,.3), 0 1px 3px rgba(0,0,0,.35); overflow-wrap: anywhere;
@@ -152,7 +152,7 @@
text-shadow: 0 1px 4px rgba(0,0,0,.4);
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
-.trek-dash .col-hero-links { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 4px; text-transform: none; letter-spacing: normal; }
+.trek-dash .col-hero-links { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-inline-start: 4px; text-transform: none; letter-spacing: normal; }
.trek-dash .col-hero-link {
display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px;
font-size: 12px; font-weight: 500; color: #fff; max-width: 220px;
@@ -176,19 +176,19 @@
/* member avatar stack in the eyebrow */
.trek-dash .col-av {
- width: 24px; height: 24px; border-radius: 50%; margin-left: -7px; object-fit: cover;
+ width: 24px; height: 24px; border-radius: 50%; margin-inline-start: -7px; object-fit: cover;
border: 2px solid rgba(255,255,255,.85); display: grid; place-items: center;
font-size: 10px; font-weight: 700; color: #fff;
}
-.trek-dash .col-av:first-child { margin-left: 0; }
+.trek-dash .col-av:first-child { margin-inline-start: 0; }
/* ----------------- toolbar ----------------- */
.trek-dash .col-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.trek-dash .col-toolbar-spacer { flex: 1; }
.trek-dash .col-search { position: relative; }
-.trek-dash .col-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
+.trek-dash .col-search svg { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.trek-dash .col-search input {
- height: 38px; width: 210px; padding: 0 14px 0 35px; border-radius: var(--r-sm);
+ height: 38px; width: 210px; padding-block: 0; padding-inline: 35px 14px; border-radius: var(--r-sm);
border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
font-size: 13.5px; font-family: inherit; outline: none; transition: border-color .15s, box-shadow .15s;
}
@@ -225,9 +225,9 @@
search shrinks instead. */
/* The bar itself is click-through; only the control groups catch clicks, so the
empty space between them never swallows a map/marker click. */
-.trek-dash .col-map-topbar { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 20; display: flex; align-items: center; gap: 10px; pointer-events: none; }
+.trek-dash .col-map-topbar { position: absolute; top: 12px; inset-inline: 12px; z-index: 20; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.trek-dash .col-map-group { display: flex; align-items: center; gap: 8px; pointer-events: auto; }
-.trek-dash .col-map-group.right { margin-left: auto; min-width: 0; }
+.trek-dash .col-map-group.right { margin-inline-start: auto; min-width: 0; }
.trek-dash .col-map-btn {
width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; color: var(--ink);
background: color-mix(in oklch, var(--surface) 92%, transparent); border: 1px solid var(--glass-border); box-shadow: var(--sh-md);
@@ -287,7 +287,7 @@
background: color-mix(in oklch, var(--surface-2) 70%, transparent);
border: 1px solid var(--line-2);
}
-.trek-dash .col-labelfilter-lead { color: var(--ink-3); flex-shrink: 0; margin-right: 2px; }
+.trek-dash .col-labelfilter-lead { color: var(--ink-3); flex-shrink: 0; margin-inline-end: 2px; }
/* On the map the tray joins the floating controls, so it takes their glass,
their radius and their shadow instead of the row's flat surface. */
.trek-dash .col-labelfilter.on-map {
@@ -348,7 +348,7 @@
transition: background .12s, color .12s;
}
.trek-dash .col-filter-addlabel:hover { background: var(--surface); color: var(--ink); }
-.trek-dash .col-filter-select { margin-left: auto; }
+.trek-dash .col-filter-select { margin-inline-start: auto; }
/* `.on`, not `.open`: on a dropdown "open" means the panel is down and the text
stays dark, and that rule sits later in this file, so sharing the name left
the active select button drawing a dark icon on its dark accent fill. The
@@ -361,8 +361,8 @@
.trek-dash .col-filter-btn .col-filter-chev { color: var(--ink-3); transition: transform .15s; }
.trek-dash .col-filter-btn.open .col-filter-chev { transform: rotate(180deg); }
.trek-dash .col-filter-lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
-.trek-dash .col-filter-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 190px; max-width: min(280px, calc(100vw - 28px)); max-height: 320px; overflow-y: auto; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-lg); display: flex; flex-direction: column; gap: 2px; }
-.trek-dash .col-filter-opt { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px; border-radius: 8px; font-size: 13px; color: var(--ink-2); text-align: left; transition: background .12s; }
+.trek-dash .col-filter-pop { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 40; min-width: 190px; max-width: min(280px, calc(100vw - 28px)); max-height: 320px; overflow-y: auto; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-lg); display: flex; flex-direction: column; gap: 2px; }
+.trek-dash .col-filter-opt { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px; border-radius: 8px; font-size: 13px; color: var(--ink-2); text-align: start; transition: background .12s; }
.trek-dash .col-filter-opt:hover { background: var(--surface-2); }
.trek-dash .col-filter-opt.on { color: var(--ink); font-weight: 600; }
.trek-dash .col-filter-opt .col-filter-lbl { flex: 1; max-width: none; }
@@ -439,7 +439,7 @@
backdrop-filter: blur(8px); transition: background .12s;
}
.trek-dash .col-detail-close:hover { background: rgba(0,0,0,.6); }
-.trek-dash .col-detail-head { position: absolute; left: 20px; right: 20px; bottom: 12px; z-index: 1; color: #fff; }
+.trek-dash .col-detail-head { position: absolute; inset-inline: 20px; bottom: 12px; z-index: 1; color: #fff; }
.trek-dash .col-detail-name { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 0; text-shadow: 0 1px 6px rgba(0,0,0,.55); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.trek-dash .col-detail-name-input { width: 100%; font-size: 20px; font-weight: 700; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.32); border-radius: 8px; padding: 3px 8px; color: #fff; outline: none; }
.trek-dash .col-detail-body { padding: 16px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
@@ -501,7 +501,7 @@
.trek-dash .col-detail-btn.danger:hover { background: oklch(0.6 0.2 25 / .12); }
@media (max-width: 720px) {
- .trek-dash .col-detail { left: 0; right: 0; bottom: 0; transform: none; width: 100%; max-height: 84dvh; border-radius: var(--r-xl) var(--r-xl) 0 0; }
+ .trek-dash .col-detail { inset-inline: 0; bottom: 0; transform: none; width: 100%; max-height: 84dvh; border-radius: var(--r-xl) var(--r-xl) 0 0; }
/* the read-mode footer (Edit · Copy · Remove) would otherwise clip its last
button — let it wrap, drop the growing spacer, and clear the home indicator */
.trek-dash .col-detail-footer { flex-wrap: wrap; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
@@ -567,8 +567,8 @@
/* ----------------- mobile rail drawer ----------------- */
.trek-dash .col-drawer-backdrop { position: fixed; inset: 0; z-index: 150; background: rgba(15,23,42,.5); }
.trek-dash .col-drawer {
- position: fixed; left: 0; top: 0; bottom: 0; z-index: 151; width: 288px; max-width: 82vw;
- background: var(--surface); border-right: 1px solid var(--line); padding: 12px; overflow-y: auto;
+ position: fixed; inset-inline-start: 0; top: 0; bottom: 0; z-index: 151; width: 288px; max-width: 82vw;
+ background: var(--surface); border-inline-end: 1px solid var(--line); padding: 12px; overflow-y: auto;
padding-top: calc(var(--nav-h) + 12px);
padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
diff --git a/client/src/styles/dashboard.css b/client/src/styles/dashboard.css
index 5cb14ff13..c50bc395b 100644
--- a/client/src/styles/dashboard.css
+++ b/client/src/styles/dashboard.css
@@ -298,7 +298,7 @@
pointer-events none — it must never block the pass or hero interactions. */
.trek-dash .hero-pass-wrap { position: relative; }
.trek-dash .hero-pass-overlay {
- position: absolute; left: 16px; right: 16px; bottom: 100%; height: 110px;
+ position: absolute; inset-inline: 16px; bottom: 100%; height: 110px;
pointer-events: none; z-index: 3; overflow: hidden;
}
.trek-dash .hero-overlay-frame {
@@ -310,7 +310,7 @@
justify-content: center; align-items: center; text-align: center; gap: 6px; flex: 1; min-width: 0;
}
.trek-dash .pass-cell + .pass-cell::before {
- content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px;
+ content: ""; position: absolute; inset-inline-start: 0; top: 8px; bottom: 8px; width: 1px;
background-image: linear-gradient(to bottom, oklch(0.78 0.008 70) 50%, transparent 50%);
background-size: 1px 5px;
}
@@ -336,15 +336,15 @@
.trek-dash .buddy-avatar {
width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
font-size: 13px; font-weight: 700; color: white;
- border: 2px solid oklch(0.985 0.008 75 / .95); margin-left: -8px; box-shadow: 0 2px 6px rgba(0,0,0,0.1);
+ border: 2px solid oklch(0.985 0.008 75 / .95); margin-inline-start: -8px; box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
-.trek-dash .buddy-avatar:first-child { margin-left: 0; }
+.trek-dash .buddy-avatar:first-child { margin-inline-start: 0; }
.trek-dash .buddy-more,
.trek-dash .place-more {
width: 36px; height: 36px; border-radius: 50%;
background: oklch(0.92 0.008 70); border: 2px solid oklch(0.985 0.008 75 / .95);
display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--ink);
- margin-left: -8px; box-shadow: 0 2px 6px rgba(0,0,0,0.1);
+ margin-inline-start: -8px; box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.dark .trek-dash .buddy-avatar,
.dark .trek-dash .place-thumb,
@@ -354,14 +354,14 @@
.dark .trek-dash .place-more { background: oklch(0.32 0 0); }
.trek-dash .place-thumb {
width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
- border: 2px solid oklch(0.985 0.008 75 / .95); box-shadow: 0 2px 6px rgba(0,0,0,0.1); margin-left: -8px;
+ border: 2px solid oklch(0.985 0.008 75 / .95); box-shadow: 0 2px 6px rgba(0,0,0,0.1); margin-inline-start: -8px;
}
-.trek-dash .place-thumb:first-child { margin-left: 0; }
+.trek-dash .place-thumb:first-child { margin-inline-start: 0; }
.trek-dash .places-preview .place-av {
- border-radius: 50%; line-height: 0; margin-left: -8px;
+ border-radius: 50%; line-height: 0; margin-inline-start: -8px;
border: 2px solid oklch(0.985 0.008 75 / .95); box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
-.trek-dash .places-preview .place-av:first-child { margin-left: 0; }
+.trek-dash .places-preview .place-av:first-child { margin-inline-start: 0; }
.dark .trek-dash .places-preview .place-av { border-color: oklch(0.25 0 0 / .95); }
.trek-dash .pass-cell.countdown { gap: 6px; }
@@ -402,17 +402,17 @@
.trek-dash .flag {
width: 24px; height: 24px; border-radius: 50%; overflow: hidden;
background: oklch(0.4 0.06 60); border: 2px solid oklch(0.28 0.04 50);
- margin-left: -8px; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff;
+ margin-inline-start: -8px; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff;
}
.trek-dash .flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
-.trek-dash .flag:first-child { margin-left: 0; }
+.trek-dash .flag:first-child { margin-inline-start: 0; }
.trek-dash .flag.more { background: oklch(1 0 0 / .15); color: #fff; font-size: 10px; border: 2px solid oklch(0.28 0.04 50); }
/* Behind the text, not over it (#1787). The sparkline is positioned and comes
after the label/value/delta in the DOM, so without a stacking order of its own
it painted on top of them — and on a narrow status card (the atlas row is
1.5fr 1fr 1fr 1fr next to a 400px sidebar) the 80px graphic covers more than
half the line. Decoration, so it also stops swallowing pointer events. */
-.trek-dash .spark { position: absolute; right: 18px; bottom: 18px; opacity: .55; z-index: 0; pointer-events: none; }
+.trek-dash .spark { position: absolute; inset-inline-end: 18px; bottom: 18px; opacity: .55; z-index: 0; pointer-events: none; }
.trek-dash .atlas-card .label,
.trek-dash .atlas-card .value,
.trek-dash .atlas-card .delta { position: relative; z-index: 1; }
@@ -452,7 +452,7 @@
.trek-dash .trips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 56px; transition: all 0.3s ease; }
.trek-dash .trips.list-view { grid-template-columns: 1fr; gap: 12px; }
.trek-dash .trips.list-view .trip-card { display: grid; grid-template-columns: 520px 1fr; gap: 0; height: auto; }
-.trek-dash .trips.list-view .trip-cover { border-radius: var(--r-lg) 0 0 var(--r-lg); height: 100px; aspect-ratio: unset; }
+.trek-dash .trips.list-view .trip-cover { border-radius: 0; border-start-start-radius: var(--r-lg); border-end-start-radius: var(--r-lg); height: 100px; aspect-ratio: unset; }
/* The row's cover is 100px and the title hangs from its bottom edge, so every
line it gains grows upwards: at 26px a second one starts above the status
badge at top 16px and runs through the pill. The row has 484px of text to
@@ -463,7 +463,7 @@
floating alone at the far left. */
.trek-dash .trips.list-view .trip-dates { margin-bottom: 0; gap: 6px; }
.trek-dash .trips.list-view .trip-dates .date-num { font-size: 15px; font-weight: 600; color: var(--ink); }
-.trek-dash .trips.list-view .trip-meta { display: flex; gap: 28px; padding: 0 0 0 28px; border: none; border-left: 1px solid var(--line); }
+.trek-dash .trips.list-view .trip-meta { display: flex; gap: 28px; padding: 0; padding-inline-start: 28px; border: none; border-inline-start: 1px solid var(--line); }
.trek-dash .trip-card {
position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--glass-bg);
border: 1px solid var(--glass-border);
@@ -484,7 +484,7 @@
/* Shares the dark scrim of .trip-action-btn so both overlays on the cover read
as one set, and the label survives a bright photo behind it. */
.trek-dash .trip-status {
- position: absolute; top: 16px; left: 16px; z-index: 1;
+ position: absolute; top: 16px; inset-inline-start: 16px; z-index: 1;
display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 9px;
border-radius: 999px; font-size: 11.5px; font-weight: 500; letter-spacing: 0.02em;
background: oklch(0.22 0.01 260 / .58); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
@@ -500,7 +500,7 @@
rename buttons — invisible at rest, and on a light cover the white-on-white
fill hid them even while hovering. They stay on the card now, and the fill is
a dark scrim so the white icons carry against any photo. */
-.trek-dash .trip-actions { position: absolute; top: 14px; right: 14px; z-index: 1; display: flex; gap: 6px; opacity: .92; transition: opacity .2s; }
+.trek-dash .trip-actions { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 1; display: flex; gap: 6px; opacity: .92; transition: opacity .2s; }
.trek-dash .trip-card:hover .trip-actions { opacity: 1; }
.trek-dash .trip-action-btn {
width: 38px; height: 38px; border-radius: 50%;
@@ -511,7 +511,7 @@
}
.trek-dash .trip-action-btn:hover { background: oklch(0.22 0.01 260 / .82); transform: scale(1.06); }
.trek-dash .trip-action-btn svg { width: 17px; height: 17px; }
-.trek-dash .trip-cover-content { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; color: #fff; }
+.trek-dash .trip-cover-content { position: absolute; inset-inline: 18px; bottom: 16px; z-index: 1; color: #fff; }
.trek-dash .trip-name {
font-size: 26px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; margin: 0;
text-shadow: 0 1px 7px oklch(0 0 0 / .3), 0 1px 2px oklch(0 0 0 / .38);
@@ -660,7 +660,7 @@
.trek-dash .col-badges { display: flex; flex-direction: column; gap: 9px; }
.trek-dash .col-badge {
position: relative; display: block; width: 100%; height: 56px; border-radius: 14px; overflow: hidden;
- cursor: pointer; text-align: left; box-shadow: var(--sh-sm); transition: transform .15s cubic-bezier(.2,.7,.2,1), box-shadow .2s;
+ cursor: pointer; text-align: start; box-shadow: var(--sh-sm); transition: transform .15s cubic-bezier(.2,.7,.2,1), box-shadow .2s;
}
.trek-dash .col-badge:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.trek-dash .col-badge-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background-size: cover; background-position: center; }
@@ -679,7 +679,7 @@
/* ----------------- responsive ----------------- */
@media (max-width: 1280px) {
- .trek-dash .page { padding-left: 32px; padding-right: 32px; grid-template-columns: 1fr; }
+ .trek-dash .page { padding-inline: 32px; grid-template-columns: 1fr; }
.trek-dash .page-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
.trek-dash .page-sidebar .tool { flex: 1 1 300px; }
.trek-dash .hero-title { font-size: 72px; }
@@ -715,9 +715,9 @@
}
.trek-dash .pass-card .pass-cell {
padding: 14px 12px; gap: 8px; flex: none;
- border-right: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2);
+ border-inline-end: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2);
}
- .trek-dash .pass-card .pass-cell:nth-child(2n) { border-right: 0; }
+ .trek-dash .pass-card .pass-cell:nth-child(2n) { border-inline-end: 0; }
.trek-dash .pass-card .pass-cell:nth-last-child(-n+2) { border-bottom: 0; }
.trek-dash .pass-card .pass-cell + .pass-cell::before { display: none; }
.trek-dash .pass-card .date-num { font-size: 22px; }
@@ -729,12 +729,12 @@
.trek-dash .pass-card .place-av,
.trek-dash .pass-card .place-more {
width: 28px; height: 28px; border-radius: 50%; flex: none;
- border: 2px solid var(--surface); margin-left: -8px;
+ border: 2px solid var(--surface); margin-inline-start: -8px;
box-shadow: 0 1px 3px oklch(0 0 0 / .12);
font-size: 10px; font-weight: 700; line-height: 0;
}
.trek-dash .pass-card .buddy-avatar:first-child,
- .trek-dash .pass-card .place-av:first-child { margin-left: 0; }
+ .trek-dash .pass-card .place-av:first-child { margin-inline-start: 0; }
/* Atlas → single row of stat cards. Passport (countries) and distance are
hidden on mobile; only Trips total + Days traveled remain. */
@@ -768,7 +768,7 @@
The counts stay grid-view-only on mobile. */
.trek-dash .trips.list-view .trip-card { grid-template-columns: 1fr; min-height: 0; }
.trek-dash .trips.list-view .trip-cover { height: 110px; aspect-ratio: unset; border-radius: 0; }
- .trek-dash .trips.list-view .trip-cover-content { left: 16px; right: 16px; bottom: 11px; }
+ .trek-dash .trips.list-view .trip-cover-content { inset-inline: 16px; bottom: 11px; }
/* Taller banner (110px), smaller type and the title 11px off the bottom: two
lines end below the badge here, so the phone row keeps them. */
.trek-dash .trips.list-view .trip-name { font-size: 18px; -webkit-line-clamp: 2; }
@@ -784,7 +784,7 @@
/* Floating action button — Neuer Trip */
.trek-dash .fab-new-trip {
- position: fixed; right: 28px; bottom: 28px; z-index: 150;
+ position: fixed; inset-inline-end: 28px; bottom: 28px; z-index: 150;
display: inline-flex; align-items: center; gap: 9px;
height: 56px; padding: 0 24px; border: none; border-radius: 999px;
cursor: pointer; background: #111827; color: #fff;
diff --git a/client/src/styles/studio.css b/client/src/styles/studio.css
index ffb0bec2e..8de11ed9a 100644
--- a/client/src/styles/studio.css
+++ b/client/src/styles/studio.css
@@ -97,7 +97,8 @@
display: flex;
align-items: center;
gap: 14px;
- padding: 0 18px 0 10px;
+ padding-block: 0;
+ padding-inline: 10px 18px;
min-width: 0;
background: var(--glass-bg);
border-bottom: 1px solid var(--glass-border);
@@ -142,10 +143,10 @@
align-items: center;
gap: 7px;
flex: none;
- margin-left: auto;
+ margin-inline-start: auto;
}
/* The undo/redo pair belongs together; everything else in the group breathes. */
-.trek-dash .st-bar-group .st-tool.is-icon + .st-tool.is-icon { margin-left: -5px; }
+.trek-dash .st-bar-group .st-tool.is-icon + .st-tool.is-icon { margin-inline-start: -5px; }
.trek-dash .st-tool {
display: inline-flex;
@@ -188,7 +189,7 @@
.trek-dash .st-menu {
position: absolute;
top: calc(100% + 8px);
- right: 0;
+ inset-inline-end: 0;
z-index: 3;
min-width: 240px;
padding: 8px;
@@ -220,7 +221,7 @@
gap: 14px;
padding: 9px 16px;
border-radius: 10px;
- text-align: left;
+ text-align: start;
color: var(--ink-2);
transition: background .16s, color .16s;
}
@@ -282,7 +283,7 @@
.trek-dash .st-inspector {
position: absolute;
top: 56px;
- right: 0;
+ inset-inline-end: 0;
bottom: 0;
width: 300px;
box-shadow: var(--sh-lg);
@@ -293,7 +294,7 @@
.trek-dash .st-side {
position: absolute;
top: 56px;
- left: 64px;
+ inset-inline-start: 64px;
bottom: 0;
width: 236px;
box-shadow: var(--sh-lg);
@@ -309,8 +310,8 @@
min-height: 0;
z-index: 1;
}
-.trek-dash .st-pages { border-right: 1px solid var(--glass-border); }
-.trek-dash .st-inspector { border-left: 1px solid var(--glass-border); }
+.trek-dash .st-pages { border-inline-end: 1px solid var(--glass-border); }
+.trek-dash .st-inspector { border-inline-start: 1px solid var(--glass-border); }
.trek-dash .st-panel-head {
display: flex;
@@ -386,7 +387,7 @@
border: 2px solid transparent;
padding: 3px;
transition: border-color .18s, background .18s;
- text-align: left;
+ text-align: start;
}
.trek-dash .st-thumb:focus { outline: none; }
.trek-dash .st-thumb:focus-visible { border-color: var(--accent); }
@@ -499,7 +500,7 @@
gap: 2px;
padding: 8px 6px;
background: var(--glass-bg);
- border-right: 1px solid var(--glass-border);
+ border-inline-end: 1px solid var(--glass-border);
backdrop-filter: var(--glass-blur);
-webkit-backdrop-filter: var(--glass-blur);
z-index: 1;
@@ -527,7 +528,7 @@
.trek-dash .st-rail-btn:hover { background: color-mix(in oklch, var(--ink) 6%, transparent); color: var(--ink-2); }
.trek-dash .st-rail-btn.is-on { background: var(--accent-soft); color: var(--accent-ink); }
-.trek-dash .st-side { border-right: 1px solid var(--glass-border); }
+.trek-dash .st-side { border-inline-end: 1px solid var(--glass-border); }
.trek-dash .st-tabs {
display: flex;
@@ -562,7 +563,7 @@
justify-content: center;
min-width: 16px;
height: 15px;
- margin-left: 5px;
+ margin-inline-start: 5px;
padding: 0 4px;
border-radius: 999px;
background: color-mix(in oklch, var(--ink) 10%, transparent);
@@ -641,7 +642,7 @@
background: transparent;
color: var(--ink-3);
font-weight: 500;
- padding-left: 2px;
+ padding-inline-start: 2px;
flex: 0 1 auto;
min-width: 0;
}
@@ -682,7 +683,7 @@
height: 44px;
padding: 0 13px;
border-radius: 10px;
- text-align: left;
+ text-align: start;
color: var(--ink);
background: color-mix(in oklch, var(--surface) 65%, transparent);
border: 1px solid var(--line);
@@ -972,7 +973,7 @@
/* A figure in the head, for a section worth reading while it is folded. It
sits against the caret rather than the label, so the labels stay aligned. */
.trek-dash .st-section-badge {
- margin-left: auto;
+ margin-inline-start: auto;
font-size: 10.5px;
font-weight: 600;
font-variant-numeric: tabular-nums;
@@ -1019,12 +1020,12 @@
.trek-dash .st-num { display: flex; align-items: center; gap: 8px; min-width: 0; }
.trek-dash .st-num-label { flex: none; font-size: 11px; color: var(--ink-3); min-width: 13px; }
.trek-dash .st-num-box { position: relative; flex: 1; min-width: 0; display: flex; }
-.trek-dash .st-num-box .st-input { padding-right: 26px; }
+.trek-dash .st-num-box .st-input { padding-inline-end: 26px; }
/* The unit sits inside the field, so the number and what it is in read as one
value rather than as a field with a word next to it. */
.trek-dash .st-num-unit {
position: absolute;
- right: 9px;
+ inset-inline-end: 9px;
top: 50%;
transform: translateY(-50%);
font-size: 10.5px;
@@ -1398,7 +1399,7 @@
line-height: 1.3;
font-weight: 500;
color: var(--ink-3);
- text-align: left;
+ text-align: start;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@@ -1416,7 +1417,7 @@
.trek-dash .st-thumb-actions {
position: absolute;
top: 7px;
- right: 7px;
+ inset-inline-end: 7px;
display: flex;
gap: 2px;
padding: 2px;
@@ -1697,7 +1698,7 @@
gap: 7px;
height: 28px;
padding: 0 10px 0 7px;
- margin-left: 4px;
+ margin-inline-start: 4px;
border-radius: 999px;
border: 1px solid var(--line);
background: var(--surface-2);
@@ -1717,15 +1718,15 @@
/* The ring is the badge's own fill, so the faces read as cut out of it. */
border: 1.5px solid var(--surface-2);
/* Overlapped, the way a stack of faces reads as a group rather than a list. */
- margin-right: -7px;
+ margin-inline-end: -7px;
}
-.trek-dash .st-peer-dot:last-child { margin-right: 0; }
+.trek-dash .st-peer-dot:last-child { margin-inline-end: 0; }
.trek-dash .st-peer-dot img { width: 100%; height: 100%; object-fit: cover; }
.trek-dash .st-peer-more {
font-size: 10.5px;
font-weight: 600;
color: var(--ink-3);
- margin-left: 11px;
+ margin-inline-start: 11px;
}
.trek-dash .st-peer-label {
font-size: 11px;
@@ -1925,7 +1926,7 @@
}
/* The name takes the slack; the count and the chevron stay at the right edge. */
.trek-dash .st-filter-chip > button:first-child { flex: 1; justify-content: flex-start; }
-.trek-dash .st-filter-chip > button + button { padding: 0 8px 0 3px; margin-left: -5px; }
+.trek-dash .st-filter-chip > button + button { padding-block: 0; padding-inline: 3px 8px; margin-inline-start: -5px; }
.trek-dash .st-filter-chip > button:hover { background: color-mix(in oklch, var(--ink) 7%, transparent); }
.trek-dash .st-filter-chip.is-on > button:hover { background: color-mix(in oklch, var(--accent-text, #fff) 14%, transparent); }
.trek-dash .st-filter-name {
@@ -1934,7 +1935,7 @@
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
- text-align: left;
+ text-align: start;
}
/* The count, set like the one in the tabs: a footnote, not part of the name. */
.trek-dash .st-filter-chip em {
@@ -1947,8 +1948,7 @@
/* Hung under the chip and as wide as it: a menu narrower than the control that
opens it reads as belonging to something else. */
.trek-dash .st-filter-row .st-menu {
- left: 0;
- right: 0;
+ inset-inline: 0;
min-width: 0;
max-width: none;
}
diff --git a/client/tests/unit/mobile/dashboard/MDashboard.test.tsx b/client/tests/unit/mobile/dashboard/MDashboard.test.tsx
index dfab10df9..09ff77a74 100644
--- a/client/tests/unit/mobile/dashboard/MDashboard.test.tsx
+++ b/client/tests/unit/mobile/dashboard/MDashboard.test.tsx
@@ -562,11 +562,11 @@ describe('MDashboard', () => {
render(<MDashboard />);
// flex-1 on the scroll box stretched the grey pill track all the way to the
- // calendar icon on phones from ~400px up; the icons ride on ml-auto instead.
+ // calendar icon on phones from ~400px up; the icons ride on ms-auto instead.
const chip = await screen.findByText('dashboard.filter.planned');
const wrapper = chip.closest('button')!.parentElement!.parentElement as HTMLElement;
expect(wrapper.className).not.toContain('flex-1');
expect(screen.getByRole('button', { name: 'dashboard.subscribeAllTrips' }).className)
- .toContain('ml-auto');
+ .toContain('ms-auto');
});
});
diff --git a/client/tests/unit/mobile/journey/MJourneyEntrySheet.test.tsx b/client/tests/unit/mobile/journey/MJourneyEntrySheet.test.tsx
index a4fb8af29..47029f37d 100644
--- a/client/tests/unit/mobile/journey/MJourneyEntrySheet.test.tsx
+++ b/client/tests/unit/mobile/journey/MJourneyEntrySheet.test.tsx
@@ -808,7 +808,7 @@ describe('MJourneyEntrySheet full editor', () => {
fireEvent.change(screen.getByPlaceholderText('Search location...'), { target: { value: 'Roma' } });
await waitFor(() => expect(calls).toBe(1), { timeout: 3000 });
- expect(document.querySelector('.absolute.left-0.right-0.top-full')).not.toBeInTheDocument();
+ expect(document.querySelector('.absolute.inset-x-0.top-full')).not.toBeInTheDocument();
});
it('FE-MOB-JENTRY-036: leaves the strip untouched when the link call returns nothing', async () => {
@@ -860,7 +860,7 @@ describe('MJourneyEntrySheet full editor', () => {
await waitFor(() => expect(calls).toBe(1), { timeout: 3000 });
expect(screen.getByDisplayValue('Roma')).toBeInTheDocument();
- expect(document.querySelector('.absolute.left-0.right-0.top-full')).not.toBeInTheDocument();
+ expect(document.querySelector('.absolute.inset-x-0.top-full')).not.toBeInTheDocument();
});
it('FE-MOB-JENTRY-025: asks before discarding a dirty editor', async () => {