impr: rewrite PostForm component to be stabler and more sustainable (#684)

* impr: rewrite PostForm component into extracted state class

* fix: use base community as PostFormState

* fix: add else clause to ensure 'unset' unsets the language
This commit is contained in:
xylight authored and GitHub committed 2025-11-15 23:12:52 +00:00
1 parent 6f7501ffc5
commit e4507cbf91
16 files changed
+506 -586

No files matched your search

+10 -8
View File
@@ -35,16 +35,18 @@
.btn-group.btn-group-horizontal {
flex-direction: row;
}
:global(*) {
position: relative;
&:first-child {
border-radius: 24px 8px 8px 24px !important;
}
.btn-group.btn-group-horizontal :global(> *) {
position: relative;
border-radius: 8px 8px 8px 8px !important;
&:last-child {
border-radius: 8px 24px 24px 8px !important;
}
&:first-child {
border-radius: 24px 12px 12px 24px !important;
}
&:last-child {
border-radius: 12px 24px 24px 12px !important;
}
}
</style>