forked from Shinonome/dots-hyprland
update sidebar
This commit is contained in:
@@ -97,7 +97,7 @@ export const TabContainer = ({ icons, names, children, className = '', setup = (
|
|||||||
export const IconTabContainer = ({
|
export const IconTabContainer = ({
|
||||||
iconWidgets, names, children, className = '',
|
iconWidgets, names, children, className = '',
|
||||||
setup = () => { }, onChange = () => { },
|
setup = () => { }, onChange = () => { },
|
||||||
tabsHpack = 'center',
|
tabsHpack = 'center', tabSwitcherClassName = '',
|
||||||
...rest
|
...rest
|
||||||
}) => {
|
}) => {
|
||||||
const shownIndex = Variable(0);
|
const shownIndex = Variable(0);
|
||||||
@@ -106,7 +106,7 @@ export const IconTabContainer = ({
|
|||||||
const tabs = Box({
|
const tabs = Box({
|
||||||
homogeneous: true,
|
homogeneous: true,
|
||||||
hpack: tabsHpack,
|
hpack: tabsHpack,
|
||||||
className: 'spacing-h-5',
|
className: `spacing-h-5 ${tabSwitcherClassName}`,
|
||||||
children: iconWidgets.map((icon, i) => Button({
|
children: iconWidgets.map((icon, i) => Button({
|
||||||
className: 'tab-icon',
|
className: 'tab-icon',
|
||||||
tooltipText: names[i],
|
tooltipText: names[i],
|
||||||
|
|||||||
@@ -180,6 +180,7 @@ const apiCommandStack = Stack({
|
|||||||
})
|
})
|
||||||
|
|
||||||
export const apiContentStack = IconTabContainer({
|
export const apiContentStack = IconTabContainer({
|
||||||
|
tabSwitcherClassName: 'sidebar-chat-apiswitcher',
|
||||||
className: 'margin-top-5',
|
className: 'margin-top-5',
|
||||||
iconWidgets: APIS.map((api) => api.tabIcon),
|
iconWidgets: APIS.map((api) => api.tabIcon),
|
||||||
names: APIS.map((api) => api.name),
|
names: APIS.map((api) => api.name),
|
||||||
|
|||||||
@@ -492,6 +492,12 @@ $colorpicker_rounding: 0.341rem;
|
|||||||
padding: 0.341rem;
|
padding: 0.341rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sidebar-chat-apiswitcher {
|
||||||
|
@include full-rounding;
|
||||||
|
@include group-padding;
|
||||||
|
background-color: $layer1;
|
||||||
|
}
|
||||||
|
|
||||||
.sidebar-chat-providerswitcher {
|
.sidebar-chat-providerswitcher {
|
||||||
@include small-rounding;
|
@include small-rounding;
|
||||||
padding: 0.477rem 0.682rem;
|
padding: 0.477rem 0.682rem;
|
||||||
@@ -780,7 +786,7 @@ $colorpicker_rounding: 0.341rem;
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-waifu-txt {
|
.sidebar-waifu-txt {
|
||||||
@include readingfont;
|
@include mainfont;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-waifu-image {
|
.sidebar-waifu-image {
|
||||||
|
|||||||
Reference in New Issue
Block a user