mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-26 10:45:57 +08:00
fix(editor): ui bugs in linked document embed view (#10105)
Co-authored-by: Mirone <Saul-Mirone@outlook.com>
This commit is contained in:
@@ -164,7 +164,7 @@ export class EmbedEdgelessSyncedDocBlockComponent extends toEdgelessEmbedBlock(
|
||||
this.cardStyleMap = {
|
||||
display: 'block',
|
||||
width: `${EMBED_CARD_WIDTH[style]}px`,
|
||||
height: `${EMBED_CARD_WIDTH[style]}px`,
|
||||
height: `${EMBED_CARD_HEIGHT[style]}px`,
|
||||
transform: `scale(${bound.w / EMBED_CARD_WIDTH[style]}, ${bound.h / EMBED_CARD_HEIGHT[style]})`,
|
||||
transformOrigin: '0 0',
|
||||
};
|
||||
|
||||
@@ -57,6 +57,7 @@ export const blockStyles = css`
|
||||
}
|
||||
|
||||
.affine-embed-synced-doc-container {
|
||||
border: 1px solid var(--affine-border-color);
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -69,12 +70,6 @@ export const blockStyles = css`
|
||||
width: 100%;
|
||||
height: calc(${EMBED_CARD_HEIGHT.syncedDoc}px + 36px);
|
||||
}
|
||||
.affine-embed-synced-doc-container:hover.light {
|
||||
box-shadow: 0px 0px 0px 2px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
.affine-embed-synced-doc-container:hover.dark {
|
||||
box-shadow: 0px 0px 0px 2px rgba(255, 255, 255, 0.14);
|
||||
}
|
||||
.affine-embed-synced-doc-header-wrapper {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
@@ -127,9 +122,6 @@ export const blockStyles = css`
|
||||
z-index: 1;
|
||||
cursor: pointer;
|
||||
}
|
||||
.affine-embed-synced-doc-editor-overlay:hover {
|
||||
background: var(--affine-hover-color);
|
||||
}
|
||||
|
||||
.affine-embed-synced-doc-editor-empty {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user