This commit is contained in:
		
							parent
							
								
									9cb2a1292a
								
							
						
					
					
						commit
						245f10ba5b
					
				
					 2 changed files with 14 additions and 5 deletions
				
			
		| 
						 | 
					@ -53,7 +53,7 @@
 | 
				
			||||||
    flex-flow: column nowrap;
 | 
					    flex-flow: column nowrap;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  .bot-mark {
 | 
					  .acct-mark {
 | 
				
			||||||
    font-size: 1.2em;
 | 
					    font-size: 1.2em;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -33,6 +33,7 @@ import {
 | 
				
			||||||
  Edit,
 | 
					  Edit,
 | 
				
			||||||
  ExpandMore,
 | 
					  ExpandMore,
 | 
				
			||||||
  Group,
 | 
					  Group,
 | 
				
			||||||
 | 
					  Lock,
 | 
				
			||||||
  MoreVert,
 | 
					  MoreVert,
 | 
				
			||||||
  OpenInBrowser,
 | 
					  OpenInBrowser,
 | 
				
			||||||
  PersonOff,
 | 
					  PersonOff,
 | 
				
			||||||
| 
						 | 
					@ -41,7 +42,6 @@ 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,13 +372,19 @@ const Profile: Component = () => {
 | 
				
			||||||
      <Menu {...subscribeMenuState}>
 | 
					      <Menu {...subscribeMenuState}>
 | 
				
			||||||
        <MenuItem
 | 
					        <MenuItem
 | 
				
			||||||
          onClick={toggleSubscribeHome}
 | 
					          onClick={toggleSubscribeHome}
 | 
				
			||||||
          aria-details="Subscribe or Unsubscribe this account on your home timeline"
 | 
					          aria-label={`${relationship()?.following ? "Unfollow" : "Follow"} 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={relationship()?.following ? "Subscribed" : undefined}
 | 
					            secondary={
 | 
				
			||||||
 | 
					              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>
 | 
				
			||||||
| 
						 | 
					@ -408,7 +414,10 @@ 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="bot-mark" aria-label="Bot" />
 | 
					                <SmartToySharp class="acct-mark" aria-label="Bot" />
 | 
				
			||||||
 | 
					              </Show>
 | 
				
			||||||
 | 
					              <Show when={profile()?.locked}>
 | 
				
			||||||
 | 
					                <Lock class="acct-mark" aria-label="Locked" />
 | 
				
			||||||
              </Show>
 | 
					              </Show>
 | 
				
			||||||
              <Body2
 | 
					              <Body2
 | 
				
			||||||
                component="span"
 | 
					                component="span"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue