Skip to content

Commit affccb7

Browse files
authored
[fix] fixed issue with the token management style (#4083)
1 parent 3e6a796 commit affccb7

2 files changed

Lines changed: 19 additions & 12 deletions

File tree

web-app/src/app/routes/setting/settings/token-management/token-management.component.html

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -124,18 +124,7 @@
124124
{{ 'common.button.copy' | i18n }}
125125
</button>
126126
</div>
127-
<div
128-
style="
129-
padding: 12px;
130-
border: 1px solid #d9d9d9;
131-
border-radius: 4px;
132-
word-wrap: break-word;
133-
word-break: break-all;
134-
font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
135-
font-size: 13px;
136-
background: #fafafa;
137-
"
138-
>
127+
<div class="token-display">
139128
{{ generatedToken }}
140129
</div>
141130
</div>

web-app/src/styles/index.less

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,21 @@ html {
151151
[data-theme='dark'] ::-webkit-scrollbar-thumb:hover {
152152
background: rgba(255, 255, 255, 0.3);
153153
}
154+
155+
/* Token display styling in modal */
156+
.token-display {
157+
padding: 12px;
158+
border: 1px solid #d9d9d9;
159+
border-radius: 4px;
160+
word-wrap: break-word;
161+
word-break: break-all;
162+
font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
163+
font-size: 13px;
164+
background: #fafafa;
165+
}
166+
167+
[data-theme='dark'] .token-display {
168+
background: #1f1f1f;
169+
border-color: #434343;
170+
color: rgba(255, 255, 255, 0.85);
171+
}

0 commit comments

Comments
 (0)