Compare commits
No commits in common. "245f10ba5b4e56cab4dafccae3c9fc67ae72e727" and "1526e4b2fe27bb27a6778d4d13b00b4f7ad18f66" have entirely different histories.
245f10ba5b
...
1526e4b2fe
5 changed files with 15 additions and 30 deletions
|
@ -43,7 +43,7 @@ export function Typography<T extends AnyElement>(
|
||||||
<Dynamic
|
<Dynamic
|
||||||
ref={managed.ref}
|
ref={managed.ref}
|
||||||
component={managed.component ?? "span"}
|
component={managed.component ?? "span"}
|
||||||
class={`${managed.class || ""} ${managed.typography}`}
|
class={`${managed.class} ${managed.typography}`}
|
||||||
{...passthough}
|
{...passthough}
|
||||||
></Dynamic>
|
></Dynamic>
|
||||||
);
|
);
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
flex-flow: column nowrap;
|
flex-flow: column nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.acct-mark {
|
.bot-mark {
|
||||||
font-size: 1.2em;
|
font-size: 1.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,6 @@ import {
|
||||||
Edit,
|
Edit,
|
||||||
ExpandMore,
|
ExpandMore,
|
||||||
Group,
|
Group,
|
||||||
Lock,
|
|
||||||
MoreVert,
|
MoreVert,
|
||||||
OpenInBrowser,
|
OpenInBrowser,
|
||||||
PersonOff,
|
PersonOff,
|
||||||
|
@ -42,6 +41,7 @@ import {
|
||||||
Share,
|
Share,
|
||||||
SmartToySharp,
|
SmartToySharp,
|
||||||
Subject,
|
Subject,
|
||||||
|
Translate,
|
||||||
Verified,
|
Verified,
|
||||||
} from "@suid/icons-material";
|
} from "@suid/icons-material";
|
||||||
import { Body2, Title } from "../material/typography";
|
import { Body2, Title } from "../material/typography";
|
||||||
|
@ -372,19 +372,13 @@ const Profile: Component = () => {
|
||||||
<Menu {...subscribeMenuState}>
|
<Menu {...subscribeMenuState}>
|
||||||
<MenuItem
|
<MenuItem
|
||||||
onClick={toggleSubscribeHome}
|
onClick={toggleSubscribeHome}
|
||||||
aria-label={`${relationship()?.following ? "Unfollow" : "Follow"} on your home timeline`}
|
aria-details="Subscribe or Unsubscribe this account on your home timeline"
|
||||||
>
|
>
|
||||||
<ListItemAvatar>
|
<ListItemAvatar>
|
||||||
<Avatar src={session().account?.inf?.avatar}></Avatar>
|
<Avatar src={session().account?.inf?.avatar}></Avatar>
|
||||||
</ListItemAvatar>
|
</ListItemAvatar>
|
||||||
<ListItemText
|
<ListItemText
|
||||||
secondary={
|
secondary={relationship()?.following ? "Subscribed" : undefined}
|
||||||
relationship()?.following
|
|
||||||
? undefined
|
|
||||||
: profile()?.locked
|
|
||||||
? "A request will be sent"
|
|
||||||
: undefined
|
|
||||||
}
|
|
||||||
>
|
>
|
||||||
<span ref={useSessionDisplayName}></span>
|
<span ref={useSessionDisplayName}></span>
|
||||||
<span>'s Home</span>
|
<span>'s Home</span>
|
||||||
|
@ -414,10 +408,7 @@ const Profile: Component = () => {
|
||||||
<div class="name-grp">
|
<div class="name-grp">
|
||||||
<div class="display-name">
|
<div class="display-name">
|
||||||
<Show when={profile()?.bot}>
|
<Show when={profile()?.bot}>
|
||||||
<SmartToySharp class="acct-mark" aria-label="Bot" />
|
<SmartToySharp class="bot-mark" aria-label="Bot" />
|
||||||
</Show>
|
|
||||||
<Show when={profile()?.locked}>
|
|
||||||
<Lock class="acct-mark" aria-label="Locked" />
|
|
||||||
</Show>
|
</Show>
|
||||||
<Body2
|
<Body2
|
||||||
component="span"
|
component="span"
|
||||||
|
|
|
@ -21,7 +21,6 @@ import {
|
||||||
Bookmark,
|
Bookmark,
|
||||||
Share,
|
Share,
|
||||||
SmartToySharp,
|
SmartToySharp,
|
||||||
Lock,
|
|
||||||
} from "@suid/icons-material";
|
} from "@suid/icons-material";
|
||||||
import { useTimeSource } from "../platform/timesrc.js";
|
import { useTimeSource } from "../platform/timesrc.js";
|
||||||
import { resolveCustomEmoji } from "../masto/toot.js";
|
import { resolveCustomEmoji } from "../masto/toot.js";
|
||||||
|
@ -155,10 +154,7 @@ function TootAuthorGroup(
|
||||||
<div class={tootStyle.tootAuthorNameGrp}>
|
<div class={tootStyle.tootAuthorNameGrp}>
|
||||||
<div class={tootStyle.tootAuthorNamePrimary}>
|
<div class={tootStyle.tootAuthorNamePrimary}>
|
||||||
<Show when={toot().account.bot}>
|
<Show when={toot().account.bot}>
|
||||||
<SmartToySharp class="acct-mark" aria-label="Bot" />
|
<SmartToySharp class="bot-mark" aria-label="Bot" />
|
||||||
</Show>
|
|
||||||
<Show when={toot().account.locked}>
|
|
||||||
<Lock class="acct-mark" aria-label="Locked" />
|
|
||||||
</Show>
|
</Show>
|
||||||
<Body2
|
<Body2
|
||||||
component="span"
|
component="span"
|
||||||
|
@ -373,6 +369,7 @@ const RegularToot: Component<TootCardProps> = (props) => {
|
||||||
<Show when={!!status().reblog}>
|
<Show when={!!status().reblog}>
|
||||||
<div class={tootStyle.tootRetootGrp}>
|
<div class={tootStyle.tootRetootGrp}>
|
||||||
<BoostIcon />
|
<BoostIcon />
|
||||||
|
<span>
|
||||||
<Body2
|
<Body2
|
||||||
ref={(e: { innerHTML: string }) => {
|
ref={(e: { innerHTML: string }) => {
|
||||||
createRenderEffect(() => {
|
createRenderEffect(() => {
|
||||||
|
@ -382,8 +379,9 @@ const RegularToot: Component<TootCardProps> = (props) => {
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
></Body2>
|
></Body2>{" "}
|
||||||
<span>boosts</span>
|
boosted
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</Show>
|
</Show>
|
||||||
<TootAuthorGroup
|
<TootAuthorGroup
|
||||||
|
|
|
@ -72,9 +72,8 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
|
|
||||||
> :global(.acct-mark) {
|
> :global(.bot-mark) {
|
||||||
font-size: 1.2em;
|
font-size: 1.2em;
|
||||||
color: var(--tutu-color-secondary-text-on-surface);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -222,14 +221,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.tootRetootGrp {
|
.tootRetootGrp {
|
||||||
display: flex;
|
display: grid;
|
||||||
gap: 0.25em;
|
grid-template-columns: auto 1fr auto;
|
||||||
|
gap: 8px;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
> :first-child {
|
|
||||||
margin-right: 0.25em;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tootAttachmentGrp {
|
.tootAttachmentGrp {
|
||||||
|
|
Loading…
Reference in a new issue