feat(life): add search and move post composer to modal

Support searching life posts by content
Move post creation and editing to a modal dialog
Add search toolbar and update empty states
This commit is contained in:
2026-05-01 23:48:57 +08:00
parent c03d4271e1
commit 866d7add16
7 changed files with 142 additions and 24 deletions

View File

@@ -1179,6 +1179,27 @@ button:disabled,
justify-content: flex-start;
}
.life-toolbar {
grid-template-columns: minmax(0, 1fr) auto;
align-items: end;
}
.life-toolbar__search {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: end;
gap: 10px;
}
.life-toolbar__actions {
display: flex;
justify-content: flex-end;
}
.life-toolbar .ui-button {
min-height: 44px;
}
.life-composer,
.life-post {
display: grid;
@@ -2844,6 +2865,16 @@ button:disabled,
justify-content: flex-start;
}
.life-toolbar,
.life-toolbar__search {
grid-template-columns: 1fr;
}
.life-toolbar__actions,
.life-toolbar .ui-button {
width: 100%;
}
.life-post__metrics {
justify-content: flex-start;
}