forked from TouK/nussknacker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(visual regresion): notification font size (TouK#1941)
- Loading branch information
1 parent
aa39923
commit 4424273
Showing
5 changed files
with
31 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import {isEmpty} from "lodash" | ||
import React from "react" | ||
import Dotdotdot from "react-dotdotdot" | ||
import InlinedSvgs from "../../assets/icons/InlinedSvgs" | ||
import HeaderIcon from "../tips/HeaderIcon" | ||
import classnames from "./notifications.styl" | ||
|
||
interface Props { | ||
icon: string, | ||
message?: string, | ||
details?: string, | ||
} | ||
|
||
export default function Notification({icon, message, details}: Props): JSX.Element { | ||
return ( | ||
<div className={classnames.notification}> | ||
<div className="icon" dangerouslySetInnerHTML={{__html: icon}}/> | ||
<div className={classnames.notificationDetails}> | ||
{!isEmpty(message) && <span className={classnames.notificationText}>{message}</span>} | ||
{!isEmpty(details) && ( | ||
<Dotdotdot clamp={`380px`}> | ||
<span className={classnames.notificationText}>{details}</span> | ||
</Dotdotdot> | ||
)} | ||
</div> | ||
<HeaderIcon className={classnames.dismissIcon} icon={InlinedSvgs.tipsClose}/> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+3.13 KB
(100%)
...napshots__/Process initially clean should import JSON and save [Linux] #1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.