Skip to content

Commit

Permalink
fix(database): adjust detail panel layout for better responsiveness (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
zzj3720 authored Dec 11, 2024
1 parent dba7588 commit 590ea64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/affine/data-view/src/core/detail/detail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const styles = css`
border-radius: 8px;
height: 100%;
width: 100%;
box-sizing: border-box;
}
.add-property {
Expand Down Expand Up @@ -234,7 +235,7 @@ export class RecordDetail extends SignalWatcher(
</div>
</div>
<div
style="max-width: var(--affine-editor-width);display: flex;flex-direction: column;margin: 0 auto"
style="width: 100%;max-width: var(--affine-editor-width);display: flex;flex-direction: column;margin: 0 auto;box-sizing: border-box;"
>
${keyed(this.rowId, this.renderHeader())}
${repeat(
Expand All @@ -258,7 +259,6 @@ export class RecordDetail extends SignalWatcher(
Add Property
</div>`
: nothing}
<div style="width: var(--affine-editor-width)"></div>
</div>
${keyed(this.rowId, this.renderNote())}
`;
Expand Down

0 comments on commit 590ea64

Please sign in to comment.