[refactor] app.pyのカスタムCSSファイルパスを修正
Browse filesapp.pyにおけるカスタムCSSファイルのパスを修正しました:
- **修正詳細**:
- `create_custom_css_file`関数の引数で指定されているCSSファイルパスを`'config/custom_style.css'`から`'/custom_style.css'`に変更しました。
この変更は、CSSファイルの参照エラーを解消し、システム全体のリファレンスパスを整理することを目的としています。ファイルパスの変更により、デプロイメント環境でのCSSファイルの読み込みが確実に行われるようになります。
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, '
|
| 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
|