Skip to content

Commit

Permalink
feat: style
Browse files Browse the repository at this point in the history
  • Loading branch information
Innei committed Jul 24, 2023
1 parent f3516f4 commit 8cc7a86
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/ui/markdown/Markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ const MarkdownImage = (props: any) => {
const { w } = useWrappedElementSize()

if (props.src.endsWith('.mp4')) {
return <video src={props.src} controls playsInline />
return <video src={props.src} controls playsInline autoPlay />
}

return <FixedZoomedImage {...nextProps} containerWidth={w} />
Expand Down
3 changes: 3 additions & 0 deletions src/components/ui/markdown/markdown.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
@apply relative;

:global {
kbd {
@apply kbd kbd-sm;
}
& .spoiler {
position: relative;

Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/markdown/renderers/LinkRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const LinkRenderer = ({ href }: { href: string }) => {
<>
<iframe
src={`https://gist.github.com/${owner}/${id}.pibb`}
className="max-h-[300px] w-full overflow-auto border-0"
className="max-h-[50vh] w-full overflow-auto border-0"
/>

<a
Expand Down

1 comment on commit 8cc7a86

@vercel
Copy link

@vercel vercel bot commented on 8cc7a86 Jul 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

shiro – ./

shiro-innei.vercel.app
shiro-git-main-innei.vercel.app
springtide.vercel.app
innei.in

Please sign in to comment.