Skip to content

Commit 2eab3b4

Browse files
chore: responsive and styling fixes (#3541)
1 parent 662b497 commit 2eab3b4

File tree

7 files changed

+23
-13
lines changed

7 files changed

+23
-13
lines changed

packages/ui/src/icons/priority-icon.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export const PriorityIcon: React.FC<IPriorityIcon> = (props) => {
4747
>
4848
<Icon
4949
size={size}
50+
viewBox="0 0 23.5 24"
5051
className={cn(
5152
{
5253
"text-white": priority === "urgent",

web/components/account/deactivate-account-modal.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ export const DeactivateAccountModal: React.FC<Props> = (props) => {
8989
<div className="px-4 pb-4 pt-5 sm:p-6 sm:pb-4">
9090
<div className="">
9191
<div className="flex items-start gap-x-4">
92-
<div className="grid place-items-center rounded-full bg-red-500/20 p-4">
93-
<Trash2 className="h-6 w-6 text-red-600" aria-hidden="true" />
92+
<div className="grid place-items-center rounded-full bg-red-500/20 p-2 sm:p-2 md:p-4 lg:p-4 mt-3 sm:mt-3 md:mt-0 lg:mt-0 ">
93+
<Trash2 className="h-4 w-4 sm:h-4 sm:w-4 md:h-6 md:w-6 lg:h-6 lg:w-6 text-red-600" aria-hidden="true" />
9494
</div>
9595
<div>
9696
<Dialog.Title as="h3" className="my-4 text-2xl font-medium leading-6 text-custom-text-100">

web/components/dashboard/widgets/dropdowns/duration-filter.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ export const DurationFilterDropdown: React.FC<Props> = (props) => {
2626
placement="bottom-end"
2727
closeOnSelect
2828
>
29-
{DURATION_FILTER_OPTIONS.map((option) => (
30-
<CustomMenu.MenuItem key={option.key} onClick={() => onChange(option.key)}>
31-
{option.label}
32-
</CustomMenu.MenuItem>
33-
))}
29+
{DURATION_FILTER_OPTIONS.map((option) => (
30+
<CustomMenu.MenuItem key={option.key} onClick={() => onChange(option.key)}>
31+
{option.label}
32+
</CustomMenu.MenuItem>
33+
))}
3434
</CustomMenu>
3535
);
3636
};

web/components/dashboard/widgets/issue-panels/issues-list.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const WidgetIssuesList: React.FC<WidgetIssuesListProps> = (props) => {
7777
})}
7878
>
7979
Issues
80-
<span className="flex-shrink-0 bg-custom-primary-100/20 text-custom-primary-100 text-xs font-medium rounded-xl h-4 min-w-6 flex items-center text-center justify-center">
80+
<span className="flex-shrink-0 bg-custom-primary-100/20 text-custom-primary-100 text-xs font-medium rounded-xl px-3 flex items-center text-center justify-center">
8181
{totalIssues}
8282
</span>
8383
</h6>

web/components/dashboard/widgets/overview-stats.tsx

+12-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { WidgetLoader } from "components/dashboard/widgets";
99
import { renderFormattedPayloadDate } from "helpers/date-time.helper";
1010
// types
1111
import { TOverviewStatsWidgetResponse } from "@plane/types";
12+
import { cn } from "helpers/common.helper";
1213

1314
export type WidgetProps = {
1415
dashboardId: string;
@@ -71,10 +72,18 @@ export const OverviewStatsWidget: React.FC<WidgetProps> = observer((props) => {
7172
[&>div:nth-child(2)>a>div]:lg:border-r
7273
"
7374
>
74-
{STATS_LIST.map((stat) => (
75-
<div className="w-full flex flex-col gap-2 hover:bg-custom-background-80 rounded-[10px]">
75+
{STATS_LIST.map((stat, index) => (
76+
<div
77+
className={cn(
78+
`w-full flex flex-col gap-2 hover:bg-custom-background-80`,
79+
index === 0 ? "rounded-tl-xl lg:rounded-l-xl" : "",
80+
index === STATS_LIST.length - 1 ? "rounded-br-xl lg:rounded-r-xl" : "",
81+
index === 1 ? "rounded-tr-xl lg:rounded-[0px]" : "",
82+
index == 2 ? "rounded-bl-xl lg:rounded-[0px]" : ""
83+
)}
84+
>
7685
<Link href={stat.link} className="py-4 duration-300 rounded-[10px] w-full ">
77-
<div className={`relative flex justify-center items-center`}>
86+
<div className={`relative flex pl-10 sm:pl-20 md:pl-20 lg:pl-20 items-center`}>
7887
<div>
7988
<h5 className="font-semibold text-xl">{stat.count}</h5>
8089
<p className="text-custom-text-300 text-sm xl:text-base">{stat.title}</p>

web/components/headers/workspace-dashboard.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const WorkspaceDashboardHeader = () => {
1818
return (
1919
<>
2020
<ProductUpdatesModal isOpen={isProductUpdatesModalOpen} setIsOpen={setIsProductUpdatesModalOpen} />
21-
<div className="relative z-10 flex h-[3.75rem] w-full flex-shrink-0 flex-row items-center justify-between gap-x-2 gap-y-4 border-b border-custom-border-200 bg-custom-sidebar-background-100 p-4">
21+
<div className="relative z-20 flex h-[3.75rem] w-full flex-shrink-0 flex-row items-center justify-between gap-x-2 gap-y-4 border-b border-custom-border-200 bg-custom-sidebar-background-100 p-4">
2222
<div className="flex items-center gap-2 overflow-ellipsis whitespace-nowrap">
2323
<SidebarHamburgerToggle />
2424
<div>

web/layouts/app-layout/sidebar.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const AppSidebar: FC<IAppSidebar> = observer(() => {
4242

4343
return (
4444
<div
45-
className={`inset-y-0 z-20 flex h-full flex-shrink-0 flex-grow-0 flex-col border-r border-custom-sidebar-border-200 bg-custom-sidebar-background-100 duration-300
45+
className={`inset-y-0 z-30 flex h-full flex-shrink-0 flex-grow-0 flex-col border-r border-custom-sidebar-border-200 bg-custom-sidebar-background-100 duration-300
4646
fixed md:relative
4747
${themStore.sidebarCollapsed ? "-ml-[280px]" : ""}
4848
sm:${themStore.sidebarCollapsed ? "-ml-[280px]" : ""}

0 commit comments

Comments
 (0)