FIX: fix icons and text overlap

Change-Id: Id6fb4cc5d6baf70a168d4c35b851fd2f32496113
This commit is contained in:
Kunlong Ma 2024-05-31 12:07:51 +08:00 committed by Lane.Wei
parent 3b6724d414
commit 98255ad710

View File

@ -436,7 +436,12 @@ void NotificationManager::PopNotification::count_spaces()
//}
m_window_width_offset = m_left_indentation + m_line_height * 3.f;
if (m_data.level == NotificationLevel::ErrorNotificationLevel || m_data.level == NotificationLevel::SeriousWarningNotificationLevel) {
#ifdef __APPLE__
m_left_indentation = 52 + m_line_height;
#else
m_left_indentation = 32 + m_line_height;
#endif // __APPLE__
m_window_width_offset = 90.f;
}
m_window_width = m_line_height * 25;