Remote branches in side panel is shown now without the remote name
This commit is contained in:
parent
cc787064b6
commit
857032ec04
@ -24,7 +24,7 @@ val Ref.simpleName: String
|
||||
}
|
||||
}
|
||||
|
||||
val Ref.simpleVisibleName: String
|
||||
val Ref.simpleLogName: String
|
||||
get() {
|
||||
return when {
|
||||
this.name == Constants.HEAD -> {
|
||||
|
@ -9,7 +9,7 @@ import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.remember
|
||||
import androidx.compose.ui.res.painterResource
|
||||
import androidx.compose.ui.unit.dp
|
||||
import app.extensions.simpleVisibleName
|
||||
import app.extensions.simpleName
|
||||
import app.ui.components.SideMenuPanel
|
||||
import app.ui.components.SideMenuSubentry
|
||||
import app.ui.components.VerticalExpandable
|
||||
@ -80,7 +80,7 @@ private fun RemoteRow(
|
||||
}
|
||||
) {
|
||||
SideMenuSubentry(
|
||||
text = branch.simpleVisibleName,
|
||||
text = branch.simpleName,
|
||||
extraPadding = 8.dp,
|
||||
iconResourcePath = "branch.svg",
|
||||
onClick = { onBranchClicked(branch) }
|
||||
|
@ -26,7 +26,6 @@ import androidx.compose.ui.input.pointer.PointerIconDefaults
|
||||
import androidx.compose.ui.input.pointer.pointerHoverIcon
|
||||
import androidx.compose.ui.res.painterResource
|
||||
import androidx.compose.ui.text.font.FontStyle
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
import androidx.compose.ui.text.style.TextOverflow
|
||||
import androidx.compose.ui.unit.Dp
|
||||
import androidx.compose.ui.unit.dp
|
||||
@ -759,7 +758,7 @@ fun RefChip(
|
||||
)
|
||||
}
|
||||
Text(
|
||||
text = ref.simpleVisibleName,
|
||||
text = ref.simpleLogName,
|
||||
color = MaterialTheme.colors.primaryTextColor,
|
||||
fontSize = 13.sp,
|
||||
maxLines = 1,
|
||||
|
Loading…
Reference in New Issue
Block a user