AlibudaLab / atomic-habit-builder

Alibuda Dev being healthy
https://alibuda.meme
6 stars 0 forks source link

Fix checkin bugs #220

Closed Ankarrr closed 1 month ago

Ankarrr commented 1 month ago

fix #198

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
habit-builder ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 2, 2024 0:22am
habit-builder-mainnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 2, 2024 0:22am
Ankarrr commented 1 month ago

SelfCheckin button 的長度也改一下,不然現在切換的時候兩個 button 形狀會跳來跳去!

你是說這個 button 嗎?你希望怎麼改?

      {challenge.status === UserChallengeStatus.Ongoing && canCheckInNow && (
        <>
          {renderCheckInOptions()}
          {challenge.allowSelfCheckIn && (
            <button
              type="button"
              className="mt-2 font-nunito text-xs text-gray-500 underline"
              onClick={() => setCheckInMethod(checkInMethod === 'strava' ? 'self' : 'strava')}
            >
              {checkInMethod === 'strava'
                ? 'Use manual check-in instead'
                : 'Use Strava check-in instead'}
            </button>
          )}
        </>
      )}
Ankarrr commented 1 month ago

更新 self checkin button width

截圖 2024-10-02 下午8 18 20