Browse Source

优化图片显示

pull/6/head
hole-thu 5 years ago
parent
commit
601a444da2
  1. 15
      src/Common.css
  2. 2
      src/Common.js
  3. 11
      src/Flows.css

15
src/Common.css

@ -58,3 +58,18 @@
padding: 0 .1rem;
margin-left: .15rem;
}
.img-link {
display: inline-block;
}
.img-link img {
max-width: 100%;
max-height: 2000px;
}
.left-container .img-link img {
max-height: 500px;
}

2
src/Common.js

@ -136,7 +136,7 @@ export class HighlightedMarkdown extends Component {
href={normalize_url(node.attribs.src)}
target="_blank"
rel="noopenner noreferrer"
className="ext-link"
className="ext-link img-link"
key={index}
>
<img

11
src/Flows.css

@ -193,17 +193,6 @@
overflow-x: auto;
}
.box-content img {
max-width: 100%;
max-height: 2000px;
display: block;
margin: 0 auto;
}
.left-container .box-content img {
max-height: 500px;
}
.left-container .box-content {
max-height: calc(100vh + 15em);
overflow-y: hidden;

Loading…
Cancel
Save