This file contains hidden or 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
| https://www.youtube.com/watch?v=YnWPeA6l5UE | |
| https://developer.mozilla.org/en-US/docs/Web/CSS/:has |
This file contains hidden or 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
| import { useLayoutEffect, useState } from 'react'; | |
| /** | |
| * Determine if the input DOM element is truncated by CSS (using ellipse for example) | |
| * @param domElement | |
| * @returns boolean | |
| */ | |
| export function isTruncated(domElement: Element): boolean { | |
| // https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollWidth | |
| return domElement.scrollWidth > domElement.clientWidth; |
This file contains hidden or 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
| import { useLayoutEffect, useState } from 'react'; | |
| /** | |
| * Determine if the input DOM element is truncated by CSS (using ellipse for example) | |
| * @param domElement | |
| * @returns boolean | |
| */ | |
| export function isTruncated(domElement: Element): boolean { | |
| // https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollWidth | |
| return domElement.scrollWidth > domElement.clientWidth; |
This file contains hidden or 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
| https://www.amazon.com/ | |
| https://www.paypal.com | |
| https://secure.xsolla.com/ | |
| https://pay.roblox.com/ | |
| checkout.steampowered.com | |
| checkout.steampowered.com/checkout/ | |
| https://pay.roblox.com | |
| https://checkout.steampowered.com/ |
This file contains hidden or 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
| # DESIGN.md | |
| ## Product context | |
| - Product: a B2B AI workflow product that helps teams review customer conversations | |
| - Audience: operations leads and founders who need to spot issues quickly | |
| - Surface: SaaS dashboard | |
| - Stack: Next.js, React, Tailwind, shadcn-style components | |
| ## Design goal | |
| Create a UI that feels specific to this product and workflow, not like a generic AI-generated SaaS template. Prioritize clear hierarchy, realistic product details, useful states, and fast comprehension. |
OlderNewer