mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-15 04:32:13 +00:00
fix: header overflow text
This commit is contained in:
parent
3293320926
commit
0bedb7c9b7
3 changed files with 7 additions and 2 deletions
|
@ -104,6 +104,7 @@ export const section = style({
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
gap: `${SPACING_UNIT * 2}px`,
|
gap: `${SPACING_UNIT * 2}px`,
|
||||||
height: "100%",
|
height: "100%",
|
||||||
|
overflow: "hidden",
|
||||||
});
|
});
|
||||||
|
|
||||||
export const backButton = recipe({
|
export const backButton = recipe({
|
||||||
|
@ -136,11 +137,15 @@ export const backButton = recipe({
|
||||||
export const title = recipe({
|
export const title = recipe({
|
||||||
base: {
|
base: {
|
||||||
transition: "all ease 0.2s",
|
transition: "all ease 0.2s",
|
||||||
|
overflow: "hidden",
|
||||||
|
textOverflow: "ellipsis",
|
||||||
|
width: "100%",
|
||||||
},
|
},
|
||||||
variants: {
|
variants: {
|
||||||
hasBackButton: {
|
hasBackButton: {
|
||||||
true: {
|
true: {
|
||||||
transform: "translateX(28px)",
|
transform: "translateX(28px)",
|
||||||
|
width: "calc(100% - 28px)",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -72,7 +72,7 @@ export function Header({ onSearch, onClear, search }: HeaderProps) {
|
||||||
isWindows: window.electron.platform === "win32",
|
isWindows: window.electron.platform === "win32",
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<section className={styles.section}>
|
<section className={styles.section} style={{ flex: 1 }}>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className={styles.backButton({
|
className={styles.backButton({
|
||||||
|
|
|
@ -42,7 +42,7 @@ export function SidebarProfile() {
|
||||||
}, [profileBackground]);
|
}, [profileBackground]);
|
||||||
|
|
||||||
const showPendingRequests =
|
const showPendingRequests =
|
||||||
userDetails && receivedRequests.length > -1 && !gameRunning;
|
userDetails && receivedRequests.length > 0 && !gameRunning;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
|
Loading…
Reference in a new issue