This commit is contained in:
2026-03-10 15:04:09 +07:00
parent 8850f158ab
commit 249e44d523
4 changed files with 25 additions and 21 deletions

View File

@@ -8,7 +8,7 @@ use std::sync::Arc;
use anyhow::{Context as AnyhowContext, Error, anyhow};
use gpui::{
App, AppContext, Context, Entity, Global, IntoElement, ParentElement, SharedString, Styled,
Task, Window,
Task, Window, div, relative,
};
use nostr_sdk::prelude::*;
use settings::{AppSettings, AuthMode};
@@ -284,7 +284,7 @@ impl RelayAuth {
window.push_notification(
Notification::success(format!(
"{} has been authenticated",
"Relay {} has been authenticated",
url.domain().unwrap_or_default()
)),
cx,
@@ -332,8 +332,12 @@ impl RelayAuth {
.content(move |_this, _window, cx| {
v_flex()
.gap_2()
.text_sm()
.child(SharedString::from(AUTH_MESSAGE))
.child(
div()
.text_sm()
.line_height(relative(1.25))
.child(SharedString::from(AUTH_MESSAGE)),
)
.child(
v_flex()
.py_1()