|
16 | 16 | <NcTextField |
17 | 17 | :model-value="settingsFilter" |
18 | 18 | :label="t('libresign', 'Find setting')" |
19 | | - :placeholder="t('libresign', 'Search by name, summary or hint')" |
| 19 | + :placeholder="t('libresign', 'Search by name, summary, description or context')" |
20 | 20 | @keydown.esc.prevent="clearSettingsFilter" |
21 | 21 | @update:modelValue="onSettingsFilterChange" /> |
22 | 22 | <div class="policy-workbench__catalog-foot"> |
|
68 | 68 | @keydown.space.prevent="state.openSetting(summary.key)"> |
69 | 69 | <div class="policy-workbench__setting-header"> |
70 | 70 | <div> |
71 | | - <h3 v-html="highlightText(summary.title)"></h3> |
| 71 | + <h3 class="policy-workbench__setting-title"> |
| 72 | + <span v-html="highlightText(summary.title)"></span> |
| 73 | + <span v-if="summary.context" class="policy-workbench__setting-context">(<span v-html="highlightText(summary.context)"></span>)</span> |
| 74 | + </h3> |
72 | 75 | <p v-html="highlightText(summary.description)"></p> |
73 | 76 | </div> |
74 | 77 | <NcButton variant="secondary" class="policy-workbench__manage-button" :aria-label="t('libresign', 'Manage this setting')" @click.stop="state.openSetting(summary.key)"> |
75 | 78 | {{ t('libresign', 'Manage') }} |
76 | 79 | </NcButton> |
77 | 80 | </div> |
78 | 81 |
|
79 | | - <p class="policy-workbench__setting-hint"> |
80 | | - <span v-html="highlightText(summary.menuHint)"></span> |
81 | | - </p> |
82 | | - |
83 | 82 | <p class="policy-workbench__origin-badge"> |
84 | 83 | {{ resolveSettingOrigin(summary.groupCount, summary.userCount) }} |
85 | 84 | </p> |
|
114 | 113 | @keydown.enter.prevent="state.openSetting(summary.key)" |
115 | 114 | @keydown.space.prevent="state.openSetting(summary.key)"> |
116 | 115 | <div class="policy-workbench__settings-row-main"> |
117 | | - <h3 v-html="highlightText(summary.title)"></h3> |
| 116 | + <h3 class="policy-workbench__setting-title"> |
| 117 | + <span v-html="highlightText(summary.title)"></span> |
| 118 | + <span v-if="summary.context" class="policy-workbench__setting-context">(<span v-html="highlightText(summary.context)"></span>)</span> |
| 119 | + </h3> |
118 | 120 | <p v-html="highlightText(summary.description)"></p> |
119 | 121 | <p class="policy-workbench__origin-badge policy-workbench__origin-badge--inline"> |
120 | 122 | {{ resolveSettingOrigin(summary.groupCount, summary.userCount) }} |
@@ -539,7 +541,7 @@ const filteredSettingSummaries = computed(() => { |
539 | 541 | } |
540 | 542 |
|
541 | 543 | return state.visibleSettingSummaries.filter((summary) => { |
542 | | - return [summary.title, summary.description, summary.menuHint, summary.defaultSummary] |
| 544 | + return [summary.title, summary.context ?? '', summary.description, summary.defaultSummary] |
543 | 545 | .some((value) => value.toLowerCase().includes(normalized)) |
544 | 546 | }) |
545 | 547 | }) |
@@ -1027,9 +1029,16 @@ onBeforeUnmount(() => { |
1027 | 1029 | } |
1028 | 1030 | } |
1029 | 1031 |
|
1030 | | - &__setting-hint { |
| 1032 | + &__setting-title { |
| 1033 | + display: inline-flex; |
| 1034 | + align-items: baseline; |
| 1035 | + gap: 0.35rem; |
| 1036 | + } |
| 1037 | +
|
| 1038 | + &__setting-context { |
| 1039 | + font-size: 0.88em; |
| 1040 | + font-weight: 500; |
1031 | 1041 | color: var(--color-text-maxcontrast); |
1032 | | - word-break: break-word; |
1033 | 1042 | } |
1034 | 1043 |
|
1035 | 1044 | &__setting-stats { |
|
0 commit comments