Browse Source

Fix logo centering (#4945)

Matt Rubens 6 months ago
parent
commit
d1eecb9084

+ 14 - 11
webview-ui/src/components/welcome/RooHero.tsx

@@ -7,17 +7,20 @@ const RooHero = () => {
 	})
 
 	return (
-		<div
-			style={{
-				backgroundColor: "var(--vscode-foreground)",
-				WebkitMaskImage: `url('${imagesBaseUri}/roo-logo.svg')`,
-				WebkitMaskRepeat: "no-repeat",
-				WebkitMaskSize: "contain",
-				maskImage: `url('${imagesBaseUri}/roo-logo.svg')`,
-				maskRepeat: "no-repeat",
-				maskSize: "contain",
-			}}>
-			<img src={imagesBaseUri + "/roo-logo.svg"} alt="Roo logo" className="h-8 opacity-0" />
+		<div className="flex flex-col items-center justify-center pb-4 forced-color-adjust-none">
+			<div
+				style={{
+					backgroundColor: "var(--vscode-foreground)",
+					WebkitMaskImage: `url('${imagesBaseUri}/roo-logo.svg')`,
+					WebkitMaskRepeat: "no-repeat",
+					WebkitMaskSize: "contain",
+					maskImage: `url('${imagesBaseUri}/roo-logo.svg')`,
+					maskRepeat: "no-repeat",
+					maskSize: "contain",
+				}}
+				className="mx-auto">
+				<img src={imagesBaseUri + "/roo-logo.svg"} alt="Roo logo" className="h-8 opacity-0" />
+			</div>
 		</div>
 	)
 }

+ 1 - 0
webview-ui/src/i18n/locales/en/history.json

@@ -1,4 +1,5 @@
 {
+	"recentTasks": "Recent Tasks",
 	"history": "History",
 	"exitSelectionMode": "Exit Selection Mode",
 	"enterSelectionMode": "Enter Selection Mode",

+ 1 - 0
webview-ui/src/i18n/locales/hi/history.json

@@ -1,4 +1,5 @@
 {
+	"recentTasks": "हाल के कार्य",
 	"history": "इतिहास",
 	"exitSelectionMode": "चयन मोड से बाहर निकलें",
 	"enterSelectionMode": "चयन मोड में प्रवेश करें",

+ 1 - 0
webview-ui/src/i18n/locales/it/history.json

@@ -1,4 +1,5 @@
 {
+	"recentTasks": "Attività recenti",
 	"history": "Cronologia",
 	"exitSelectionMode": "Esci dalla modalità selezione",
 	"enterSelectionMode": "Entra in modalità selezione",

+ 1 - 0
webview-ui/src/i18n/locales/ja/history.json

@@ -1,4 +1,5 @@
 {
+	"recentTasks": "最近のタスク",
 	"history": "履歴",
 	"exitSelectionMode": "選択モードを終了",
 	"enterSelectionMode": "選択モードに入る",

+ 1 - 0
webview-ui/src/i18n/locales/ko/history.json

@@ -1,4 +1,5 @@
 {
+	"recentTasks": "최근 작업",
 	"history": "기록",
 	"exitSelectionMode": "선택 모드 종료",
 	"enterSelectionMode": "선택 모드 진입",

+ 1 - 0
webview-ui/src/i18n/locales/nl/history.json

@@ -1,4 +1,5 @@
 {
+	"recentTasks": "Recente taken",
 	"history": "Geschiedenis",
 	"exitSelectionMode": "Selectiemodus verlaten",
 	"enterSelectionMode": "Selectiemodus starten",

+ 1 - 0
webview-ui/src/i18n/locales/pl/history.json

@@ -1,4 +1,5 @@
 {
+	"recentTasks": "Ostatnie zadania",
 	"history": "Historia",
 	"exitSelectionMode": "Wyłącz tryb wyboru",
 	"enterSelectionMode": "Włącz tryb wyboru",

+ 1 - 0
webview-ui/src/i18n/locales/pt-BR/history.json

@@ -1,4 +1,5 @@
 {
+	"recentTasks": "Tarefas recentes",
 	"history": "Histórico",
 	"exitSelectionMode": "Sair do modo de seleção",
 	"enterSelectionMode": "Entrar no modo de seleção",

+ 1 - 0
webview-ui/src/i18n/locales/ru/history.json

@@ -1,4 +1,5 @@
 {
+	"recentTasks": "Недавние задачи",
 	"history": "История",
 	"exitSelectionMode": "Выйти из режима выбора",
 	"enterSelectionMode": "Войти в режим выбора",

+ 1 - 0
webview-ui/src/i18n/locales/tr/history.json

@@ -1,4 +1,5 @@
 {
+	"recentTasks": "Son görevler",
 	"history": "Geçmiş",
 	"exitSelectionMode": "Seçim Modundan Çık",
 	"enterSelectionMode": "Seçim Moduna Gir",

+ 1 - 0
webview-ui/src/i18n/locales/vi/history.json

@@ -1,4 +1,5 @@
 {
+	"recentTasks": "Nhiệm vụ gần đây",
 	"history": "Lịch sử",
 	"exitSelectionMode": "Thoát chế độ chọn",
 	"enterSelectionMode": "Vào chế độ chọn",

+ 1 - 0
webview-ui/src/i18n/locales/zh-CN/history.json

@@ -1,4 +1,5 @@
 {
+	"recentTasks": "最近任务",
 	"history": "历史记录",
 	"exitSelectionMode": "退出多选模式",
 	"enterSelectionMode": "进入多选模式",

+ 1 - 0
webview-ui/src/i18n/locales/zh-TW/history.json

@@ -1,4 +1,5 @@
 {
+	"recentTasks": "最近工作",
 	"history": "歷史記錄",
 	"exitSelectionMode": "離開選擇模式",
 	"enterSelectionMode": "進入選擇模式",