LangGraphAdmin.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507
  1. <template>
  2. <div class="lg-admin">
  3. <div class="lg-top-bar">
  4. <div class="lg-stat" :class="statusClass">
  5. <i class="lg-stat-icon" :class="statusIcon"></i>
  6. <div class="lg-stat-info">
  7. <div class="lg-stat-label">服务状态</div>
  8. <div class="lg-stat-value">{{ statusText }}</div>
  9. <div class="lg-stat-sub">{{ statusTime }}</div>
  10. </div>
  11. </div>
  12. <div class="lg-stat">
  13. <i class="lg-stat-icon el-icon-share"></i>
  14. <div class="lg-stat-info">
  15. <div class="lg-stat-label">服务地址</div>
  16. <div class="lg-stat-value lg-stat-value-sm">{{ langgraphUrl }}</div>
  17. <div class="lg-stat-sub">端口 9000 · v{{ serviceVersion }}</div>
  18. </div>
  19. </div>
  20. <div class="lg-stat">
  21. <i class="lg-stat-icon el-icon-s-data"></i>
  22. <div class="lg-stat-info">
  23. <div class="lg-stat-label">API 端点数</div>
  24. <div class="lg-stat-value">{{ apiCount }}</div>
  25. <div class="lg-stat-sub">个可用接口</div>
  26. </div>
  27. </div>
  28. <div class="lg-stat">
  29. <i class="lg-stat-icon el-icon-document"></i>
  30. <div class="lg-stat-info">
  31. <div class="lg-stat-label">请求日志</div>
  32. <div class="lg-stat-value">{{ totalLogs }}</div>
  33. <div class="lg-stat-sub">条历史记录</div>
  34. </div>
  35. </div>
  36. <div class="lg-actions">
  37. <el-button size="small" type="primary" @click="refreshAll" :loading="refreshing">刷新</el-button>
  38. <el-button size="small" @click="fetchLogs">拉取日志</el-button>
  39. </div>
  40. </div>
  41. <el-tabs v-model="activeTab" type="border-card" class="lg-tabs">
  42. <el-tab-pane label="概览" name="overview">
  43. <div class="lg-panel">
  44. <div class="lg-panel-title">组件健康状态</div>
  45. <div class="adm-table-wrap">
  46. <el-table :data="componentList" border stripe size="small" class="lg-table" height="100%">
  47. <el-table-column prop="name" label="组件" width="140" />
  48. <el-table-column prop="status" label="状态" width="100">
  49. <template slot-scope="{ row }">
  50. <StatusTag size="small" :type="row.status === 'ok' ? 'success' : row.status === 'error' ? 'danger' : 'info'" :text="row.status === 'ok' ? '正常' : row.status === 'error' ? '异常' : '未知'" />
  51. </template>
  52. </el-table-column>
  53. <el-table-column prop="detail" label="详情" show-overflow-tooltip />
  54. </el-table>
  55. </div>
  56. </div>
  57. <div class="lg-panel">
  58. <div class="lg-panel-title">服务配置</div>
  59. <el-descriptions :column="2" border size="small" class="lg-desc">
  60. <el-descriptions-item label="LLM 模型"><el-tag size="mini">{{ config.LLM_MODEL || '-' }}</el-tag></el-descriptions-item>
  61. <el-descriptions-item label="LLM Base URL">{{ config.LLM_BASE_URL || '-' }}</el-descriptions-item>
  62. <el-descriptions-item label="Embedding 模型"><el-tag size="mini">{{ config.EMBEDDING_MODEL || '-' }}</el-tag></el-descriptions-item>
  63. <el-descriptions-item label="Embedding URL">{{ config.EMBEDDING_BASE_URL || '-' }}</el-descriptions-item>
  64. <el-descriptions-item label="Java 后端">{{ config.JAVA_BASE_URL || '-' }}</el-descriptions-item>
  65. <el-descriptions-item label="Chroma DB">{{ config.CHROMA_DB_PATH || '-' }}</el-descriptions-item>
  66. <el-descriptions-item label="LangSmith 追踪">
  67. <StatusTag size="mini" :type="config.LANGCHAIN_TRACING_V2 === 'true' ? 'success' : 'info'" :text="config.LANGCHAIN_TRACING_V2 === 'true' ? '已启用' : '未启用'" />
  68. </el-descriptions-item>
  69. <el-descriptions-item label="日志级别">{{ config.LOG_LEVEL || 'info' }}</el-descriptions-item>
  70. </el-descriptions>
  71. </div>
  72. </el-tab-pane>
  73. <el-tab-pane label="API 端点" name="apis">
  74. <div class="lg-toolbar">
  75. <el-input v-model="apiFilter" placeholder="筛选路径或说明..." prefix-icon="el-icon-search" size="small" clearable class="filter-input-280" />
  76. <el-button size="small" @click="fetchSpec">刷新</el-button>
  77. </div>
  78. <div class="adm-table-wrap">
  79. <el-table :data="filteredApiEndpoints" border stripe size="small" class="lg-table lg-table-full" height="100%">
  80. <el-table-column prop="method" label="方法" width="80" fixed>
  81. <template slot-scope="{ row }">
  82. <el-tag :type="row.method === 'GET' ? 'info' : 'primary'" size="mini">{{ row.method }}</el-tag>
  83. </template>
  84. </el-table-column>
  85. <el-table-column prop="path" label="路径" min-width="260" show-overflow-tooltip />
  86. <el-table-column prop="summary" label="说明" min-width="180" show-overflow-tooltip />
  87. <el-table-column label="操作" width="80" fixed="right">
  88. <template slot-scope="{ row }">
  89. <el-button v-if="row.method === 'POST'" type="text" size="mini" @click="openTestDialog(row)">测试</el-button>
  90. </template>
  91. </el-table-column>
  92. </el-table>
  93. </div>
  94. </el-tab-pane>
  95. <el-tab-pane label="请求历史" name="logs">
  96. <div class="lg-toolbar">
  97. <el-select v-model="logFilterMethod" placeholder="方法" size="small" clearable class="filter-select-90mr8">
  98. <el-option label="GET" value="GET" />
  99. <el-option label="POST" value="POST" />
  100. </el-select>
  101. <el-input v-model="logFilterPath" placeholder="路径筛选..." prefix-icon="el-icon-search" size="small" clearable class="filter-input-200mr8" />
  102. <el-tag size="small" type="info">共 {{ totalLogs }} 条</el-tag>
  103. <el-button size="small" @click="fetchLogs" :loading="logLoading">刷新</el-button>
  104. </div>
  105. <div class="adm-table-wrap">
  106. <el-table :data="filteredLogs" border stripe size="small" class="lg-table lg-table-full" height="100%">
  107. <el-table-column prop="ts" label="时间" width="70" fixed />
  108. <el-table-column prop="method" label="方法" width="60">
  109. <template slot-scope="{ row }">
  110. <el-tag :type="row.method === 'GET' ? 'info' : 'primary'" size="mini">{{ row.method }}</el-tag>
  111. </template>
  112. </el-table-column>
  113. <el-table-column prop="path" label="路径" min-width="200" show-overflow-tooltip />
  114. <el-table-column prop="status" label="状态" width="60">
  115. <template slot-scope="{ row }">
  116. <StatusTag size="mini" :type="row.status < 400 ? 'success' : 'danger'" :text="String(row.status)" />
  117. </template>
  118. </el-table-column>
  119. <el-table-column prop="duration_ms" label="耗时" width="70">
  120. <template slot-scope="{ row }">
  121. <span :style="{ color: row.duration_ms > 5000 ? 'var(--adm-error-text)' : '' }">{{ row.duration_ms }}ms</span>
  122. </template>
  123. </el-table-column>
  124. <el-table-column prop="client_ip" label="IP" width="90" show-overflow-tooltip />
  125. <el-table-column label="操作" width="60" fixed="right">
  126. <template slot-scope="{ row }">
  127. <el-button type="text" size="mini" @click="toggleLogDetail(row)">详情</el-button>
  128. </template>
  129. </el-table-column>
  130. </el-table>
  131. </div>
  132. <div class="adm-table-wrap">
  133. <el-table :data="logDetailRows" border stripe size="small" class="lg-table lg-table-full lg-detail-table" v-if="expandedLog" height="100%">
  134. <el-table-column label="时间" width="90"><template slot-scope="{ row }">{{ row.ts }}</template></el-table-column>
  135. <el-table-column label="方法" width="60"><template slot-scope="{ row }">{{ row.method }}</template></el-table-column>
  136. <el-table-column label="路径"><template slot-scope="{ row }">{{ row.path }}</template></el-table-column>
  137. <el-table-column label="状态" width="70"><template slot-scope="{ row }"><StatusTag size="mini" :type="row.status < 400 ? 'success' : 'danger'" :text="String(row.status)" /></template></el-table-column>
  138. <el-table-column label="耗时" width="80"><template slot-scope="{ row }">{{ row.duration_ms }}ms</template></el-table-column>
  139. <el-table-column label="IP" width="90"><template slot-scope="{ row }">{{ row.client_ip }}</template></el-table-column>
  140. <el-table-column label="请求体" min-width="200"><template slot-scope="{ row }"><pre class="detail-pre">{{ row.body || '(空)' }}</pre></template></el-table-column>
  141. <el-table-column label="响应体" min-width="200"><template slot-scope="{ row }"><pre class="detail-pre">{{ (row.response || '').substring(0, 2000) }}</pre></template></el-table-column>
  142. </el-table>
  143. </div>
  144. </el-tab-pane>
  145. </el-tabs>
  146. <el-dialog :visible.sync="testDialogVisible" :title="'测试: ' + testingEndpoint.path" width="720px" :close-on-click-modal="false">
  147. <el-form size="small">
  148. <el-form-item label="请求参数">
  149. <el-input v-model="testParams" type="textarea" :rows="6" placeholder='{"user_id": 1, "query": "你好"}' />
  150. </el-form-item>
  151. <el-form-item>
  152. <el-button type="primary" @click="runTest" :loading="testing">发送请求</el-button>
  153. <el-button @click="testDialogVisible = false">关闭</el-button>
  154. </el-form-item>
  155. </el-form>
  156. <SectionTitle title="响应结果" />
  157. <pre class="response-pre" v-if="testResponse">{{ testResponse }}</pre>
  158. <el-alert v-else type="info" :closable="false" description="点击发送请求查看响应" />
  159. </el-dialog>
  160. </div>
  161. </template>
  162. <script>
  163. const BASE = 'https://ai.etotem.com.cn'
  164. function fetchJSON(url, options) {
  165. options = options || {}
  166. var headers = options.headers || {}
  167. headers['Content-Type'] = 'application/json'
  168. return fetch(url, Object.assign({}, options, { headers: headers }))
  169. .then(function(res) {
  170. if (!res.ok) throw new Error('HTTP ' + res.status)
  171. return res.json()
  172. })
  173. }
  174. export default {
  175. name: 'LangGraphAdmin',
  176. data() {
  177. return {
  178. activeTab: 'overview',
  179. langgraphUrl: 'https://ai.etotem.com.cn',
  180. serviceVersion: '0.3.0',
  181. statusText: '检测中...',
  182. statusClass: 'status-checking',
  183. statusIcon: 'el-icon-loading',
  184. statusTime: '',
  185. apiCount: 0,
  186. apiEndpoints: [],
  187. apiFilter: '',
  188. componentList: [],
  189. config: {
  190. LLM_MODEL: 'deepseek',
  191. LLM_BASE_URL: 'http://axonhub.iwintrue.com/v1',
  192. EMBEDDING_MODEL: 'BAAI/bge-large-zh-v1.5',
  193. EMBEDDING_BASE_URL: 'https://api.siliconflow.cn/v1',
  194. JAVA_BASE_URL: 'http://111.227.6.214:9082',
  195. CHROMA_DB_PATH: '/data/chroma_db',
  196. LANGCHAIN_TRACING_V2: 'true',
  197. LOG_LEVEL: 'info'
  198. },
  199. logList: [],
  200. totalLogs: 0,
  201. logFilterMethod: '',
  202. logFilterPath: '',
  203. logLoading: false,
  204. expandedLog: null,
  205. testDialogVisible: false,
  206. testingEndpoint: {},
  207. testParams: '{}',
  208. testing: false,
  209. testResponse: '',
  210. refreshing: false,
  211. _interval: null
  212. }
  213. },
  214. computed: {
  215. filteredApiEndpoints: function() {
  216. if (!this.apiFilter) return this.apiEndpoints
  217. var kw = this.apiFilter.toLowerCase()
  218. return this.apiEndpoints.filter(function(e) {
  219. return e.path.toLowerCase().indexOf(kw) >= 0 || (e.summary && e.summary.toLowerCase().indexOf(kw) >= 0)
  220. })
  221. },
  222. filteredLogs: function() {
  223. var list = this.logList
  224. if (this.logFilterMethod) {
  225. list = list.filter(function(l) { return l.method === this.logFilterMethod }, this)
  226. }
  227. if (this.logFilterPath) {
  228. var kw = this.logFilterPath.toLowerCase()
  229. list = list.filter(function(l) { return l.path.toLowerCase().indexOf(kw) >= 0 })
  230. }
  231. return list
  232. },
  233. logDetailRows: function() {
  234. return this.expandedLog ? [this.expandedLog] : []
  235. }
  236. },
  237. created: function() {
  238. this.refreshAll()
  239. this._interval = setInterval(this.refreshAll, 60000)
  240. },
  241. beforeDestroy: function() {
  242. if (this._interval) clearInterval(this._interval)
  243. },
  244. methods: {
  245. async refreshAll() {
  246. this.refreshing = true
  247. try { await Promise.all([this.fetchHealth(), this.fetchSpec()]) }
  248. finally { this.refreshing = false }
  249. },
  250. async fetchHealth() {
  251. try {
  252. var healthy = await new Promise(function(resolve) {
  253. var img = new Image()
  254. img.onload = function() { resolve(true) }
  255. img.onerror = function() { resolve(false) }
  256. img.src = BASE + '/health?t=' + Date.now()
  257. })
  258. if (healthy) { this.statusText = '运行中'; this.statusClass = 'status-healthy'; this.statusIcon = 'el-icon-success' }
  259. else { this.statusText = '未响应'; this.statusClass = 'status-unhealthy'; this.statusIcon = 'el-icon-error' }
  260. } catch (e) { this.statusText = '异常'; this.statusClass = 'status-unhealthy'; this.statusIcon = 'el-icon-error' }
  261. this.statusTime = new Date().toLocaleTimeString()
  262. },
  263. async fetchSpec() {
  264. try {
  265. var res = await fetchJSON(BASE + '/openapi.json')
  266. var paths = res.paths || {}
  267. var endpoints = []
  268. Object.keys(paths).forEach(function(path) {
  269. var methods = paths[path]
  270. Object.keys(methods).forEach(function(method) {
  271. var info = methods[method]
  272. endpoints.push({ method: method.toUpperCase(), path: path, summary: info.summary || info.description || '' })
  273. })
  274. })
  275. endpoints.sort(function(a, b) {
  276. if (a.method !== b.method) return a.method.localeCompare(b.method)
  277. return a.path.localeCompare(b.path)
  278. })
  279. this.apiEndpoints = endpoints
  280. this.apiCount = endpoints.length
  281. this.fetchDetailedHealth()
  282. } catch (e) { console.error('获取 API 规范失败', e) }
  283. },
  284. async fetchDetailedHealth() {
  285. try {
  286. var res = await fetchJSON(BASE + '/api/v1/health')
  287. var data = res || {}
  288. var comps = []
  289. var c = data.components || {}
  290. if (c.chromadb) comps.push({ name: 'ChromaDB', status: c.chromadb.status || 'unknown', detail: (c.chromadb.detail || c.chromadb.path || '') })
  291. if (c.llm) comps.push({ name: 'LLM', status: c.llm.status || 'unknown', detail: c.llm.message || '' })
  292. if (c.java_backend) comps.push({ name: 'Java 后端', status: c.java_backend.status || 'unknown', detail: c.java_backend.detail || (c.java_backend.code ? 'HTTP ' + c.java_backend.code : '') })
  293. this.componentList = comps
  294. var llmOk = !c.llm || c.llm.status === 'ok'
  295. var chromaOk = !c.chromadb || c.chromadb.status === 'ok'
  296. if (llmOk && chromaOk) {
  297. this.statusText = '运行中'
  298. this.statusClass = 'status-healthy'
  299. this.statusIcon = 'el-icon-success'
  300. } else if (!llmOk) {
  301. this.statusText = 'LLM 异常'
  302. this.statusClass = 'status-unhealthy'
  303. this.statusIcon = 'el-icon-error'
  304. } else {
  305. this.statusText = '运行中'
  306. this.statusClass = 'status-degraded'
  307. this.statusIcon = 'el-icon-warning'
  308. }
  309. this.statusTime = new Date().toLocaleTimeString()
  310. } catch (e) {
  311. this.componentList = [{ name: '健康检查', status: 'error', detail: e.message }]
  312. }
  313. },
  314. async fetchLogs() {
  315. this.logLoading = true
  316. try {
  317. var res = await fetchJSON(BASE + '/api/v1/logs?limit=200')
  318. this.logList = res.logs || []
  319. this.totalLogs = res.total || 0
  320. } catch (e) {
  321. this.logList = []
  322. this.totalLogs = 0
  323. } finally {
  324. this.logLoading = false
  325. }
  326. },
  327. toggleLogDetail: function(row) {
  328. this.expandedLog = this.expandedLog === row ? null : row
  329. },
  330. openTestDialog: function(endpoint) {
  331. this.testingEndpoint = endpoint
  332. var defaults = {
  333. '/api/v1/food/recognize': JSON.stringify({ image_url: 'https://example.com/food.jpg' }, null, 2),
  334. '/api/v1/menu/generate': JSON.stringify({ selected_foods: '[{"name":"鸡肉"}]', participants: '[]', date: '2026-08-08' }, null, 2),
  335. '/api/v1/chat': JSON.stringify({ query: '你好', user_id: 1 }, null, 2),
  336. '/api/v1/health/coach': JSON.stringify({ query: '孩子最近睡眠不好', user_id: '1' }, null, 2),
  337. '/api/v1/health/coach/generate': JSON.stringify({ familyId: 1, memberIds: '1', dimensions: 'body', goal: '改善睡眠' }, null, 2)
  338. }
  339. this.testParams = defaults[endpoint.path] || '{}'
  340. this.testResponse = ''
  341. this.testDialogVisible = true
  342. },
  343. async runTest() {
  344. var self = this
  345. self.testing = true
  346. self.testResponse = ''
  347. try {
  348. var payload = {}
  349. if (self.testParams && self.testParams !== '请上传舌苔图片 (MIME 类型表单)') payload = JSON.parse(self.testParams)
  350. var res = await fetch(BASE + self.testingEndpoint.path, {
  351. method: 'POST', headers: { 'Content-Type': 'application/json' },
  352. body: JSON.stringify(payload), signal: AbortSignal.timeout(60000)
  353. })
  354. self.testResponse = JSON.stringify(await res.json(), null, 2)
  355. } catch (e) { self.testResponse = '错误: ' + e.message }
  356. finally { self.testing = false }
  357. }
  358. }
  359. }
  360. </script>
  361. <style scoped>
  362. .lg-admin {
  363. display: flex;
  364. flex-direction: column;
  365. height: calc(100vh - 60px);
  366. overflow: hidden;
  367. padding: 12px;
  368. box-sizing: border-box;
  369. }
  370. .lg-top-bar {
  371. display: flex;
  372. align-items: center;
  373. gap: 12px;
  374. flex-shrink: 0;
  375. margin-bottom: 12px;
  376. }
  377. .lg-stat {
  378. display: flex;
  379. align-items: center;
  380. gap: 10px;
  381. padding: 10px 16px;
  382. background: var(--adm-bg-container);
  383. border-radius: 8px;
  384. box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  385. border-left: 3px solid transparent;
  386. flex: 1;
  387. min-width: 0;
  388. }
  389. .lg-stat.status-healthy { border-left-color: var(--adm-success); }
  390. .lg-stat.status-unhealthy { border-left-color: var(--adm-error); }
  391. .lg-stat.status-degraded { border-left-color: var(--adm-warning); }
  392. .lg-stat-icon { font-size: 22px; flex-shrink: 0; }
  393. .lg-stat.status-checking .lg-stat-icon { color: var(--adm-primary); }
  394. .lg-stat.status-healthy .lg-stat-icon { color: var(--adm-success); }
  395. .lg-stat.status-unhealthy .lg-stat-icon { color: var(--adm-error); }
  396. .lg-stat.status-degraded .lg-stat-icon { color: var(--adm-warning); }
  397. .lg-stat-label { font-size: 11px; color: var(--adm-text-45); }
  398. .lg-stat-value { font-size: 16px; font-weight: bold; color: var(--adm-text-88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  399. .lg-stat-sub { font-size: 11px; color: var(--adm-text-25); }
  400. .lg-actions { display: flex; gap: 8px; flex-shrink: 0; }
  401. .lg-tabs {
  402. flex: 1;
  403. overflow: hidden;
  404. display: flex;
  405. flex-direction: column;
  406. }
  407. .lg-tabs >>> .el-tabs__content {
  408. flex: 1;
  409. overflow: hidden;
  410. padding: 12px;
  411. }
  412. .lg-tabs >>> .el-tab-pane {
  413. height: 100%;
  414. display: flex;
  415. flex-direction: column;
  416. overflow: hidden;
  417. }
  418. .lg-panel {
  419. background: var(--adm-bg-container);
  420. border-radius: 8px;
  421. box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  422. margin-bottom: 12px;
  423. display: flex;
  424. flex-direction: column;
  425. overflow: hidden;
  426. }
  427. .lg-panel-title {
  428. font-size: 14px;
  429. font-weight: 600;
  430. color: var(--adm-text-88);
  431. padding: 10px 16px;
  432. border-bottom: 1px solid var(--adm-border-split);
  433. flex-shrink: 0;
  434. }
  435. .lg-desc {
  436. flex: 1;
  437. overflow: auto;
  438. padding: 8px 12px;
  439. }
  440. .lg-toolbar {
  441. display: flex;
  442. align-items: center;
  443. gap: 8px;
  444. margin-bottom: 8px;
  445. flex-shrink: 0;
  446. flex-wrap: wrap;
  447. }
  448. .lg-table {
  449. flex: 1;
  450. overflow: hidden;
  451. }
  452. .lg-table-full {
  453. flex: 1;
  454. min-height: 0;
  455. }
  456. .lg-table >>> .el-table__body-wrapper {
  457. overflow-y: auto;
  458. }
  459. .lg-detail-table {
  460. margin-top: 8px;
  461. flex-shrink: 0;
  462. }
  463. .detail-pre {
  464. background: #1e1e1e;
  465. color: #d4d4d4;
  466. padding: 6px 8px;
  467. border-radius: 4px;
  468. font-size: 11px;
  469. max-height: 160px;
  470. overflow-y: auto;
  471. white-space: pre-wrap;
  472. word-break: break-all;
  473. margin: 0;
  474. }
  475. .response-pre {
  476. background: var(--adm-bg-header);
  477. padding: 12px;
  478. border-radius: 4px;
  479. font-size: 12px;
  480. max-height: 300px;
  481. overflow-y: auto;
  482. white-space: pre-wrap;
  483. word-break: break-all;
  484. }
  485. /* == C 批内联清理工具类 == */
  486. .lg-stat-value-sm { font-size: 12px; }
  487. .filter-input-280 { width: 280px; }
  488. .filter-select-90mr8 { width: 90px; margin-right: 8px; }
  489. .filter-input-200mr8 { width: 200px; margin-right: 8px; }
  490. </style>