Skip to content

Commit

Permalink
fix: ui bugs homepage (#1350)
Browse files Browse the repository at this point in the history
  • Loading branch information
gitanjli525 authored Sep 10, 2024
1 parent a51a91f commit 6f25b23
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/screens/OMPSwitch/MerchantSwitch.res
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ let make = () => {
setArrow(prev => !prev)
}

<div className="border border-popover-background rounded w-full">
<div className="border border-popover-background rounded w-5/6">
<SelectBox.BaseDropdown
allowMultiSelect=false
buttonText=""
Expand Down
6 changes: 4 additions & 2 deletions src/screens/OMPSwitch/OMPSwitchHelper.res
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ module ListBaseComp = {
let make = (~heading, ~subHeading, ~arrow) => {
<div
className="flex items-center justify-between text-sm text-center text-white font-medium rounded hover:bg-opacity-80 bg-sidebar-blue cursor-pointer">
<div className="flex flex-col items-start px-2 py-2">
<div className="flex flex-col items-start px-2 py-2 w-5/6">
<p className="text-xs text-gray-400"> {heading->React.string} </p>
<p className="fs-10"> {subHeading->React.string} </p>
<div className="w-full text-left overflow-auto">
<p className="fs-10"> {subHeading->React.string} </p>
</div>
</div>
<div className="px-2 py-2">
<Icon
Expand Down
2 changes: 1 addition & 1 deletion src/screens/OMPSwitch/ProfileSwitch.res
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ let make = () => {
}

let customPadding = "px-1 py-1"
let customStyle = "w-fit text-blue-500 bg-white dark:bg-black hover:bg-jp-gray-100 text-nowrap"
let customStyle = "text-blue-500 bg-white dark:bg-black hover:bg-jp-gray-100 text-nowrap w-full"

let profileSwitch = async value => {
try {
Expand Down
2 changes: 1 addition & 1 deletion src/screens/Sidebar/SidebarSwitch.res
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let make = (~isSidebarExpanded=false) => {
let expandedContent =
<div className="flex flex-col gap-2 mx-2">
<OrgSwitch />
<div className="flex">
<div className="flex gap-2">
<div
className="w-2.5 h-10 border-blue-810 ml-5 border-dashed border-b border-l rounded-bl-sm"
/>
Expand Down

0 comments on commit 6f25b23

Please sign in to comment.