mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
fix(jetbrains): address session view review feedback
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ abstract class AbstractSessionPartView(
|
||||
|
||||
protected val arrow = JBLabel()
|
||||
protected val row = JPanel(BorderLayout(JBUI.scale(SessionUiStyle.View.CARD_LAYOUT_GAP), 0))
|
||||
private val bound = mutableListOf<Component>()
|
||||
private val bound = linkedSetOf<Component>()
|
||||
|
||||
private val click = object : MouseAdapter() {
|
||||
override fun mouseClicked(e: MouseEvent) {
|
||||
|
||||
+6
-3
@@ -13,12 +13,15 @@ import com.intellij.ui.components.JBLabel
|
||||
* confusing empty gaps), this shows a dim label with the raw type name.
|
||||
* This makes it easy to spot new part types that need a proper renderer.
|
||||
*/
|
||||
class GenericView(content: Generic) : SecondarySessionPartView(JBLabel("[${content.type}]"), JBLabel()) {
|
||||
class GenericView private constructor(
|
||||
content: Generic,
|
||||
private val label: JBLabel,
|
||||
) : SecondarySessionPartView(label, JBLabel()) {
|
||||
|
||||
constructor(content: Generic) : this(content, JBLabel("[${content.type}]"))
|
||||
|
||||
override val contentId: String = content.id
|
||||
|
||||
private val label = row.getComponent(0) as JBLabel
|
||||
|
||||
init {
|
||||
label.foreground = UiStyle.Colors.weak()
|
||||
applyStyle(SessionEditorStyle.current())
|
||||
|
||||
Reference in New Issue
Block a user