fix(client): misc styles (#691)

This commit is contained in:
Harry Merritt
2023-12-11 20:59:45 +00:00
committed by GitHub
parent e52cfc9170
commit 725fbb4055
3 changed files with 12 additions and 6 deletions
@@ -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>
);
+5
View File
@@ -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;
+4 -3
View File
@@ -26,11 +26,12 @@
text-align: center;
&__wrapper {
justify-content: center;
align-items: center;
// bottom: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: math.div(variables.$spacing-unit * 1, 3);
// bottom: 0;
// left: $torrent-list--offset;
// position: absolute;
// right: 0;