Skip to content

Commit ddfaad5

Browse files
committed
fix: added a unique shadow variable for the scroll button
1 parent 1b4d35a commit ddfaad5

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

ts/components/SessionScrollButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const SessionScrollButtonDiv = styled.div`
1313
1414
.session-icon-button {
1515
background-color: var(--message-bubbles-received-background-color);
16-
box-shadow: var(--drop-shadow);
16+
box-shadow: var(--scroll-button-shadow);
1717
}
1818
`;
1919

ts/interactions/conversationInteractions.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@ export function showInviteContactByConvoId(conversationId: string) {
255255
window.inboxStore?.dispatch(updateInviteContactModal({ conversationId }));
256256
}
257257

258-
259258
export function showAddModeratorsByConvoId(conversationId: string) {
260259
window.inboxStore?.dispatch(updateAddModeratorsModal({ conversationId }));
261260
}

ts/themes/globals.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export type ThemeGlobals = {
5555
'--shadow-color': string;
5656
'--drop-shadow': string;
5757
'--context-menu-shadow-color': string;
58+
'--scroll-button-shadow': string;
5859

5960
/* Path Button */
6061
'--button-path-default-color': string;
@@ -128,13 +129,14 @@ export const THEME_GLOBALS: ThemeGlobals = {
128129
'--shadow-color': 'var(--black-color)',
129130
'--drop-shadow': '0 0 4px 0 var(--shadow-color)',
130131
'--context-menu-shadow-color': `rgba(${hexColorToRGB(COLORS.BLACK)}, 0.22)`,
132+
'--scroll-button-shadow': `0 0 7px 0 rgba(${hexColorToRGB(COLORS.BLACK)}, 0.5)`,
131133

132134
'--button-path-default-color': COLORS.PATH.DEFAULT,
133135
'--button-path-connecting-color': COLORS.PATH.CONNECTING,
134136
'--button-path-error-color': COLORS.PATH.ERROR,
135137

136138
'--modal-background-color': `rgba(${hexColorToRGB(COLORS.BLACK)}, 0.3)`,
137-
'--modal-drop-shadow': `0px 0px 10px rgba(${hexColorToRGB(COLORS.BLACK)}, 0.22)`,
139+
'--modal-drop-shadow': `0px 0px 10px rgba(${hexColorToRGB(COLORS.BLACK)}, 0.22)`,
138140

139141
'--lightbox-background-color': `rgba(${hexColorToRGB(COLORS.BLACK)}, 0.8)`,
140142
'--lightbox-caption-background-color': 'rgba(192, 192, 192, .40)',

0 commit comments

Comments
 (0)