There are two buggy behaviors that relate to the codex thanks button on diffs.
On MobileDiff (provided by MobileFrontend) the thank button is displayed on page load even if the editor was already thanked for the edit:
**Steps to replicate the issue** (include links if applicable):
* load a diff
* thank the user
* reload, or navigate away, then come back
**What happens?**:
the enabled thank button appears and clicking it causes the "You thanked x" message to appear
**What should have happened instead?**:
the disabled "thanked" button should appear instead since the editor has already been thanked for the edit
**Software version** (skip for WMF-hosted wikis like Wikipedia):
N/A
**Other information** (browser name/version, screenshots, etc.):
animated gif of me navigating between two edits in my local environment and repeatedly thanking
{F41578054}
On core diff in the mobile view (eg. `$wgMFUseDesktopDiffPage = true`) the thank button flashes on screen before being replaced with the "thanked" text. The "thank" and "thanked" elements have different heights, which causes reflow on page load, which is pretty distracting. The non-codex version of core diff (eg. the current desktop experience) also swaps state from "thank" to "thanked", but because there is no reflow.
**Steps to replicate the issue** (include links if applicable):
* load a core diff using the mobile domain (eg. `$wgMFUseDesktopDiffPage = true`)
**What happens?**:
flashing and reflow
**What should have happened instead?**:
the thanked state should not impact page layout
**Software version** (skip for WMF-hosted wikis like Wikipedia):
N/A
**Other information** (browser name/version, screenshots, etc.):
animated gif of me repeated loading a diff to demonstrate reflow
{F41578222}