Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -210,3 +210,31 @@ private fun LoginPreview() {
)
}
}

@DevicePreview
@Composable
private fun LoginKakaoTooltipPreview() {
ReedTheme {
LoginUi(
state = LoginUiState(
showLoginTooltip = true,
recentLoginMethod = LoginMethod.KAKAO,
eventSink = {},
),
)
}
}

@DevicePreview
@Composable
private fun LoginGoogleTooltipPreview() {
ReedTheme {
LoginUi(
state = LoginUiState(
showLoginTooltip = true,
recentLoginMethod = LoginMethod.GOOGLE,
eventSink = {},
),
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ internal fun LoginTooltipBox(
.clip(RoundedCornerShape(ReedTheme.radius.xs))
.background(ReedTheme.colors.contentBrand)
.padding(
horizontal = ReedTheme.spacing.spacing3,
vertical = ReedTheme.spacing.spacing2,
horizontal = ReedTheme.spacing.spacing2,
vertical = ReedTheme.spacing.spacing15,
),
) {
Text(
text = stringResource(messageResId),
color = ReedTheme.colors.contentInverse,
style = ReedTheme.typography.label2Regular,
style = ReedTheme.typography.caption1Medium,
)
}
Box(
Expand All @@ -76,7 +76,7 @@ internal fun LoginTooltipBox(
.height(ReedTheme.spacing.spacing3 / 2)
.offset {
IntOffset(
x = 14.dp.roundToPx(),
x = 8.dp.roundToPx(),
y = 0,
)
}
Expand Down
Loading