QIDNLF commited on
Commit
863075e
ยท
verified ยท
1 Parent(s): 036a152

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -146,7 +146,7 @@ def highlight_diff(base_text, comp_text):
146
 
147
  elif code == '-':
148
  base_result.append(
149
- f"<span style='color:#ff4d4f; text-decoration:line-through'>{word}</span>"
150
  )
151
 
152
  elif code == '+':
@@ -328,23 +328,23 @@ if __name__ == "__main__":
328
  font-family: 'Pretendard', sans-serif;
329
  }
330
 
331
- /* ํ…Œ์ด๋ธ” ๋ ˆ์ด์•„์›ƒ */
332
  table {
333
- table-layout: fixed;
334
- width: 100%;
335
  }
336
 
337
  /* section ๊ณ ์ • */
338
- th:first-child, td:first-child {
339
- width: 120px;
340
- min-width: 120px;
341
- max-width: 120px;
342
  }
343
 
344
- /* description ๋™์ผ ๋ถ„ํ•  */
345
  th:nth-child(2), td:nth-child(2),
346
  th:nth-child(3), td:nth-child(3) {
347
- width: calc((100% - 120px) / 2);
348
  }
349
 
350
  /* ํ—ค๋” ๊ณ ์ • */
 
146
 
147
  elif code == '-':
148
  base_result.append(
149
+ f"<span style='color:#ff4d4f; font-weight:600'>{word}</span>"
150
  )
151
 
152
  elif code == '+':
 
328
  font-family: 'Pretendard', sans-serif;
329
  }
330
 
331
+ /* ํ…Œ์ด๋ธ” ๊ณ ์ • */
332
  table {
333
+ table-layout: fixed !important;
334
+ width: 100% !important;
335
  }
336
 
337
  /* section ๊ณ ์ • */
338
+ th:nth-child(1), td:nth-child(1) {
339
+ width: 120px !important;
340
+ min-width: 120px !important;
341
+ max-width: 120px !important;
342
  }
343
 
344
+ /* desc 2๊ฐœ ์ •ํ™•ํžˆ ๋ฐ˜๋ฐ˜ */
345
  th:nth-child(2), td:nth-child(2),
346
  th:nth-child(3), td:nth-child(3) {
347
+ width: 50% !important;
348
  }
349
 
350
  /* ํ—ค๋” ๊ณ ์ • */