Skip to content

Commit 856c737

Browse files
authored
Merge pull request #957 from Abhi0049k/fix/back-button
correctly for Back Button and removing the delay
2 parents 700cf93 + 3df9ab6 commit 856c737

File tree

2 files changed

+15
-20
lines changed

2 files changed

+15
-20
lines changed

src/pages/dashboard/dashboard.css

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
z-index: 1051;
6363
}
6464

65-
.dashboard-mobile-menu > div:last-child {
65+
.dashboard-mobile-menu>div:last-child {
6666
position: absolute;
6767
top: 0;
6868
left: 0;
@@ -76,7 +76,7 @@
7676
transition: transform 0.3s ease;
7777
}
7878

79-
.dashboard-mobile-menu.show > div:last-child {
79+
.dashboard-mobile-menu.show>div:last-child {
8080
transform: translateX(0);
8181
}
8282

@@ -159,11 +159,11 @@
159159
display: flex;
160160
align-items: center;
161161
padding: 10px;
162-
background: var(--ifm-color-emphasis-100);
162+
background-color: var(--ifm-color-emphasis-100);
163163
border: none;
164164
border-radius: 8px;
165165
cursor: pointer;
166-
transition: all 0.2s ease;
166+
transition: all 0s ease;
167167
color: var(--ifm-color-content);
168168
}
169169

@@ -295,11 +295,9 @@
295295
left: 0;
296296
right: 0;
297297
height: 4px;
298-
background: linear-gradient(
299-
90deg,
300-
var(--ifm-color-primary),
301-
var(--ifm-color-primary-light)
302-
);
298+
background: linear-gradient(90deg,
299+
var(--ifm-color-primary),
300+
var(--ifm-color-primary-light));
303301
}
304302

305303
.dashboard-stat-card:hover {
@@ -715,4 +713,4 @@
715713
[data-theme="dark"] .loading-spinner {
716714
border-color: var(--ifm-color-emphasis-300);
717715
border-top-color: var(--ifm-color-primary);
718-
}
716+
}

src/pages/dashboard/index.tsx

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ const DashboardContent: React.FC = () => {
453453
onClick={() => history.goBack()}
454454
aria-label="Go back"
455455
>
456-
<ArrowLeft size={20} />
456+
<ArrowLeft />
457457
</button>
458458
</div>
459459
<div className="sidebar-nav">
@@ -559,25 +559,22 @@ const DashboardContent: React.FC = () => {
559559
<div className="discussion-tabs">
560560
<button
561561
onClick={() => handleDiscussionTabChange("discussions")}
562-
className={`tab-button ${
563-
activeDiscussionTab === "discussions" ? "active" : ""
564-
}`}
562+
className={`tab-button ${activeDiscussionTab === "discussions" ? "active" : ""
563+
}`}
565564
>
566565
<MessageCircle size={18} /> All Discussions
567566
</button>
568567
<button
569568
onClick={() => handleDiscussionTabChange("trending")}
570-
className={`tab-button ${
571-
activeDiscussionTab === "trending" ? "active" : ""
572-
}`}
569+
className={`tab-button ${activeDiscussionTab === "trending" ? "active" : ""
570+
}`}
573571
>
574572
<TrendingUp size={18} /> Trending
575573
</button>
576574
<button
577575
onClick={() => handleDiscussionTabChange("unanswered")}
578-
className={`tab-button ${
579-
activeDiscussionTab === "unanswered" ? "active" : ""
580-
}`}
576+
className={`tab-button ${activeDiscussionTab === "unanswered" ? "active" : ""
577+
}`}
581578
>
582579
<HelpCircle size={18} /> Unanswered
583580
</button>

0 commit comments

Comments
 (0)