Skip to content

Commit 023afb4

Browse files
fryorcrakenclaude
andcommitted
Reposition system and missing messages windows to right side
Both windows now appear tucked on the right side of the screen: - System window positioned at top-right - Missing messages window positioned below system window - Updated mobile responsive styles to maintain right alignment - Fixed drag initialization to handle right-positioned elements 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent f91d5cf commit 023afb4

File tree

1 file changed

+19
-14
lines changed

1 file changed

+19
-14
lines changed

index.html

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@
553553
.system-window, .missing-messages-window {
554554
position: fixed;
555555
top: 70px;
556-
left: 20px;
556+
right: 20px;
557557
width: 300px;
558558
max-height: 250px;
559559
background: rgba(0, 17, 0, 0.95);
@@ -566,9 +566,8 @@
566566
}
567567

568568
.missing-messages-window {
569-
top: 70px;
569+
top: 330px;
570570
right: 20px;
571-
left: auto;
572571
border-color: #ff6600;
573572
box-shadow: 0 0 15px rgba(255, 102, 0, 0.3);
574573
}
@@ -701,14 +700,14 @@
701700
@media (max-width: 768px) {
702701
.system-window, .missing-messages-window {
703702
top: 50px;
704-
left: 10px;
703+
right: 10px;
705704
width: 250px;
706705
max-height: 150px;
707706
}
708707

709708
.missing-messages-window {
709+
top: 210px;
710710
right: 10px;
711-
left: auto;
712711
}
713712

714713
.system-window-content, .missing-messages-window-content {
@@ -724,16 +723,15 @@
724723
@media (max-width: 480px) {
725724
.system-window, .missing-messages-window {
726725
width: calc(100vw - 40px);
726+
right: 10px;
727727
}
728728

729729
.system-window {
730-
left: 10px;
730+
top: 50px;
731731
}
732732

733733
.missing-messages-window {
734-
right: 10px;
735-
left: auto;
736-
top: 220px;
734+
top: 210px;
737735
}
738736
}
739737
</style>
@@ -1000,6 +998,7 @@
1000998

1001999
this.systemWindow.style.left = xOffset + 'px';
10021000
this.systemWindow.style.top = yOffset + 'px';
1001+
this.systemWindow.style.right = 'auto'; // Clear right positioning when dragging
10031002
}
10041003
});
10051004

@@ -1045,6 +1044,7 @@
10451044

10461045
this.systemWindow.style.left = xOffset + 'px';
10471046
this.systemWindow.style.top = yOffset + 'px';
1047+
this.systemWindow.style.right = 'auto'; // Clear right positioning when dragging
10481048
}
10491049
});
10501050

@@ -1057,7 +1057,12 @@
10571057

10581058
// Initialize position from current CSS
10591059
const computedStyle = window.getComputedStyle(this.systemWindow);
1060-
xOffset = parseInt(computedStyle.left) || 20;
1060+
const rightValue = parseInt(computedStyle.right);
1061+
if (!isNaN(rightValue)) {
1062+
xOffset = window.innerWidth - this.systemWindow.offsetWidth - rightValue;
1063+
} else {
1064+
xOffset = parseInt(computedStyle.left) || (window.innerWidth - this.systemWindow.offsetWidth - 20);
1065+
}
10611066
yOffset = parseInt(computedStyle.top) || 70;
10621067
}
10631068

@@ -1102,6 +1107,7 @@
11021107

11031108
this.missingMessagesWindow.style.left = xOffset + 'px';
11041109
this.missingMessagesWindow.style.top = yOffset + 'px';
1110+
this.missingMessagesWindow.style.right = 'auto'; // Clear right positioning when dragging
11051111
}
11061112
});
11071113

@@ -1147,6 +1153,7 @@
11471153

11481154
this.missingMessagesWindow.style.left = xOffset + 'px';
11491155
this.missingMessagesWindow.style.top = yOffset + 'px';
1156+
this.missingMessagesWindow.style.right = 'auto'; // Clear right positioning when dragging
11501157
}
11511158
});
11521159

@@ -1163,11 +1170,9 @@
11631170
if (!isNaN(rightValue)) {
11641171
xOffset = window.innerWidth - this.missingMessagesWindow.offsetWidth - rightValue;
11651172
} else {
1166-
xOffset = parseInt(computedStyle.left) || 20;
1173+
xOffset = parseInt(computedStyle.left) || (window.innerWidth - this.missingMessagesWindow.offsetWidth - 20);
11671174
}
1168-
yOffset = parseInt(computedStyle.top) || 70;
1169-
this.missingMessagesWindow.style.left = xOffset + 'px';
1170-
this.missingMessagesWindow.style.right = 'auto';
1175+
yOffset = parseInt(computedStyle.top) || 330;
11711176
}
11721177

11731178
// Utility function to convert bytes to hex string

0 commit comments

Comments
 (0)