Skip to content

Commit

Permalink
fix(database): multiple spaces in the title are displayed as a single…
Browse files Browse the repository at this point in the history
… space (#8839)
  • Loading branch information
zzj3720 authored Dec 2, 2024
1 parent b421c6f commit bbf0a22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/blocks/src/database-block/components/title/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export class DatabaseTitle extends WithDisposable(ShadowlessElement) {
.affine-database-title .text {
user-select: none;
opacity: 0;
white-space: pre-wrap;
}
.affine-database-title[data-title-focus='false'] textarea {
Expand All @@ -53,8 +54,8 @@ export class DatabaseTitle extends WithDisposable(ShadowlessElement) {
.affine-database-title[data-title-focus='false'] .text {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
opacity: 1;
white-space: pre;
}
.affine-database-title [data-title-empty='true']::before {
Expand Down

0 comments on commit bbf0a22

Please sign in to comment.