Merge pull request #2532 from element-hq/feature/bma/fixLayoutPoll

Fix layout poll
This commit is contained in:
Benoit Marty
2024-03-12 16:38:49 +01:00
committed by GitHub
6 changed files with 12 additions and 9 deletions

1
.gitignore vendored
View File

@@ -56,6 +56,7 @@ captures/
.idea/libraries
# Android Studio 3 in .gitignore file.
.idea/caches
.idea/copilot
.idea/inspectionProfiles
# Shelved changes in the IDE
.idea/shelf

View File

@@ -39,6 +39,7 @@ import androidx.compose.runtime.LaunchedEffect
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.tooling.preview.PreviewParameter
import androidx.compose.ui.unit.dp
import io.element.android.compound.theme.ElementTheme
@@ -195,7 +196,8 @@ private fun PollHistoryList(
text = emptyStringResource,
style = ElementTheme.typography.fontBodyLgRegular,
color = ElementTheme.colors.textSecondary,
modifier = Modifier.padding(vertical = 24.dp, horizontal = 16.dp)
modifier = Modifier.padding(vertical = 24.dp, horizontal = 16.dp),
textAlign = TextAlign.Center,
)
}
}