Skip to content

Commit dfc11d6

Browse files
committed
un-embed and call it a menu
1 parent e3bdaa4 commit dfc11d6

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

src/components/Hyperchat.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@
817817
</button>
818818
{:else}
819819
<button use:exioButton on:click={toggleTopBar} class="inline-flex gap-1 items-center">
820-
{topBarVisible ? 'Less' : 'More'}
820+
Menu
821821
<div use:exioIcon class="inline-block" style="color: inherit;">
822822
unfold_{topBarVisible ? 'less' : 'more'}_double
823823
</div>

src/components/YtcFilterButtons.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@
100100
<span class="static-logo-text">YtcFilter</span>
101101
</div>
102102
<button use:exioButton class="activator ytcf-launch-button">
103-
<span>Embed</span>
104-
<div use:exioIcon class="shifted-icon top-bar-icon">
103+
<span class="activator-text">Embed</span>
104+
<div use:exioIcon class="shifted-icon top-bar-icon activator-icon">
105105
expand
106106
</div>
107107
</button>

src/scripts/chat-injector.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ const chatLoaded = async (): Promise<void> => {
134134
return;
135135
}
136136
const activatorButton = document.querySelector('.ytcf-launch-button') as HTMLButtonElement;
137+
const activatorText = activatorButton.querySelector('.activator-text') as HTMLSpanElement;
138+
const activatorIcon = activatorButton.querySelector('.activator-icon') as HTMLSpanElement;
137139
const popoutButton = document.querySelector('.ytcf-popout-button') as HTMLButtonElement;
138140
const settingsButton = document.querySelector('.ytcf-settings-button') as HTMLButtonElement;
139141
// eslint-disable-next-line @typescript-eslint/no-misused-promises
@@ -142,6 +144,8 @@ const chatLoaded = async (): Promise<void> => {
142144
const frame = ytcfilterElement.querySelector('iframe');
143145
const resizeBar = document.querySelector('.ytcf-resize-bar') as HTMLDivElement;
144146
if (forceClose || ytcfilterElement.style.display === 'block') {
147+
activatorText.textContent = 'Embed';
148+
activatorIcon.textContent = 'expand';
145149
ytcfilterElement.style.display = 'none';
146150
resizeBar.style.display = 'none';
147151
ytcfilterElement.style.display = 'none';
@@ -150,6 +154,8 @@ const chatLoaded = async (): Promise<void> => {
150154
}
151155
return;
152156
}
157+
activatorText.textContent = 'Un-Embed';
158+
activatorIcon.textContent = 'cancel_presentation';
153159
ytcfilterElement.style.display = 'block';
154160
resizeBar.style.display = 'flex';
155161
if (frame && frame.src !== source) {

0 commit comments

Comments
 (0)