File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ export const ScopeSendMessages: React.FC = () => {
6868const ScopeSynapseAdmin : React . FC = ( ) => {
6969 const { t } = useTranslation ( ) ;
7070 return (
71- < VisualListItem Icon = { IconErrorSolid } >
71+ < VisualListItem Icon = { IconErrorSolid } destructive >
7272 { t ( "mas.scope.synapse_admin" ) }
7373 </ VisualListItem >
7474 ) ;
@@ -77,7 +77,7 @@ const ScopeSynapseAdmin: React.FC = () => {
7777const ScopeMasAdmin : React . FC = ( ) => {
7878 const { t } = useTranslation ( ) ;
7979 return (
80- < VisualListItem Icon = { IconErrorSolid } >
80+ < VisualListItem Icon = { IconErrorSolid } destructive >
8181 { t ( "mas.scope.mas_admin" ) }
8282 </ VisualListItem >
8383 ) ;
Original file line number Diff line number Diff line change 117117 width : var (--cpd-space-6x );
118118 color : var (--cpd-color-icon-quaternary );
119119 }
120+
121+ & .dangerous {
122+ border : 1px solid var (--cpd-color-border-critical-subtle );
123+ background-color : var (--cpd-color-bg-critical-subtle );
124+ color : var (--cpd-color-text-critical-primary );
125+
126+ & > svg {
127+ color : var (--cpd-color-icon-critical-primary );
128+ }
129+ }
120130 }
121131 }
122132}
Original file line number Diff line number Diff line change 1818 < li > {{ icon.chat() }}< p > {{ _("mas.scope.view_messages") }}</ p > </ li >
1919 < li > {{ icon.send() }}< p > {{ _("mas.scope.send_messages") }}</ p > </ li >
2020 {% elif scope == "urn:synapse:admin:*" %}
21- < li > {{ icon.error_solid () }}< p > {{ _("mas.scope.synapse_admin") }}</ p > </ li >
21+ < li class =" dangerous " > {{ icon.room () }}< p > {{ _("mas.scope.synapse_admin") }}</ p > </ li >
2222 {% elif scope == "urn:mas:admin" %}
23- < li > {{ icon.error_solid () }}< p > {{ _("mas.scope.mas_admin") }}</ p > </ li >
23+ < li class =" dangerous " > {{ icon.admin () }}< p > {{ _("mas.scope.mas_admin") }}</ p > </ li >
2424 {% elif scope is startingwith("urn:matrix:client:device:") or scope is startingwith("urn:matrix:org.matrix.msc2967.client:device:") %}
2525 {# We hide this scope #}
2626 {% else %}
You can’t perform that action at this time.
0 commit comments