mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-26 18:55:57 +08:00
fix(editor): video style in edgeless (#10198)
### Before  ### After 
This commit is contained in:
@@ -151,7 +151,13 @@ const embedConfig: AttachmentEmbedConfig[] = [
|
|||||||
check: (model, maxFileSize) =>
|
check: (model, maxFileSize) =>
|
||||||
model.type.startsWith('video/') && model.size <= maxFileSize,
|
model.type.startsWith('video/') && model.size <= maxFileSize,
|
||||||
template: (_, blobUrl) =>
|
template: (_, blobUrl) =>
|
||||||
html`<video width="100%;" height="480" controls src=${blobUrl}></video>`,
|
html`<video
|
||||||
|
style="max-height: max-content;"
|
||||||
|
width="100%;"
|
||||||
|
height="480"
|
||||||
|
controls
|
||||||
|
src=${blobUrl}
|
||||||
|
></video>`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'audio',
|
name: 'audio',
|
||||||
|
|||||||
Reference in New Issue
Block a user