HALU-HAL commited on
Commit
20ee49a
·
1 Parent(s): 2e37269

[refactor] app.pyのカスタムCSSファイルパスを修正

Browse files

app.pyにおけるカスタムCSSファイルのパスを修正しました:

- **修正詳細**:
- `create_custom_css_file`関数の引数で指定されているCSSファイルパスを`'config/custom_style.css'`から`'/custom_style.css'`に変更しました。

この変更は、CSSファイルの参照エラーを解消し、システム全体のリファレンスパスを整理することを目的としています。ファイルパスの変更により、デプロイメント環境でのCSSファイルの読み込みが確実に行われるようになります。

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ def generate_timeline(df, margin_coefficient):
49
  return timeline_html
50
 
51
  def create_custom_css(border_color, marker_color, box_background):
52
- css_file_path = create_custom_css_file(border_color, marker_color, box_background, 'config/custom_style.css')
53
  custom_css = load_css(css_file_path)
54
  st.markdown(f'<style>{custom_css}</style>', unsafe_allow_html=True)
55
  return custom_css
 
49
  return timeline_html
50
 
51
  def create_custom_css(border_color, marker_color, box_background):
52
+ css_file_path = create_custom_css_file(border_color, marker_color, box_background, '/custom_style.css')
53
  custom_css = load_css(css_file_path)
54
  st.markdown(f'<style>{custom_css}</style>', unsafe_allow_html=True)
55
  return custom_css