Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/cpu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ export const CPUComponent: FC<{
);
}, []);
return (
<div style={!isTab ? {} : { marginLeft: "-10px", marginRight: "-10px" }}>
<div style={!isTab ? {} : { marginLeft: "-2.8vw", marginRight: "-2.8vw" }}>
{show && (
<PanelSection title="CPU">
{!isTab && (
Expand Down
2 changes: 1 addition & 1 deletion src/components/fan.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1500,7 +1500,7 @@ export const FANComponent: FC<{ isTab?: boolean }> = ({ isTab = false }) => {
}, []);
//<FANSelectProfileComponent/>
return (
<div style={!isTab ? {} : { marginLeft: "-10px", marginRight: "-10px" }}>
<div style={!isTab ? {} : { marginLeft: "-2.8vw", marginRight: "-2.8vw" }}>
{show && fanEnable.current && fanCount.current > 0 && (
<PanelSection title="FAN">
{!isTab && (
Expand Down
2 changes: 1 addition & 1 deletion src/components/gpu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ export const GPUComponent: FC<{ isTab?: boolean }> = ({ isTab = false }) => {
);
}, []);
return (
<div style={!isTab ? {} : { marginLeft: "-10px", marginRight: "-10px" }}>
<div style={!isTab ? {} : { marginLeft: "-2.8vw", marginRight: "-2.8vw" }}>
{show && (
<PanelSection title="GPU">
{!isTab && (
Expand Down
2 changes: 1 addition & 1 deletion src/components/more.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const MoreComponent: FC<{ isTab?: boolean }> = ({ isTab = false }) => {
}

return (
<div style={!isTab ? {} : { marginLeft: "-10px", marginRight: "-10px" }}>
<div style={!isTab ? {} : { marginLeft: "-2.8vw", marginRight: "-2.8vw" }}>
<PanelSection
title={localizationManager.getString(localizeStrEnum.MORE) || "More"}
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/power.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export const PowerComponent: FC<{ isTab?: boolean }> = ({ isTab = false }) => {
}, [supportChargeLimit, isSupportSoftwareChargeLimit]);

return (
<div style={!isTab ? {} : { marginLeft: "-10px", marginRight: "-10px" }}>
<div style={!isTab ? {} : { marginLeft: "-2.8vw", marginRight: "-2.8vw" }}>
{show && (
<PanelSection title="Power">
{!isTab && (
Expand Down
1 change: 1 addition & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ const TabView: FC<{ show?: boolean }> = ({ show = true }) => {
style={{
height: "95%",
width: "calc(100vw - 50px)",
maxWidth: "100%",
marginTop: "-12px",
position: "absolute",
contain: "layout style paint",
Expand Down