From ddca090cd7bdb77ecb8d7b4515793407f62d6513 Mon Sep 17 00:00:00 2001 From: Jessica Lawshe Date: Tue, 17 Jul 2018 09:09:07 -0500 Subject: [PATCH 1/2] Add Wiki controller with MathJax directive --- services/web/public/coffee/main/learn.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/public/coffee/main/learn.coffee b/services/web/public/coffee/main/learn.coffee index 375c2f0365..8ed54cf57e 100644 --- a/services/web/public/coffee/main/learn.coffee +++ b/services/web/public/coffee/main/learn.coffee @@ -1,5 +1,6 @@ define [ "base" + "directives/mathjax" "services/algolia-search" ], (App) -> @@ -55,4 +56,4 @@ define [ hits = _.map response.hits, buildHitViewModel updateHits hits - + App.controller "LearnController", () -> From 83b3904fcabf8df9b7b3504ecd48abeefe9be508 Mon Sep 17 00:00:00 2001 From: Jessica Lawshe Date: Tue, 17 Jul 2018 09:10:03 -0500 Subject: [PATCH 2/2] Set max-width on Wiki images Fixes images expanding outside of parent container --- services/web/public/stylesheets/app/wiki.less | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/web/public/stylesheets/app/wiki.less b/services/web/public/stylesheets/app/wiki.less index 5f7462d02c..29ccf505e6 100644 --- a/services/web/public/stylesheets/app/wiki.less +++ b/services/web/public/stylesheets/app/wiki.less @@ -13,6 +13,10 @@ font-size: 18px; } } + + img { + max-width: 100%; + } .page-header { a {