Merge pull request #505 from MauriceNino/feature/dashdot-visual-changes
This commit is contained in:
@@ -1,2 +1,2 @@
|
|||||||
export const REPO_URL = 'ajnart/homarr';
|
export const REPO_URL = 'ajnart/homarr';
|
||||||
export const CURRENT_VERSION = 'v0.10.4';
|
export const CURRENT_VERSION = 'v0.10.5';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "homarr",
|
"name": "homarr",
|
||||||
"version": "0.10.4",
|
"version": "0.10.5",
|
||||||
"description": "Homarr - A homepage for your server.",
|
"description": "Homarr - A homepage for your server.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export const DashdotModule = asModule({
|
|||||||
id: 'dashdot',
|
id: 'dashdot',
|
||||||
});
|
});
|
||||||
|
|
||||||
const useStyles = createStyles((theme, _params) => ({
|
const useStyles = createStyles((theme, _params, getRef) => ({
|
||||||
heading: {
|
heading: {
|
||||||
marginTop: 0,
|
marginTop: 0,
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
@@ -73,6 +73,19 @@ const useStyles = createStyles((theme, _params) => ({
|
|||||||
border: 'none',
|
border: 'none',
|
||||||
colorScheme: 'none',
|
colorScheme: 'none',
|
||||||
},
|
},
|
||||||
|
graphTitle: {
|
||||||
|
ref: getRef('graphTitle'),
|
||||||
|
position: 'absolute',
|
||||||
|
right: 0,
|
||||||
|
opacity: 0,
|
||||||
|
transition: 'opacity .1s ease-in-out',
|
||||||
|
pointerEvents: 'none',
|
||||||
|
},
|
||||||
|
graphStack: {
|
||||||
|
[`&:hover .${getRef('graphTitle')}`]: {
|
||||||
|
opacity: 0.5,
|
||||||
|
},
|
||||||
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const bpsPrettyPrint = (bits?: number) =>
|
const bpsPrettyPrint = (bits?: number) =>
|
||||||
@@ -223,6 +236,7 @@ export function DashdotComponent() {
|
|||||||
|
|
||||||
{graphs.map((graph) => (
|
{graphs.map((graph) => (
|
||||||
<Stack
|
<Stack
|
||||||
|
className={classes.graphStack}
|
||||||
style={
|
style={
|
||||||
isCompact
|
isCompact
|
||||||
? {
|
? {
|
||||||
@@ -232,7 +246,7 @@ export function DashdotComponent() {
|
|||||||
: undefined
|
: undefined
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Title style={{ position: 'absolute', right: 0 }} order={4} mt={10} mr={25}>
|
<Title className={classes.graphTitle} order={4} mt={10} mr={25}>
|
||||||
{graph.name}
|
{graph.name}
|
||||||
</Title>
|
</Title>
|
||||||
<iframe
|
<iframe
|
||||||
@@ -250,6 +264,7 @@ export function DashdotComponent() {
|
|||||||
.join('&')}`
|
.join('&')}`
|
||||||
: ''
|
: ''
|
||||||
}`}
|
}`}
|
||||||
|
allowTransparency
|
||||||
/>
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
))}
|
))}
|
||||||
|
|||||||
Reference in New Issue
Block a user