ReplyEditor: only show toolbar when active
This commit is contained in:
		
							parent
							
								
									5c2ebada28
								
							
						
					
					
						commit
						2c0978b572
					
				
					 2 changed files with 40 additions and 34 deletions
				
			
		| 
						 | 
					@ -229,17 +229,21 @@ const ReplyEditor: Component<{
 | 
				
			||||||
      onClick={(e) => inputRef.focus()}
 | 
					      onClick={(e) => inputRef.focus()}
 | 
				
			||||||
    >
 | 
					    >
 | 
				
			||||||
      <div class={tootComposers.replyInput}>
 | 
					      <div class={tootComposers.replyInput}>
 | 
				
			||||||
        <Avatar src={props.profile.inf?.avatar} sx={{marginLeft: '-0.25em'}} />
 | 
					        <Avatar
 | 
				
			||||||
 | 
					          src={props.profile.inf?.avatar}
 | 
				
			||||||
 | 
					          sx={{ marginLeft: "-0.25em" }}
 | 
				
			||||||
 | 
					        />
 | 
				
			||||||
        <textarea
 | 
					        <textarea
 | 
				
			||||||
          ref={inputRef!}
 | 
					          ref={inputRef!}
 | 
				
			||||||
          placeholder={`Reply to ${props.replyToDisplayName}...`}
 | 
					          placeholder={`Reply to ${props.replyToDisplayName}...`}
 | 
				
			||||||
          style={{ width: "100%", border: "none" }}
 | 
					          style={{ width: "100%", border: "none" }}
 | 
				
			||||||
        ></textarea>
 | 
					        ></textarea>
 | 
				
			||||||
        <IconButton sx={{marginRight: '-0.5em'}}>
 | 
					        <IconButton sx={{ marginRight: "-0.5em" }}>
 | 
				
			||||||
          <Send />
 | 
					          <Send />
 | 
				
			||||||
        </IconButton>
 | 
					        </IconButton>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      <Show when={typing()}>
 | 
				
			||||||
        <div
 | 
					        <div
 | 
				
			||||||
          style={{
 | 
					          style={{
 | 
				
			||||||
            display: "flex",
 | 
					            display: "flex",
 | 
				
			||||||
| 
						 | 
					@ -274,6 +278,7 @@ const ReplyEditor: Component<{
 | 
				
			||||||
          code={language()}
 | 
					          code={language()}
 | 
				
			||||||
          onCodeChange={setLanguage}
 | 
					          onCodeChange={setLanguage}
 | 
				
			||||||
        />
 | 
					        />
 | 
				
			||||||
 | 
					      </Show>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
  );
 | 
					  );
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -270,6 +270,7 @@ const TootBottomSheet: Component = (props) => {
 | 
				
			||||||
          )}
 | 
					          )}
 | 
				
			||||||
        </For>
 | 
					        </For>
 | 
				
			||||||
      </TimeSourceProvider>
 | 
					      </TimeSourceProvider>
 | 
				
			||||||
 | 
					      <div style={{height: "var(--safe-area-inset-bottom, 0)"}}></div>
 | 
				
			||||||
    </Scaffold>
 | 
					    </Scaffold>
 | 
				
			||||||
  );
 | 
					  );
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue