Skip to content

Commit 1502c64

Browse files
committed
fix[frontend]: darkmodetoggle background
1 parent 415ec1e commit 1502c64

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

frontend/components/DarkModeToggle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function DarkModeToggle({ mode, onModeChange, className, ...rest }: MyCom
4040
<Tooltip content={`Toggle dark mode (currently ${mode})`}>
4141
<Button
4242
isIconOnly
43-
className={"mr-2 rounded-full bg-background" + " " + className}
43+
className={"mr-2 rounded-full bg-background hover:bg-gray-100" + " " + className}
4444
aria-label="Toggle dark mode"
4545
onPress={() => {
4646
const curModeIdx = icons.findIndex(({ name }) => name === mode)

frontend/components/UploadedPanel.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@ export function UploadedPanel({ pasteResponse, encryptionKey, ...rest }: Uploade
5151
<tr>
5252
<td className={firstColClassNames}>Decryption URL</td>
5353
<td className="w-full">
54-
<Snippet hideSymbol variant="bordered" classNames={snippetClassNames}>
55-
{pasteResponse && makeDecryptionUrl(pasteResponse.url, encryptionKey)}
56-
</Snippet>
54+
<Skeleton isLoaded={pasteResponse !== null} className="rounded-2xl grow">
55+
<Snippet hideSymbol variant="bordered" classNames={snippetClassNames}>
56+
{pasteResponse && makeDecryptionUrl(pasteResponse.url, encryptionKey)}
57+
</Snippet>
58+
</Skeleton>
5759
</td>
5860
</tr>
5961
) : null}

frontend/utils/encryption.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function base64VariantEncode(src: Uint8Array): string {
1414
for (let i = 0; i < uint8Array.length; i++) {
1515
binaryString += String.fromCharCode(uint8Array[i])
1616
}
17-
return btoa(binaryString).replaceAll("/", "_")
17+
return btoa(binaryString).replaceAll("/", "_").replaceAll("=", "")
1818
}
1919

2020
function base64VariantDecode(src: string): Uint8Array {

0 commit comments

Comments
 (0)