-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: comprehensive UI and styling improvements This PR includes comprehensive UI and styling improvements across multiple components, focusing on consistency and mobile responsiveness. - Implemented new ScrollContainer component for consistent scrolling behavior - Added dark-gradient-modal variant for improved modal backgrounds - Standardized table styling patterns across components - Enhanced hover states with consistent purple highlight (hover:bg-stamp-purple/10) - Consistent use of breakpoints (mobileLg, mobileMd, tablet) - Responsive text sizing (text-sm/text-base) - Improved table layouts for mobile views - Better handling of address abbreviations on different screen sizes - Standardized row heights (h-8) - Enhanced tooltip visibility controls - Improved table column widths and spacing - Added cursor feedback for interactive elements - Removed redundant padding declarations - Consistent class naming conventions - Improved accessibility with aria-labels - Better event handling for navigation - Removed deprecated memo column from transfers Co-Authored-By: [email protected] <[email protected]> * fix: lint errors * fix: lint errors * fix: lint errors --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: [email protected] <[email protected]> Co-authored-by: reinamora <[email protected]>
- Loading branch information
1 parent
8b10e25
commit 6d0fe83
Showing
19 changed files
with
634 additions
and
341 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 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,36 @@ | ||
const scrollbarPadding = ` | ||
(function() { | ||
const container = document.currentScript.previousElementSibling; | ||
if (!container) return; | ||
const checkScrollbar = () => { | ||
const hasScrollbar = container.scrollHeight > container.clientHeight; | ||
container.style.paddingRight = hasScrollbar | ||
? (globalThis.innerWidth >= 568 ? '24px' : '18px') | ||
: '0px'; | ||
}; | ||
checkScrollbar(); | ||
const resizeObserver = new ResizeObserver(checkScrollbar); | ||
resizeObserver.observe(container); | ||
})(); | ||
`; | ||
|
||
interface ScrollContainerProps { | ||
children: preact.ComponentChildren; | ||
class?: string; | ||
} | ||
|
||
export function ScrollContainer( | ||
{ children, class: className = "" }: ScrollContainerProps, | ||
) { | ||
return ( | ||
<> | ||
<div class={`overflow-auto ${className}`}> | ||
{children} | ||
</div> | ||
<script dangerouslySetInnerHTML={{ __html: scrollbarPadding }} /> | ||
</> | ||
); | ||
} |
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
Oops, something went wrong.