Skip to content

Commit

Permalink
fix: poll footer layout (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
AkesiSeli authored Nov 19, 2024
1 parent 5d64b7f commit f84bbb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,9 @@ private fun PollCardFooter(
},
style = MaterialTheme.typography.bodyMedium,
color = ancillaryColor,
modifier = Modifier.weight(1f),
)

Spacer(modifier = Modifier.weight(1f))

if (!expired) {
TwoStateButton(
isProminent = isShowingResults,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import com.livefast.eattrash.raccoonforfriendica.core.appearance.theme.IconSize
import com.livefast.eattrash.raccoonforfriendica.core.appearance.theme.Spacing
Expand Down Expand Up @@ -52,6 +53,8 @@ fun TwoStateButton(
} else {
label
},
maxLines = 1,
overflow = TextOverflow.Ellipsis,
)
}
}
Expand Down

0 comments on commit f84bbb3

Please sign in to comment.