refactor: Improve XFS v4 notice display in filesystem warnings

- Changed the XFS v4 notice from a span to a div for better styling and layout.
- Removed the .notice class to prevent duplicate icons, enhancing the visual clarity of the warning message.
This commit is contained in:
Eli Bosley
2025-09-12 15:58:15 -04:00
parent 9603eaa00a
commit 8e5bdaae8d

View File

@@ -713,9 +713,10 @@ function get_inline_fs_warnings($disk) {
$html .= '<span id="reiserfs" class="warning"><i class="fa fa-exclamation-triangle"></i>&nbsp;' .
htmlspecialchars(_($warning['message'])) . '</span>';
} else {
// XFS v4 - notice
$html .= '<span id="xfsv4" class="notice" style="color:#0066cc;"><i class="fa fa-info-circle"></i>&nbsp;' .
htmlspecialchars(_($warning['message'])) . '</span>';
// XFS v4 - notice (without .notice class to avoid duplicate icon)
$html .= '<div id="xfsv4" style="color:#0066cc; margin: 5px 0; line-height: 1.5;">' .
'<i class="fa fa-info-circle"></i>&nbsp;' .
htmlspecialchars(_($warning['message'])) . '</div>';
}
}