[WIP] Reduced heigh of multiple lists elements

This commit is contained in:
Abdelilah El Aissaoui 2024-01-18 13:19:44 +01:00
parent 8cde01bc00
commit 913b9c65e3
No known key found for this signature in database
GPG key ID: 7587FC860F594869
3 changed files with 4 additions and 4 deletions

View file

@ -278,7 +278,7 @@ class App {
}, },
onTabClosed = onCloseTab, onTabClosed = onCloseTab,
onAddNewTab = onAddedTab, onAddNewTab = onAddedTab,
tabsHeight = 40.dp, tabsHeight = 36.dp,
onMoveTab = { fromIndex, toIndex -> onMoveTab = { fromIndex, toIndex ->
tabsManager.onMoveTab(fromIndex, toIndex) tabsManager.onMoveTab(fromIndex, toIndex)
}, },

View file

@ -327,7 +327,7 @@ fun CommitLogChanges(
) { ) {
Column( Column(
modifier = Modifier modifier = Modifier
.height(40.dp) .height(36.dp)
.fillMaxWidth() .fillMaxWidth()
.handMouseClickable { .handMouseClickable {
onDiffSelected(diffEntry) onDiffSelected(diffEntry)

View file

@ -80,7 +80,7 @@ private const val MARGIN_GRAPH_LANES = 2
private const val LANE_WIDTH = 30f private const val LANE_WIDTH = 30f
private const val DIVIDER_WIDTH = 8 private const val DIVIDER_WIDTH = 8
private const val LINE_HEIGHT = 40 private const val LINE_HEIGHT = 36
private const val LOG_BOTTOM_PADDING = 80 private const val LOG_BOTTOM_PADDING = 80
// TODO Min size for message column // TODO Min size for message column
@ -635,7 +635,7 @@ fun UncommittedChangesLine(
) { ) {
Row( Row(
modifier = Modifier modifier = Modifier
.height(40.dp) .height(LINE_HEIGHT.dp)
.padding(start = graphWidth) .padding(start = graphWidth)
.backgroundIf(isSelected, MaterialTheme.colors.backgroundSelected) .backgroundIf(isSelected, MaterialTheme.colors.backgroundSelected)
.padding(DIVIDER_WIDTH.dp), .padding(DIVIDER_WIDTH.dp),