浏览代码

Update readme path for templates (#2060)

Nikhil Rao 1 年之前
父节点
当前提交
5e444a7b7b
共有 2 个文件被更改,包括 2 次插入5 次删除
  1. 1 1
      reflex/.templates/apps/base/README.md
  2. 1 4
      reflex/.templates/apps/base/code/styles.py

+ 1 - 1
reflex/.templates/apps/base/README.md

@@ -45,7 +45,7 @@ For example, to edit this page you can modify `{your_app}/pages/index.py`.
 See the [pages docs](https://reflex.dev/docs/components/pages/) for more information on pages.
 
 In this template, instead of using `rx.add_page` or the `@rx.page` decorator,
-we use the `@template` decorator from `{your_app}/pages/template.py`.
+we use the `@template` decorator from `{your_app}/templates/template.py`.
 
 To add a new page:
 

+ 1 - 4
reflex/.templates/apps/base/code/styles.py

@@ -13,10 +13,7 @@ hover_accent_bg = {"_hover": {"bg": accent_color}}
 content_width_vw = "90vw"
 sidebar_width = "20em"
 
-template_page_style = {
-    "padding_top": "5em",
-    "padding_x": "2em",
-}
+template_page_style = {"padding_top": "5em", "padding_x": ["auto", "2em"]}
 
 template_content_style = {
     "width": "100%",