Skip to content

Commit 8cc7a86

Browse files
committed
feat: style
1 parent f3516f4 commit 8cc7a86

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/components/ui/markdown/Markdown.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ const MarkdownImage = (props: any) => {
261261
const { w } = useWrappedElementSize()
262262

263263
if (props.src.endsWith('.mp4')) {
264-
return <video src={props.src} controls playsInline />
264+
return <video src={props.src} controls playsInline autoPlay />
265265
}
266266

267267
return <FixedZoomedImage {...nextProps} containerWidth={w} />

src/components/ui/markdown/markdown.module.css

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
@apply relative;
33

44
:global {
5+
kbd {
6+
@apply kbd kbd-sm;
7+
}
58
& .spoiler {
69
position: relative;
710

src/components/ui/markdown/renderers/LinkRenderer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export const LinkRenderer = ({ href }: { href: string }) => {
6666
<>
6767
<iframe
6868
src={`https://gist.github.com/${owner}/${id}.pibb`}
69-
className="max-h-[300px] w-full overflow-auto border-0"
69+
className="max-h-[50vh] w-full overflow-auto border-0"
7070
/>
7171

7272
<a

0 commit comments

Comments
 (0)