avoids recreating modifiers
This commit is contained in:
@@ -30,7 +30,6 @@ import androidx.compose.foundation.layout.Row
|
|||||||
import androidx.compose.foundation.layout.Spacer
|
import androidx.compose.foundation.layout.Spacer
|
||||||
import androidx.compose.foundation.layout.defaultMinSize
|
import androidx.compose.foundation.layout.defaultMinSize
|
||||||
import androidx.compose.foundation.layout.fillMaxWidth
|
import androidx.compose.foundation.layout.fillMaxWidth
|
||||||
import androidx.compose.foundation.layout.height
|
|
||||||
import androidx.compose.material3.MaterialTheme
|
import androidx.compose.material3.MaterialTheme
|
||||||
import androidx.compose.material3.OutlinedButton
|
import androidx.compose.material3.OutlinedButton
|
||||||
import androidx.compose.material3.Text
|
import androidx.compose.material3.Text
|
||||||
@@ -145,6 +144,7 @@ import com.vitorpamplona.amethyst.ui.theme.Font12SP
|
|||||||
import com.vitorpamplona.amethyst.ui.theme.HalfDoubleVertSpacer
|
import com.vitorpamplona.amethyst.ui.theme.HalfDoubleVertSpacer
|
||||||
import com.vitorpamplona.amethyst.ui.theme.HalfPadding
|
import com.vitorpamplona.amethyst.ui.theme.HalfPadding
|
||||||
import com.vitorpamplona.amethyst.ui.theme.HalfStartPadding
|
import com.vitorpamplona.amethyst.ui.theme.HalfStartPadding
|
||||||
|
import com.vitorpamplona.amethyst.ui.theme.Height4dpModifier
|
||||||
import com.vitorpamplona.amethyst.ui.theme.RowColSpacing10dp
|
import com.vitorpamplona.amethyst.ui.theme.RowColSpacing10dp
|
||||||
import com.vitorpamplona.amethyst.ui.theme.RowColSpacing5dp
|
import com.vitorpamplona.amethyst.ui.theme.RowColSpacing5dp
|
||||||
import com.vitorpamplona.amethyst.ui.theme.Size10dp
|
import com.vitorpamplona.amethyst.ui.theme.Size10dp
|
||||||
@@ -709,7 +709,7 @@ fun NoteBody(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (baseNote.event !is RepostEvent && baseNote.event !is GenericRepostEvent) {
|
if (baseNote.event !is RepostEvent && baseNote.event !is GenericRepostEvent) {
|
||||||
Spacer(modifier = Modifier.height(4.dp))
|
Spacer(modifier = Height4dpModifier)
|
||||||
}
|
}
|
||||||
|
|
||||||
RenderNoteRow(
|
RenderNoteRow(
|
||||||
|
|||||||
+2
-1
@@ -70,6 +70,7 @@ import com.vitorpamplona.amethyst.commons.chess.ChessSyncBanner
|
|||||||
import com.vitorpamplona.amethyst.commons.chess.LiveChessGameScreen
|
import com.vitorpamplona.amethyst.commons.chess.LiveChessGameScreen
|
||||||
import com.vitorpamplona.amethyst.ui.navigation.navs.INav
|
import com.vitorpamplona.amethyst.ui.navigation.navs.INav
|
||||||
import com.vitorpamplona.amethyst.ui.screen.loggedIn.AccountViewModel
|
import com.vitorpamplona.amethyst.ui.screen.loggedIn.AccountViewModel
|
||||||
|
import com.vitorpamplona.amethyst.ui.theme.Height4dpModifier
|
||||||
import com.vitorpamplona.quartz.nip64Chess.ChessGameNameGenerator
|
import com.vitorpamplona.quartz.nip64Chess.ChessGameNameGenerator
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -392,7 +393,7 @@ private fun RelaySettingsSheet(
|
|||||||
fontWeight = FontWeight.Bold,
|
fontWeight = FontWeight.Bold,
|
||||||
)
|
)
|
||||||
|
|
||||||
Spacer(modifier = Modifier.height(4.dp))
|
Spacer(modifier = Height4dpModifier)
|
||||||
|
|
||||||
Text(
|
Text(
|
||||||
text = gameId,
|
text = gameId,
|
||||||
|
|||||||
Reference in New Issue
Block a user