Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[ensu] set ai safety footer size to 12px

Prateek Sunaled9298c83831
diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatMessages.kt b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatMessages.kt
index 7081f7d914..49f8a4d413 100644
--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatMessages.kt
+++ b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatMessages.kt
@@ -58,6 +58,7 @@ import androidx.compose.ui.text.AnnotatedString
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.IntOffset
import androidx.compose.ui.unit.dp
+import androidx.compose.ui.unit.sp
import androidx.compose.ui.window.Popup
import androidx.compose.ui.window.PopupProperties
import io.ente.ensu.components.BranchSwitcher
@@ -341,7 +342,7 @@ private fun EmptyState(
private fun AiSafetyFooter() {
Text(
text = "Ensu can make mistakes. Double-check key details.",
- style = EnsuTypography.small,
+ style = EnsuTypography.small.copy(fontSize = 12.sp),
color = EnsuColor.textMuted(),
textAlign = TextAlign.Center,
modifier = Modifier
diff --git a/mobile/native/darwin/Apps/ensu/ensu/Chat/MessageListView.swift b/mobile/native/darwin/Apps/ensu/ensu/Chat/MessageListView.swift
index 8ac9090506..ffeedae0d6 100644
--- a/mobile/native/darwin/Apps/ensu/ensu/Chat/MessageListView.swift
+++ b/mobile/native/darwin/Apps/ensu/ensu/Chat/MessageListView.swift
@@ -270,7 +270,7 @@ struct MessageListView: View {
private var aiSafetyFooter: some View {
Text("Ensu can make mistakes. Double-check key details.")
- .font(EnsuTypography.small)
+ .font(.system(size: 12, weight: .regular))
.foregroundStyle(EnsuColor.textMuted)
.multilineTextAlignment(.center)
.frame(maxWidth: .infinity)
diff --git a/web/apps/ensu/src/components/chat/ChatMessageList.tsx b/web/apps/ensu/src/components/chat/ChatMessageList.tsx
index a9e6b93050..790577bb08 100644
--- a/web/apps/ensu/src/components/chat/ChatMessageList.tsx
+++ b/web/apps/ensu/src/components/chat/ChatMessageList.tsx
@@ -114,6 +114,8 @@ const AiSafetyFooter = memo(() => {
color: "text.muted",
textAlign: "center",
width: "100%",
+ fontSize: "12px",
+ lineHeight: "16px",
}}
>
Ensu can make mistakes. Double-check key details.