Skip to content

Commit

Permalink
margins
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalmi committed Jul 26, 2023
1 parent 5a5566c commit 8160826
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/js/Helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export default {
replacedText = reactStringReplace(replacedText, videoRegex, (match, i) => {
return (
<video
className="rounded max-h-[70vh] md:max-h-96 max-w-full"
className="py-2 rounded max-h-[70vh] md:max-h-96 max-w-full"
key={match + i}
src={match}
poster={`https://imgproxy.iris.to/thumbnail/428/${match}`}
Expand Down Expand Up @@ -509,7 +509,7 @@ export default {
replacedText = reactStringReplace(replacedText, imgRegex, (match, i) => {
return (
<SafeImg
className="md:rounded max-h-[70vh] md:max-h-96 max-w-full cursor-pointer"
className="py-2 md:rounded max-h-[70vh] md:max-h-96 max-w-full cursor-pointer"
onClick={opts.onImageClick}
src={match}
key={match + i}
Expand Down Expand Up @@ -665,6 +665,8 @@ export default {
);
});

s = s.map((x) => (typeof x === 'string' ? x.trim() : x));

return s;
},

Expand Down
1 change: 1 addition & 0 deletions src/js/components/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Show from './helpers/Show';

type Props = {
children: JSX.Element | JSX.Element[];
small?: boolean;
};

const Dropdown = ({ children, small }: Props) => {
Expand Down
2 changes: 1 addition & 1 deletion src/js/components/events/ReactionsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const ReactionsList = ({ event }) => {

return (
<>
<hr className="-mx-2 opacity-10 mt-4" />
<hr className="-mx-2 opacity-10 mt-2" />
{modalReactions.length > 0 && (
<Modal showContainer={true} onClose={() => setModalReactions([])}>
<div className="flex items-center justify-between mb-4">
Expand Down
2 changes: 1 addition & 1 deletion src/js/components/events/note/Note.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const Note = ({
}
if (isQuote) classNames.push('quote pb-2');
if (isQuoting) classNames.push('quoting pt-0');
if (asInlineQuote) classNames.push('inline-quote border-2 border-neutral-900 rounded-lg');
if (asInlineQuote) classNames.push('inline-quote border-2 border-neutral-900 rounded-lg my-2');
if (fullWidth) classNames.push('full-width');

return classNames.join(' ');
Expand Down

0 comments on commit 8160826

Please sign in to comment.