monospace font for edit countdowns
This commit is contained in:
		
							parent
							
								
									1ce88a216a
								
							
						
					
					
						commit
						5af61f415f
					
				@ -73,7 +73,7 @@ export function BountyForm ({
 | 
			
		||||
        hint={
 | 
			
		||||
          editThreshold
 | 
			
		||||
            ? (
 | 
			
		||||
              <div className='text-muted fw-bold'>
 | 
			
		||||
              <div className='text-muted fw-bold font-monospace'>
 | 
			
		||||
                <Countdown date={editThreshold} />
 | 
			
		||||
              </div>
 | 
			
		||||
              )
 | 
			
		||||
 | 
			
		||||
@ -76,7 +76,7 @@ export function DiscussionForm ({
 | 
			
		||||
        name='text'
 | 
			
		||||
        minRows={6}
 | 
			
		||||
        hint={editThreshold
 | 
			
		||||
          ? <div className='text-muted fw-bold'><Countdown date={editThreshold} /></div>
 | 
			
		||||
          ? <div className='text-muted fw-bold font-monospace'><Countdown date={editThreshold} /></div>
 | 
			
		||||
          : null}
 | 
			
		||||
      />
 | 
			
		||||
      <AdvPostForm storageKeyPrefix={storageKeyPrefix} item={item} sub={sub} />
 | 
			
		||||
 | 
			
		||||
@ -347,7 +347,7 @@ function EditInfo ({ item, edit, canEdit, setCanEdit, toggleEdit, editText, edit
 | 
			
		||||
      <>
 | 
			
		||||
        <span> \ </span>
 | 
			
		||||
        <span
 | 
			
		||||
          className='text-reset pointer fw-bold'
 | 
			
		||||
          className='text-reset pointer fw-bold font-monospace'
 | 
			
		||||
          onClick={() => toggleEdit ? toggleEdit() : router.push(`/items/${item.id}/edit`)}
 | 
			
		||||
        >
 | 
			
		||||
          <span>{editText || 'edit'} </span>
 | 
			
		||||
@ -368,7 +368,7 @@ function EditInfo ({ item, edit, canEdit, setCanEdit, toggleEdit, editText, edit
 | 
			
		||||
      <>
 | 
			
		||||
        <span> \ </span>
 | 
			
		||||
        <span
 | 
			
		||||
          className='text-reset pointer fw-bold'
 | 
			
		||||
          className='text-reset pointer fw-bold font-monospace'
 | 
			
		||||
          onClick={() => toggleEdit ? toggleEdit() : router.push(`/items/${item.id}`)}
 | 
			
		||||
        >
 | 
			
		||||
          <span>cancel </span>
 | 
			
		||||
 | 
			
		||||
@ -136,7 +136,7 @@ export function LinkForm ({ item, sub, editThreshold, children }) {
 | 
			
		||||
        autoComplete='off'
 | 
			
		||||
        overrideValue={data?.pageTitleAndUnshorted?.unshorted}
 | 
			
		||||
        hint={editThreshold
 | 
			
		||||
          ? <div className='text-muted fw-bold'><Countdown date={editThreshold} /></div>
 | 
			
		||||
          ? <div className='text-muted fw-bold font-monospace'><Countdown date={editThreshold} /></div>
 | 
			
		||||
          : null}
 | 
			
		||||
        onChange={async (formik, e) => {
 | 
			
		||||
          const hasTitle = !!(formik?.values.title.trim().length > 0)
 | 
			
		||||
 | 
			
		||||
@ -58,7 +58,7 @@ export function PollForm ({ item, sub, editThreshold, children }) {
 | 
			
		||||
        max={MAX_POLL_NUM_CHOICES}
 | 
			
		||||
        min={2}
 | 
			
		||||
        hint={editThreshold
 | 
			
		||||
          ? <div className='text-muted fw-bold'><Countdown date={editThreshold} /></div>
 | 
			
		||||
          ? <div className='text-muted fw-bold font-monospace'><Countdown date={editThreshold} /></div>
 | 
			
		||||
          : null}
 | 
			
		||||
        maxLength={MAX_POLL_CHOICE_LENGTH}
 | 
			
		||||
      />
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user