feat: stretch web part to full canvas width

Enable supportsFullBleed so the web part can sit in full-width sections,
and lift the SharePoint canvas max-width so it also fills a regular
one-column section (workbench and live page).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Тимур Городецкий
2026-10-16 10:14:09 +05:00
parent 1532017c0b
commit fad0842640
2 changed files with 11 additions and 0 deletions
@@ -11,6 +11,7 @@
"requiresCustomScript": false,
"supportedHosts": ["SharePointWebPart", "SharePointFullPage"],
"supportsThemeVariants": true,
"supportsFullBleed": true,
"preconfiguredEntries": [
{
@@ -1,5 +1,15 @@
@import '../../../styles/design-tokens';
// Full-width: снимаем max-width канвы SharePoint — и в workbench (dev), и на живой
// странице. !important оправдан: перебиваем встроенные стили канвы, иначе их не снять.
// Если после обновления платформы ширина вернётся — проверить актуальные селекторы в DevTools.
:global {
#workbenchPageContent,
.CanvasComponent.LCS .CanvasZone {
max-width: 100% !important;
}
}
.content {
width: 100%;
font-family: $font-sans;