Skip to content

Commit

Permalink
fix(client): misc styles (#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
hmerritt authored Dec 11, 2023
1 parent e52cfc9 commit 725fbb4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions client/src/javascript/components/general/LinkedText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ function isValidHttpUrl(s: string) {
}

const LinkedText: FC<LinkedTextProps> = ({text, className}: LinkedTextProps) => {
const nodes = text.split(/([ \n])/).map((s) => {
const nodes = text.split(/([ \n])/).map((s, index) => {
if (s === '\n') {
return <br />;
return <br key={index} />;
}
if (isValidHttpUrl(s)) {
return (
<a href={s.trimEnd()} target="_blank" rel="noopener noreferrer">
<a href={s.trimEnd()} target="_blank" rel="noopener noreferrer" key={index}>
{s}
</a>
);
Expand Down
5 changes: 5 additions & 0 deletions client/src/sass/components/_torrent.scss
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,11 @@ $more-info--border: floating-action.$textbox-repeater--button--border;
width: 70px;
}

&--directory {
width: auto;
max-width: 300px;
}

&--tags {
&:last-child {
margin-left: auto;
Expand Down
5 changes: 3 additions & 2 deletions client/src/sass/components/_torrents.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@
text-align: center;

&__wrapper {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: math.div(variables.$spacing-unit * 1, 3);
// bottom: 0;
display: flex;
flex-direction: column;
// left: $torrent-list--offset;
// position: absolute;
// right: 0;
Expand Down

0 comments on commit 725fbb4

Please sign in to comment.