fix: Show max 3 lines of content on notification items
This commit is contained in:
@@ -38,3 +38,16 @@ export const fadeOnDesktopBackgrounded = () => {
|
||||
body.backgrounded & { opacity: 0.75; }
|
||||
`;
|
||||
};
|
||||
|
||||
/**
|
||||
* Truncate multiline text.
|
||||
*
|
||||
* @returns string of CSS
|
||||
*/
|
||||
export const truncateMultiline = (lines: number) => `
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: ${lines};
|
||||
overflow: hidden;
|
||||
overflow-wrap: anywhere;
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user