Add the following code lines to the TWebChatbox so the video and audio will scale like the images does. Already tested and works.
else if Assigned(MatchVideo) then
begin
FFileLink := TJSHTMLElement(document.createElement('VIDEO'));
FFileLink.setAttribute('src','data:video/webm;base64,' + FileAsBase64);
FFileLink.setAttribute('controls', '');
FFileLink.style.setProperty('width', '100%'); <-- Add
end
else if Assigned(MatchAudio) then
begin
FFileLink := TJSHTMLElement(document.createElement('AUDIO'));
FFileLink.setAttribute('src','data:audio/mp3;base64,' + FileAsBase64);
FFileLink.setAttribute('controls', '');
FFileLink.style.setProperty('width', '100%'); <-- Add
end