about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-07-24 23:56:06 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:15 -0500
commit9bd0bb4e260d1dee975f4b4e50ca52c04e7c317f (patch)
tree405ba30326d276da5146c89d66852afc7415a2a7 /app/views
parent9c75c01decf1fbdb32350998c39a9d7fdeb00951 (diff)
[UI, Accessibiity] Make dashed nest level indicators optional
Diffstat (limited to 'app/views')
-rwxr-xr-xapp/views/layouts/application.html.haml6
-rw-r--r--app/views/settings/preferences/appearance/show.html.haml3
2 files changed, 9 insertions, 0 deletions
diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml
index 3336cf391..98ee041c1 100755
--- a/app/views/layouts/application.html.haml
+++ b/app/views/layouts/application.html.haml
@@ -40,6 +40,12 @@
     - if Setting.custom_css.present?
       = stylesheet_link_tag custom_css_path, media: 'all'
 
+    - if current_account&.user&.setting_style_dashed_nest
+      :css
+        div[data-nest-level] {
+          border-style: dashed;
+        }
+
   %body{ class: body_classes }
     = content_for?(:content) ? yield(:content) : yield
 
diff --git a/app/views/settings/preferences/appearance/show.html.haml b/app/views/settings/preferences/appearance/show.html.haml
index 5fc865814..c2cff5ca4 100644
--- a/app/views/settings/preferences/appearance/show.html.haml
+++ b/app/views/settings/preferences/appearance/show.html.haml
@@ -30,6 +30,9 @@
     = f.input :setting_system_font_ui, as: :boolean, wrapper: :with_label
     = f.input :setting_system_emoji_font, as: :boolean, wrapper: :with_label
 
+  .fields-group
+    = f.input :setting_style_dashed_nest, as: :boolean, wrapper: :with_label
+
   %h4= t 'appearance.toot_layout'
 
   .fields-group