mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
UI – Show line breaks in Policy details modals (#15354)
## Addresses #14484 <img width="653" alt="Screenshot 2023-11-28 at 2 05 26 PM" src="https://github.com/fleetdm/fleet/assets/61553566/7af9d880-d3fd-443b-94f6-8135f5ce506a"> - [x] Changes file added for user-visible changes in `changes/` - [x] Manual QA for all new/changed functionality --------- Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
This commit is contained in:
parent
24068230c6
commit
32805c1681
3 changed files with 14 additions and 13 deletions
1
changes/14484-whitespace-in-policies
Normal file
1
changes/14484-whitespace-in-policies
Normal file
|
|
@ -0,0 +1 @@
|
|||
- Render whitespace in policy descriptions and resolutions
|
||||
|
|
@ -22,11 +22,13 @@ const PolicyDetailsModal = ({
|
|||
onExit={onCancel}
|
||||
className={baseClass}
|
||||
>
|
||||
<div className={`${baseClass}__modal-body`}>
|
||||
<p>{policy?.description}</p>
|
||||
<div className={`${baseClass}__body`}>
|
||||
<span className={`${baseClass}__description`}>
|
||||
{policy?.description}
|
||||
</span>
|
||||
{policy?.resolution && (
|
||||
<div className={`${baseClass}__resolution`}>
|
||||
<span className={`${baseClass}__resolve-header`}> Resolve:</span>
|
||||
<span className={`${baseClass}__resolution-header`}>Resolve:</span>
|
||||
{policy?.resolution && <ClickableUrls text={policy?.resolution} />}
|
||||
</div>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,13 @@
|
|||
.policy-details-modal {
|
||||
&__body {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
&__resolution {
|
||||
p {
|
||||
margin-top: $pad-xsmall;
|
||||
}
|
||||
}
|
||||
|
||||
&__resolve-header {
|
||||
font-weight: $bold;
|
||||
}
|
||||
|
||||
.policy-details-modal__resolution {
|
||||
margin-top: $pad-small;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
&__resolution-header {
|
||||
font-weight: $bold;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue