MCPcopy Create free account
hub / github.com/OpenAnonymity/oa-chat / updateFontModeControls

Method updateFontModeControls

chat/components/ChatInput.js:1720–1730  ·  view source on GitHub ↗

* Updates the visual state of font mode toggle based on current HTML class. * Syncs aria-checked attributes with actual font-mode state.

()

Source from the content-addressed store, hash-verified

1718 hint.classList.remove('faded', 'hint-hidden');
1719 input.classList.add('hint-visible');
1720 } else if (len < 50) {
1721 // Some text - fade hint
1722 hint.classList.add('faded');
1723 hint.classList.remove('hint-hidden');
1724 input.classList.add('hint-visible');
1725 } else {
1726 // Long text - hide hint completely
1727 hint.classList.add('hint-hidden');
1728 hint.classList.remove('faded');
1729 input.classList.remove('hint-visible');
1730 }
1731 }
1732
1733 /**

Callers 1

setupFontModeControlsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected