(Arabic and its variants, Persian/Farsi, Hebrew, Uyghur, Uzbek-Arabic and Yiddish — the languages flagged `rtl: true` in `imports/i18n/languages.js`). Previously only some pages flipped. The root `<html>` element now gets a reactive `dir="rtl"`/`dir="ltr"` attribute that follows the chosen language, so the whole UI mirrors at once. To make this work on every page rather than a handful, all directional component CSS was converted to CSS logical properties (`margin-left`→`margin-inline-start`, `left:`→`inset-inline-start:`, `text-align: left`→`text-align: start`, `float: left`→`float: inline-start`, and the mirror-image right/end variants) across 48 stylesheets, which flip automatically with `dir`. Horizontal-centering rules using `left: 50%` + `transform: translate(-50%, …)` were intentionally kept physical, since those already center correctly in both directions. The calendar view also renders RTL. Thanks to xet7 and Claude. - Tests for the RTL UI. A fast, server-less `tests/rtl.test.js` (run with `node tests/rtl.test.js`) checks that exactly the expected languages are flagged `rtl: true`, that the direction helper maps each language to the right `dir` value, that the root `<html>` and the client keep `dir` in sync, and — as a regression guard — that component CSS keeps using logical properties (no physical `margin-left`/`float: left`/bare `left:` offsets sneak back in). A Playwright browser spec `tests/playwright/specs/18-rtl-layout.e2e.js` drives the app in both English (LTR) and Arabic (RTL) and asserts, on the boards list, board view, card details, my-cards / due-cards / global-search, the admin settings page and the login page, that the direction is correct, the translated text is visible, and leading-edge content (the boards menu, the first board list) sits on the correct side. Thanks to xet7 and Claude. - Fixed the "Meteor unit tests" CI job hanging until its 45-minute timeout. The workflow set `TEST_WATCH: '0'`, but meteortesting:mocha computes `testWatch: TEST_WATCH || …` and the string `'0'` is truthy in JavaScript, so it turned on watch mode and the process never exited. Removing the env var lets `meteor test --once` finish and exit with the correct status. Thanks to xet7 and Claude ! Fixes #6136, fixes #3376, fixes #884
121 lines
2.3 KiB
CSS
121 lines
2.3 KiB
CSS
.member {
|
|
border-radius: 3px;
|
|
display: block;
|
|
position: relative;
|
|
float: inline-start;
|
|
height: clamp(24px, 3.5vw, 36px);
|
|
width: clamp(24px, 3.5vw, 36px);
|
|
margin: .3vh;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
z-index: 1;
|
|
text-decoration: none;
|
|
border-radius: 50%;
|
|
}
|
|
.member .avatar {
|
|
overflow: hidden;
|
|
border-radius: 50%;
|
|
}
|
|
.member .avatar.avatar-initials {
|
|
height: 70%;
|
|
width: 70%;
|
|
padding: 15%;
|
|
background-color: #dbdbdb;
|
|
color: #444;
|
|
position: absolute;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.member .avatar.avatar-image {
|
|
object-fit: cover;
|
|
object-position: center;
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
.member .member-presence-status {
|
|
background-color: #b3b3b3;
|
|
border: 1px solid #fff;
|
|
border-radius: 50%;
|
|
height: 7px;
|
|
width: 7px;
|
|
position: absolute;
|
|
inset-inline-end: -1px;
|
|
bottom: -1px;
|
|
border: 1px solid #fff;
|
|
z-index: 15;
|
|
}
|
|
.member .member-presence-status.active {
|
|
background: #64c464;
|
|
border-color: #daf1da;
|
|
}
|
|
.member .member-presence-status.idle {
|
|
background: #e4e467;
|
|
border-color: #f7f7d4;
|
|
}
|
|
.member .member-presence-status.disconnected {
|
|
background: #bdbdbd;
|
|
border-color: #ededed;
|
|
}
|
|
.member .member-presence-status.pending {
|
|
background: #e44242;
|
|
border-color: #f1dada;
|
|
}
|
|
.member .edit-avatar {
|
|
position: absolute;
|
|
top: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
border-radius: 50%;
|
|
background: #000;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
opacity: 0;
|
|
}
|
|
.member .edit-avatar:hover {
|
|
opacity: 0.6;
|
|
}
|
|
.member .edit-avatar i.fa-pencil {
|
|
color: #fff;
|
|
}
|
|
.member.add-member {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 0 0 2px #bfbfbf inset;
|
|
}
|
|
.member.add-member:hover,
|
|
.member.add-member.is-active {
|
|
box-shadow: 0 0 0 2px #666 inset;
|
|
}
|
|
.atMention {
|
|
background: #dbdbdb;
|
|
border-radius: 3px;
|
|
padding: 1px 4px;
|
|
margin: -1px 0;
|
|
display: inline-block;
|
|
}
|
|
.atMention.me {
|
|
background: #cfdfe8;
|
|
}
|
|
.mini-profile-info {
|
|
margin-top: 10px;
|
|
}
|
|
.mini-profile-info .info {
|
|
padding-top: 5px;
|
|
}
|
|
.mini-profile-info .info h3,
|
|
.mini-profile-info .info p {
|
|
margin-bottom: 0;
|
|
padding-inline-start: 0;
|
|
}
|
|
.mini-profile-info .info p {
|
|
padding-top: 0;
|
|
}
|
|
.mini-profile-info .member {
|
|
width: clamp(40px, 5vw, 60px);
|
|
height: clamp(40px, 5vw, 60px);
|
|
margin-inline-end: 10px;
|
|
}
|