fix(portal): recover full-bleed wrapper fix + Schedule Payslips tab
These round-2 portal fixes (white-border wrapper neutralisation in portal_clock.css, and the Payslips nav tab on the fusion_planning Schedule page) were briefly bundled into a concurrent NFC commit that a parallel session then rebased, dropping them from main. They are deployed and verified on entech (fusion_clock 3.12.3 / fusion_planning 1.3.0); re-committing so git matches. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
--fclk-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
|
||||
--fclk-toast-bg: #ffffff;
|
||||
|
||||
margin: -16px -15px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
min-height: 100vh;
|
||||
background: var(--fclk-bg);
|
||||
@@ -104,6 +104,24 @@ body:has(.fclk-app.fclk-dark) {
|
||||
background: #0f1117;
|
||||
}
|
||||
|
||||
/* Neutralise the portal layout wrappers so the dark app fills edge-to-edge.
|
||||
The portal wraps content in #wrapwrap > main > #wrap.o_portal_wrap >
|
||||
.container, whose Bootstrap max-width (centred) + "pt-3 pb-5" padding is
|
||||
what showed as a white frame on wider screens. */
|
||||
body:has(.fclk-app) #wrapwrap,
|
||||
body:has(.fclk-app) main,
|
||||
body:has(.fclk-app) #wrap.o_portal_wrap {
|
||||
background: transparent !important;
|
||||
padding: 0 !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
body:has(.fclk-app) #wrap.o_portal_wrap > .container,
|
||||
body:has(.fclk-app) main > .container {
|
||||
max-width: 100% !important;
|
||||
padding: 0 !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
.fclk-container {
|
||||
max-width: 480px;
|
||||
margin: 0 auto;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
{
|
||||
'name': 'Fusion Planning',
|
||||
'version': '19.0.1.2.0',
|
||||
'version': '19.0.1.3.0',
|
||||
'category': 'Human Resources/Planning',
|
||||
'summary': 'Fusion Clock bridge to Odoo Planning - employee schedule on the portal',
|
||||
'description': """
|
||||
|
||||
@@ -93,5 +93,8 @@ class FusionPlanningPortal(http.Controller):
|
||||
'slot_count': len(slots),
|
||||
'next_slot': next_slot_data,
|
||||
'page_name': 'fusion_clock_schedule',
|
||||
# Match the other portal pages so the Payslips nav tab appears
|
||||
# consistently when payroll is installed.
|
||||
'show_payslips': 'hr.payslip' in request.env,
|
||||
}
|
||||
return request.render('fusion_planning.portal_schedule_page', values)
|
||||
|
||||
@@ -155,6 +155,15 @@
|
||||
</svg>
|
||||
<span>Reports</span>
|
||||
</a>
|
||||
<t t-if="show_payslips">
|
||||
<a href="/my/clock/payslips" class="fclk-nav-item">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<rect x="2" y="5" width="20" height="14" rx="2"/>
|
||||
<line x1="2" y1="10" x2="22" y2="10"/>
|
||||
</svg>
|
||||
<span>Payslips</span>
|
||||
</a>
|
||||
</t>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user