Skip to content

Commit

Permalink
Fix events screen centering
Browse files Browse the repository at this point in the history
  • Loading branch information
greenart7c3 committed Dec 11, 2024
1 parent a1cbf90 commit 933decc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 0 additions & 3 deletions app/src/main/java/com/greenart7c3/citrine/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ import androidx.navigation.compose.rememberNavController
import androidx.navigation.navArgument
import com.anggrayudi.storage.SimpleStorageHelper
import com.greenart7c3.citrine.database.AppDatabase
import com.greenart7c3.citrine.database.EventDao
import com.greenart7c3.citrine.database.toTags
import com.greenart7c3.citrine.server.Settings
import com.greenart7c3.citrine.service.CustomWebSocketService
Expand All @@ -84,11 +83,9 @@ import com.vitorpamplona.quartz.signers.NostrSignerExternal
import com.vitorpamplona.quartz.signers.Permission
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.launch

class MainActivity : ComponentActivity() {
private var countByKind: Flow<List<EventDao.CountResult>>? = null
private val storageHelper = SimpleStorageHelper(this@MainActivity)

@OptIn(ExperimentalMaterial3Api::class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ fun DatabaseInfo(
val flow = countByKind.collectAsStateWithLifecycle(initialValue = listOf())

Column(
Modifier.fillMaxSize(),
verticalArrangement = Arrangement.Center,
Modifier
.fillMaxSize()
.padding(8.dp),
horizontalAlignment = Alignment.CenterHorizontally,
) {
Text("Database", fontWeight = FontWeight.Bold)
Expand Down

0 comments on commit 933decc

Please sign in to comment.