Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 3efa77a

Browse files
Center align Cody logo in Cody Web Sidebar (#64324)
Fixes Cody Logo alignment to center for both React & Svelte Cody Sidebar header. ## Test plan Before: ![CleanShot 2024-08-07 at 13 30 04@2x](https://github.com/user-attachments/assets/c1b8471d-3f25-4b75-bf54-888876578d63) After: ![CleanShot 2024-08-07 at 13 30 19@2x](https://github.com/user-attachments/assets/483e1abd-ea6e-498b-8d98-6295a23f5cca) ## Changelog <!-- OPTIONAL; info at https://www.notion.so/sourcegraph/Writing-a-changelog-entry-dd997f411d524caabf0d8d38a24a878c -->
1 parent 780b5db commit 3efa77a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

client/web-sveltekit/src/lib/cody/CodySidebar.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script context="module" lang="ts">
2-
import { uniqueID } from '$lib/dom'
2+
import { uniqueID } from "$lib/dom";
33
4-
export const CODY_SIDEBAR_ID = uniqueID('cody-sidebar')
4+
export const CODY_SIDEBAR_ID = uniqueID("cody-sidebar");
55
</script>
66

77
<script lang="ts">
@@ -26,6 +26,7 @@
2626

2727
<aside id={CODY_SIDEBAR_ID} aria-labelledby={headingID}>
2828
<div class="header">
29+
<div />
2930
<h3 id={headingID}>
3031
<Icon icon={ISgCody} /> Cody
3132
<Badge variant="info">Beta</Badge>

client/web/src/cody/sidebar/new-cody-sidebar/NewCodySidebar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export const NewCodySidebar: FC<NewCodySidebarProps> = props => {
2828
return (
2929
<div className={styles.root}>
3030
<div className={styles.header}>
31+
<div />
3132
<span className={styles.headerLogo}>
3233
<CodyLogo />
3334
Cody

0 commit comments

Comments
 (0)