WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 4f6c5f0

Browse files
committed
refactor: add id to readme markdown container and style images for responsiveness
1 parent a3f14af commit 4f6c5f0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/app/repo-details/repo-details.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h2 class="mt-0 mb-0">{{ data.repo.name }}</h2>
1717
</div>
1818

1919
<div class="row">
20-
<div class="col-12 col-md-8">
20+
<div id="readme-markdown" class="col-12 col-md-8">
2121
<markdown>
2222
{{ data.readme | emojiFixup }}
2323
</markdown>

src/app/repo-details/repo-details.component.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@
88
border: solid 2px #888;
99
padding: 25px;
1010
}
11+
12+
#readme-markdown img {
13+
max-width: 100%;
14+
}

0 commit comments

Comments
 (0)