fix(xo-web/user): SSH key formatting (#5892)

Fixes #5891

Allow SSH key to be broken anywhere to avoid breaking page formatting.
This commit is contained in:
Anthony Stivers
2021-08-31 05:42:25 -04:00
committed by GitHub
parent 54e47c98cc
commit bf83c269c4
2 changed files with 5 additions and 1 deletions

View File

@@ -11,6 +11,8 @@
> Users must be able to say: “I had this issue, happy to know it's fixed”
- [SSH keys] Allow SSH key to be broken anywhere to avoid breaking page formatting (Thanks @tstivers1990!) [#5891](https://github.com/vatesfr/xen-orchestra/issues/5891) (PR [#5892](https://github.com/vatesfr/xen-orchestra/pull/5892))
### Packages to release
> Packages will be released in the order they are here, therefore, they should
@@ -27,3 +29,5 @@
> - major: if the change breaks compatibility
>
> In case of conflict, the highest (lowest in previous list) `$version` wins.
- xo-web patch

View File

@@ -55,7 +55,7 @@ const FILTER_TYPE_TO_LABEL_ID = {
'VM-template': 'homeTypeVmTemplate',
}
const SSH_KEY_STYLE = { wordWrap: 'break-word' }
const SSH_KEY_STYLE = { wordWrap: 'anywhere' }
const getDefaultFilter = (defaultFilters, type) => {
if (defaultFilters == null) {