I'm creating a slackbot for some automatic notifications, and I received a request to make the notification take up the entire width of the slack window, which looks much cleaner. I'm finding that there appears to be a specified width that the blocks seem to take up, and won't stretch horizontally beyond that point. I'm wondering if there is a workaround to remove the maximum width that appears to be taking place
Current implementation: Seems to have a maximum width that isn't specified
Ideally it would end up looking like this
I'm using something like this as my formatting block:
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Testing if a longer message will force the update box to be wider Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
},
"accessory": {
"type": "button",
"text": {
"type": "plain_text",
"text": "Button",
"emoji": true
},
"value": "click_me_123"
}
}
Is this a limitation with the block kit/slack api? Or is there a way to remove this width restriction?
Block Kit Builder site if anyone wants to play with formatting