Skip to content

Commit

Permalink
Merge pull request #37 from prajapati-kaushik/8240-set-image-max-with…
Browse files Browse the repository at this point in the history
…-on-the-wiki-page

chore: set image maxwith on wiki page #8240
  • Loading branch information
prajapati-kaushik authored Nov 16, 2023
2 parents efef569 + 6d9b3f7 commit de79f98
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 10 additions & 0 deletions Resources/views/base.wiki.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
{% extends 'base.html.twig' %}


{% block style_custom %}

<style>
.wiki-content img {
max-width: 100%;
}
</style>
{% endblock %}

{% block sidebar %}
<i class="fa fa-arrow-left"></i> <a href="{{ path('wiki_index') }}">Wikis</a>
<hr />
Expand Down
6 changes: 0 additions & 6 deletions Resources/views/wiki_page/view.html.twig
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{% extends '@Wiki/base.wiki.html.twig' %}

{% block body %}

<style>
.wiki-content img {
width: 100%;
}
</style>

{% if not wikiPage %}
<center>
Expand Down

0 comments on commit de79f98

Please sign in to comment.