From fb6dce086a750548e7005322c9a4de1710aade6d Mon Sep 17 00:00:00 2001 From: Kiran Niranjan Date: Tue, 2 Feb 2021 13:48:14 +0530 Subject: [PATCH] fix: SDA-2948 (Redesign notification) (#1186) * fix: SDA-2948 - Redesign notification * fix: SDA-2948 - Fix background color --- src/renderer/components/notification-comp.tsx | 16 +++-- src/renderer/notification-handler.ts | 4 +- src/renderer/notification.ts | 6 +- src/renderer/styles/notification-comp.less | 68 ++++++++++++------- 4 files changed, 59 insertions(+), 35 deletions(-) diff --git a/src/renderer/components/notification-comp.tsx b/src/renderer/components/notification-comp.tsx index 6c172579..ca637395 100644 --- a/src/renderer/components/notification-comp.tsx +++ b/src/renderer/components/notification-comp.tsx @@ -41,8 +41,8 @@ type mouseEventButton = type keyboardEvent = React.KeyboardEvent; // Notification container height -const CONTAINER_HEIGHT = 100; -const CONTAINER_HEIGHT_WITH_INPUT = 132; +const CONTAINER_HEIGHT = 88; +const CONTAINER_HEIGHT_WITH_INPUT = 120; export default class NotificationComp extends React.Component<{}, IState> { private readonly eventHandlers = { @@ -137,11 +137,17 @@ export default class NotificationComp extends React.Component<{}, IState> { const containerClass = classNames('container', { 'external-border': isExternal, }); + const actionButtonContainer = classNames('rte-button-container', { + 'action-container-margin': !isInputHidden, + }); return (
{
{ ref={this.input} />
-
+