Skip to content

Commit 8277b5b

Browse files
committed
fix: improve /create wizard and notification panel mobile layout
- Wizard progress bar: scrollable, proper sizing at all breakpoints - Nest/egg grids: better touch targets, line-clamp on descriptions - Summary card + cap-widget: full width on mobile - Create page header: stacked layout on mobile - Notification panel: full-screen slide-in, proper z-index, better item spacing - Notification items: proper icon/text sizing at 768px and 480px - 480px: tighter wizard steps, smaller nest/egg cards, notif fixes
1 parent 1135a12 commit 8277b5b

1 file changed

Lines changed: 232 additions & 11 deletions

File tree

public/css/style.css

Lines changed: 232 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1955,12 +1955,69 @@ tbody tr:hover {
19551955
.notif-panel {
19561956
left: 0;
19571957
width: 100%;
1958+
top: 0;
1959+
bottom: 0;
1960+
height: 100%;
1961+
border-right: none;
1962+
border-radius: 0;
1963+
z-index: 150;
19581964
}
19591965

19601966
.sidebar.collapsed ~ .notif-panel {
19611967
left: 0;
19621968
}
19631969

1970+
.notif-panel-header {
1971+
padding: 16px 16px 14px;
1972+
border-bottom: 1px solid var(--border);
1973+
}
1974+
1975+
.notif-panel-header h3 {
1976+
font-size: 1rem;
1977+
}
1978+
1979+
.notif-mark-all {
1980+
font-size: 0.78rem;
1981+
padding: 6px 10px;
1982+
}
1983+
1984+
.notif-item {
1985+
padding: 12px 16px;
1986+
gap: 10px;
1987+
}
1988+
1989+
.notif-item-icon {
1990+
width: 32px;
1991+
height: 32px;
1992+
}
1993+
1994+
.notif-icon {
1995+
width: 16px;
1996+
height: 16px;
1997+
}
1998+
1999+
.notif-item-title {
2000+
font-size: 0.85rem;
2001+
}
2002+
2003+
.notif-item-msg {
2004+
font-size: 0.78rem;
2005+
line-height: 1.4;
2006+
}
2007+
2008+
.notif-item-time {
2009+
font-size: 0.7rem;
2010+
}
2011+
2012+
.notif-empty {
2013+
padding: 40px 16px;
2014+
font-size: 0.85rem;
2015+
}
2016+
2017+
.notif-backdrop {
2018+
z-index: 149;
2019+
}
2020+
19642021
/* Cookie banner */
19652022
.cookie-banner {
19662023
flex-direction: column;
@@ -2008,25 +2065,32 @@ tbody tr:hover {
20082065
.wizard-progress {
20092066
padding: 6px;
20102067
border-radius: var(--radius-md);
2068+
overflow-x: auto;
2069+
-webkit-overflow-scrolling: touch;
2070+
scrollbar-width: none;
2071+
}
2072+
2073+
.wizard-progress::-webkit-scrollbar {
2074+
display: none;
20112075
}
20122076

20132077
.wizard-step-indicator {
2014-
padding: 6px;
2015-
gap: 4px;
2078+
padding: 6px 8px;
2079+
gap: 5px;
20162080
}
20172081

20182082
.wizard-step-circle {
2019-
width: 24px;
2020-
height: 24px;
2083+
width: 26px;
2084+
height: 26px;
20212085
}
20222086

20232087
.wizard-step-circle svg {
2024-
width: 12px !important;
2025-
height: 12px !important;
2088+
width: 13px !important;
2089+
height: 13px !important;
20262090
}
20272091

20282092
.wizard-step-label {
2029-
font-size: 0.65rem;
2093+
font-size: 0.7rem;
20302094
}
20312095

20322096
.wizard-step-title {
@@ -2035,6 +2099,7 @@ tbody tr:hover {
20352099

20362100
.wizard-step-desc {
20372101
font-size: 0.82rem;
2102+
margin-bottom: 16px;
20382103
}
20392104

20402105
.wizard-actions {
@@ -2050,6 +2115,13 @@ tbody tr:hover {
20502115
margin-left: 0;
20512116
}
20522117

2118+
/* Create page header fix */
2119+
#page-create .page-header {
2120+
flex-direction: column;
2121+
align-items: flex-start;
2122+
gap: 4px;
2123+
}
2124+
20532125
/* Nest grid */
20542126
.nest-grid {
20552127
grid-template-columns: repeat(2, 1fr);
@@ -2058,19 +2130,32 @@ tbody tr:hover {
20582130

20592131
.nest-card {
20602132
padding: 16px 12px;
2133+
border-radius: var(--radius-md);
20612134
}
20622135

20632136
.nest-card-logo {
20642137
width: 48px;
20652138
height: 48px;
20662139
}
20672140

2141+
.nest-card-logo img,
2142+
.nest-card-logo i {
2143+
width: 32px !important;
2144+
height: 32px !important;
2145+
}
2146+
20682147
.nest-card-name {
20692148
font-size: 0.85rem;
2149+
line-height: 1.2;
20702150
}
20712151

20722152
.nest-card-desc {
20732153
font-size: 0.72rem;
2154+
line-height: 1.3;
2155+
display: -webkit-box;
2156+
-webkit-line-clamp: 2;
2157+
-webkit-box-orient: vertical;
2158+
overflow: hidden;
20742159
}
20752160

20762161
/* Egg grid */
@@ -2082,6 +2167,18 @@ tbody tr:hover {
20822167
.egg-card {
20832168
padding: 12px;
20842169
gap: 10px;
2170+
border-radius: var(--radius-md);
2171+
}
2172+
2173+
.egg-card-logo {
2174+
width: 36px;
2175+
height: 36px;
2176+
}
2177+
2178+
.egg-card-logo img,
2179+
.egg-card-logo i {
2180+
width: 28px !important;
2181+
height: 28px !important;
20852182
}
20862183

20872184
.egg-card-logo {
@@ -2434,23 +2531,80 @@ tbody tr:hover {
24342531
}
24352532

24362533
.wizard-step-indicator {
2437-
padding: 4px;
2534+
padding: 4px 6px;
24382535
gap: 2px;
24392536
}
24402537

24412538
.wizard-step-circle {
2442-
width: 20px;
2443-
height: 20px;
2539+
width: 22px;
2540+
height: 22px;
2541+
}
2542+
2543+
.wizard-step-circle svg {
2544+
width: 11px !important;
2545+
height: 11px !important;
24442546
}
24452547

24462548
.wizard-step-label {
2447-
font-size: 0.6rem;
2549+
font-size: 0.62rem;
24482550
}
24492551

24502552
.wizard-step-title {
24512553
font-size: 1rem;
24522554
}
24532555

2556+
.wizard-step-desc {
2557+
font-size: 0.78rem;
2558+
}
2559+
2560+
.nest-grid {
2561+
grid-template-columns: 1fr 1fr;
2562+
gap: 8px;
2563+
}
2564+
2565+
.nest-card {
2566+
padding: 12px 8px;
2567+
}
2568+
2569+
.nest-card-logo {
2570+
width: 40px;
2571+
height: 40px;
2572+
}
2573+
2574+
.nest-card-logo img,
2575+
.nest-card-logo i {
2576+
width: 28px !important;
2577+
height: 28px !important;
2578+
}
2579+
2580+
.nest-card-name {
2581+
font-size: 0.78rem;
2582+
}
2583+
2584+
.egg-card {
2585+
padding: 10px;
2586+
gap: 8px;
2587+
}
2588+
2589+
.egg-card-logo {
2590+
width: 30px;
2591+
height: 30px;
2592+
}
2593+
2594+
.egg-card-logo img,
2595+
.egg-card-logo i {
2596+
width: 24px !important;
2597+
height: 24px !important;
2598+
}
2599+
2600+
.egg-card-name {
2601+
font-size: 0.82rem;
2602+
}
2603+
2604+
.egg-card-desc {
2605+
font-size: 0.72rem;
2606+
}
2607+
24542608
.detail-item {
24552609
padding-bottom: 6px;
24562610
}
@@ -2533,6 +2687,73 @@ tbody tr:hover {
25332687
font-size: 0.78rem;
25342688
}
25352689

2690+
/* Notif panel 480px */
2691+
.notif-panel-header {
2692+
padding: 12px 12px 10px;
2693+
}
2694+
2695+
.notif-panel-header h3 {
2696+
font-size: 0.92rem;
2697+
}
2698+
2699+
.notif-mark-all {
2700+
font-size: 0.72rem;
2701+
padding: 4px 8px;
2702+
}
2703+
2704+
.notif-item {
2705+
padding: 10px 12px;
2706+
gap: 8px;
2707+
}
2708+
2709+
.notif-item-icon {
2710+
width: 28px;
2711+
height: 28px;
2712+
}
2713+
2714+
.notif-icon {
2715+
width: 14px;
2716+
height: 14px;
2717+
}
2718+
2719+
.notif-item-title {
2720+
font-size: 0.8rem;
2721+
}
2722+
2723+
.notif-item-msg {
2724+
font-size: 0.72rem;
2725+
}
2726+
2727+
.notif-item-time {
2728+
font-size: 0.65rem;
2729+
}
2730+
2731+
.notif-dot {
2732+
width: 6px;
2733+
height: 6px;
2734+
margin-top: 4px;
2735+
}
2736+
2737+
/* Create page 480px */
2738+
.wizard-step-indicator {
2739+
padding: 3px 5px;
2740+
gap: 2px;
2741+
}
2742+
2743+
.wizard-step-circle {
2744+
width: 20px;
2745+
height: 20px;
2746+
}
2747+
2748+
.wizard-step-circle svg {
2749+
width: 10px !important;
2750+
height: 10px !important;
2751+
}
2752+
2753+
.wizard-step-label {
2754+
font-size: 0.58rem;
2755+
}
2756+
25362757
/* Notif panel */
25372758
.notif-panel-header {
25382759
padding: 14px 14px 12px;

0 commit comments

Comments
 (0)