Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

fix(dashboard): mirror chats dividers and accents in RTL

Yudhi Armyndharis1814c6bf9fd6
diff --git a/dashboard/src/pages/Chats.css b/dashboard/src/pages/Chats.css
index a6a062b04..9b143e772 100644
--- a/dashboard/src/pages/Chats.css
+++ b/dashboard/src/pages/Chats.css
@@ -24,7 +24,7 @@
============================================================================= */
.chats-page .chats-sidebar {
width: 320px;
- border-right: 1px solid var(--border);
+ border-inline-end: 1px solid var(--border);
display: flex;
flex-direction: column;
background: var(--bg-white);
@@ -360,7 +360,7 @@
/* Reset the global `button` padding (0.6em 1.2em): with box-sizing:border-box it would consume
the whole 36px width and collapse the arrow icon to 0px wide, making the button look empty. */
padding: 0;
- margin-left: -0.5rem;
+ margin-inline-start: -0.5rem;
background: transparent;
border: none;
border-radius: 8px;
@@ -549,14 +549,14 @@
.chats-page .message-bubble.incoming {
background: var(--bg-white);
color: var(--text-primary);
- border-bottom-left-radius: 2px;
+ border-end-start-radius: 2px;
border: 1px solid var(--border);
}
.chats-page .message-bubble.outgoing {
background: #d9fdd3; /* Soft WhatsApp Green */
color: #111b21;
- border-bottom-right-radius: 2px;
+ border-end-end-radius: 2px;
}
/* Dark theme outgoing chat bubble override */
@@ -876,8 +876,8 @@
}
.chats-page .message-bubble.media-type {
- border-top-left-radius: 12px;
- border-top-right-radius: 12px;
+ border-start-start-radius: 12px;
+ border-start-end-radius: 12px;
}
/* =============================================================================
@@ -899,7 +899,7 @@
.chats-page .chats-sidebar {
width: 100%;
height: 100%;
- border-right: none;
+ border-inline-end: none;
}
.chats-page .chats-room {
@@ -940,7 +940,7 @@
.main-content:not(.expanded) .chats-page .chats-sidebar {
width: 100%;
height: 100%;
- border-right: none;
+ border-inline-end: none;
}
.main-content:not(.expanded) .chats-page .chats-layout.has-active-chat .chats-sidebar {
@@ -1179,11 +1179,11 @@
}
.chats-page .message-bubble-wrapper.outgoing .message-reactions-badge {
- right: 12px;
+ inset-inline-end: 12px;
}
.chats-page .message-bubble-wrapper.incoming .message-reactions-badge {
- left: 12px;
+ inset-inline-start: 12px;
}
.chats-page .reaction-emoji-span {
@@ -1193,13 +1193,13 @@
.chats-page .reactions-count-span {
font-weight: 600;
color: var(--text-secondary);
- margin-left: 2px;
+ margin-inline-start: 2px;
}
/* Quoted Box inside Bubble */
.chats-page .message-quote-box {
background: rgba(0, 0, 0, 0.04);
- border-left: 4px solid var(--primary);
+ border-inline-start: 4px solid var(--primary);
border-radius: 4px;
padding: 0.375rem 0.625rem;
margin-bottom: 0.5rem;
@@ -1210,7 +1210,7 @@
.chats-page .message-bubble.outgoing .message-quote-box {
background: rgba(0, 0, 0, 0.05);
- border-left-color: #008069;
+ border-inline-start-color: #008069;
}
[data-theme='dark'] .chats-page .message-quote-box {
@@ -1325,8 +1325,8 @@
.chats-page .replying-preview-content {
flex: 1;
- border-left: 4px solid var(--primary);
- padding-left: 0.75rem;
+ border-inline-start: 4px solid var(--primary);
+ padding-inline-start: 0.75rem;
display: flex;
flex-direction: column;
min-width: 0;
@@ -1529,7 +1529,7 @@
}
.chats-page .status-compose-modal .compose-type-toggle button:first-child {
- border-right: 1px solid var(--border);
+ border-inline-end: 1px solid var(--border);
}
.chats-page .status-compose-modal .compose-type-toggle button.active {
diff --git a/dashboard/src/pages/rtl-sides.test.ts b/dashboard/src/pages/rtl-sides.test.ts
index 839312aab..7afa21b72 100644
--- a/dashboard/src/pages/rtl-sides.test.ts
+++ b/dashboard/src/pages/rtl-sides.test.ts
@@ -21,3 +21,7 @@ function physicalSides(file: string): string[] {
test('the API keys stylesheet uses logical sides only', () => {
assert.deepEqual(physicalSides('./ApiKeys.css'), []);
});
+
+test('the chats stylesheet uses logical sides only', () => {
+ assert.deepEqual(physicalSides('./Chats.css'), []);
+});