Skip to content

Commit

Permalink
Css tweaks and icon change for sidebar (#26450)
Browse files Browse the repository at this point in the history
* Css tweaks and icon change for sidebar

* Fix to the icon not showing

Need to replace these icons with the correct ones, but at least it's showing it now

* Add new icons for collapse/expand sidebar

* Css tweaks and icon change for sidebar

* Add new icons for collapse/expand sidebar

* Css tweaks and icon change for sidebar

* Fix to the icon not showing

Need to replace these icons with the correct ones, but at least it's showing it now

* Add new icons for collapse/expand sidebar

* Css tweaks and icon change for sidebar

* Add new icons for collapse/expand sidebar

* revert change to package.json

* indent suggestion
  • Loading branch information
aguscruiz authored Nov 13, 2024
1 parent 6468d73 commit 2d8094b
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
padding: 0;
margin: 0;
}
li {
margin-bottom: var(--leo-spacing-s);
}
}

.navItem {
Expand All @@ -24,14 +27,17 @@
padding: var(--leo-spacing-l) var(--leo-spacing-xl);
border-radius: 8px;
position: relative;
transition: all 0.2s ease-out allow-discrete;

&:hover {
background: var(--leo-color-container-background);
background: var(--leo-color-container-highlight);
box-shadow: var(--leo-effect-elevation-01);
}
}

.navItemActive {
background: var(--leo-color-container-background);
transition: all 0.2s ease-out allow-discrete;
}

.optionsMenu {
Expand All @@ -42,7 +48,7 @@

.optionsButton {
--leo-icon-size: 20px;
color: var(--leo-color-icon-interactive);
color: var(--leo-color-icon-default);
position: absolute;
top: 50%;
transform: translateY(-50%);
Expand Down
14 changes: 7 additions & 7 deletions components/ai_chat/resources/page/components/full_page/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ export default function FullScreen() {
<div className={styles.fullscreen}>
<div className={styles.left}>
<div className={styles.controls}>
<Button
fab
kind='plain-faint'
onClick={toggleAside}
>
<Icon name='window-tabs-vertical-expanded' />
</Button>
<Button
fab
kind='plain-faint'
onClick={toggleAside}
>
<Icon name={asideAnimationRef.current?.playbackRate === 1 ? 'sidenav-expand' : 'sidenav-collapse'} />
</Button>
{!isNavigationRendered && (
<>
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}

.content {
border-radius: var(--leo-radius-xl) 0 0 var(--leo-radius-xl);
border-radius: var(--leo-radius-xl) var(--leo-radius-m) var(--leo-radius-m) var(--leo-radius-xl);
flex: 1 1 0%;
overflow: hidden;
display: flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

.form {
border-radius: var(--leo-radius-m);
border: 1px solid var(--leo-color-divider-strong);
border: 1px solid var(--leo-color-divider-subtle);
width: 100%;
font: var(--leo-font-default-regular);
color: var(--leo-color-text-primary);
position: relative;
box-shadow: var(--leo-effect-elevation-01);
transition: all 0.2s ease-in-out;

&:has(textarea:disabled) {
border-color: var(--leo-color-divider-subtle);
Expand All @@ -21,6 +21,9 @@
}
}
}
.form:hover, .form:focus-visible{
box-shadow: var(--leo-effect-elevation-01);
}

.growWrap {
display: grid;
Expand Down
2 changes: 2 additions & 0 deletions ui/webui/resources/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ leo_icons = [
"shuffle-on.svg",
"shuffle-toggle-on.svg",
"sidepanel-open.svg",
"sidenav-collapse.svg",
"sidenav-expand.svg",
"smartphone-desktop-off.svg",
"smartphone-desktop.svg",
"smartphone-hand.svg",
Expand Down

0 comments on commit 2d8094b

Please sign in to comment.