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