From da5e4fe5b19d6735a11c9a0914b535e3b642a061 Mon Sep 17 00:00:00 2001 From: oohira Date: Sun, 24 Jan 2016 23:40:25 +0900 Subject: [PATCH] Limit maximum width of image --- src/main/webapp/assets/common/css/gitbucket.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/webapp/assets/common/css/gitbucket.css b/src/main/webapp/assets/common/css/gitbucket.css index d16a74627..ca0259dc9 100644 --- a/src/main/webapp/assets/common/css/gitbucket.css +++ b/src/main/webapp/assets/common/css/gitbucket.css @@ -1446,6 +1446,10 @@ div.wiki-sidebar { margin-top: 20px; } +div.wiki-sidebar img { + max-width: 100%; +} + div.wiki-sidebar-dotted { background-color: white; border: 1px dashed #ddd; @@ -1878,6 +1882,10 @@ div.markdown-body p { line-height: 1.5; } +div.markdown-body img { + max-width: 100%; +} + div.markdown-body pre { font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px;