Skip to content

Commit b54f541

Browse files
IMPROVE: Improve label layout in KanbanBro card provider
1 parent 6770545 commit b54f541

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

heartbeat_monitor/src/jsMain/kotlin/heartbeatmonitor/plugins/KanbanBroFirebaseHeartbeatCardProviderPlugin.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import heartbeatmonitor.core.AbstractPlugin
44
import heartbeatmonitor.core.Card
55
import heartbeatmonitor.core.CardProvider
66
import heartbeatmonitor.core.Dispatcher
7+
import heartbeatmonitor.core.Expand
78
import heartbeatmonitor.core.center
89
import heartbeatmonitor.core.clickable
910
import heartbeatmonitor.core.container
@@ -268,8 +269,9 @@ object KanbanBroFirebaseHeartbeatCardProviderPlugin : AbstractPlugin("KanbanBroF
268269
}
269270
run {
270271
val textBoxId = randomUuid()
271-
leftRight(left = {
272+
leftRight(expand = Expand.LEFT, left = {
272273
label("Title") {
274+
this@label.style.flexGrow = "1"
273275
this@label.htmlFor = textBoxId
274276
}
275277
}, right = {
@@ -288,8 +290,9 @@ object KanbanBroFirebaseHeartbeatCardProviderPlugin : AbstractPlugin("KanbanBroF
288290
}
289291
run {
290292
val textBoxId = randomUuid()
291-
leftRight(left = {
293+
leftRight(expand = Expand.LEFT, left = {
292294
label("Tags") {
295+
this@label.style.flexGrow = "1"
293296
this@label.htmlFor = textBoxId
294297
}
295298
}, right = {

0 commit comments

Comments
 (0)