mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
fix(web): timeline and asset viewer RTL support (#26513)
This commit is contained in:
@@ -21,7 +21,7 @@ export class DayGroup {
|
||||
intersecting = $derived.by(() => this.viewerAssets.some((viewAsset) => viewAsset.intersecting));
|
||||
|
||||
#top: number = $state(0);
|
||||
#left: number = $state(0);
|
||||
#start: number = $state(0);
|
||||
#row = $state(0);
|
||||
#col = $state(0);
|
||||
#deferredLayout = false;
|
||||
@@ -41,12 +41,12 @@ export class DayGroup {
|
||||
this.#top = value;
|
||||
}
|
||||
|
||||
get left() {
|
||||
return this.#left;
|
||||
get start() {
|
||||
return this.#start;
|
||||
}
|
||||
|
||||
set left(value: number) {
|
||||
this.#left = value;
|
||||
set start(value: number) {
|
||||
this.#start = value;
|
||||
}
|
||||
|
||||
get row() {
|
||||
|
||||
@@ -39,7 +39,7 @@ export function layoutMonthGroup(timelineManager: TimelineManager, month: MonthG
|
||||
if (fitsInCurrentRow) {
|
||||
dayGroup.row = dayGroupRow;
|
||||
dayGroup.col = dayGroupCol++;
|
||||
dayGroup.left = cumulativeWidth;
|
||||
dayGroup.start = cumulativeWidth;
|
||||
dayGroup.top = cumulativeHeight;
|
||||
|
||||
cumulativeWidth += dayGroup.width + timelineManager.gap;
|
||||
@@ -53,7 +53,7 @@ export function layoutMonthGroup(timelineManager: TimelineManager, month: MonthG
|
||||
// Position at start of new row
|
||||
dayGroup.row = dayGroupRow;
|
||||
dayGroup.col = dayGroupCol;
|
||||
dayGroup.left = 0;
|
||||
dayGroup.start = 0;
|
||||
dayGroup.top = cumulativeHeight;
|
||||
|
||||
dayGroupCol++;
|
||||
|
||||
Reference in New Issue
Block a user