feat: Style tweaks.

This commit is contained in:
Ahmed Bouhuolia
2020-07-04 02:58:58 +02:00
parent cfbe89498a
commit a279a9c5da
5 changed files with 9 additions and 7 deletions

View File

@@ -9,8 +9,10 @@ function DashboardSplitPane({
sidebarExpended,
children
}) {
const initialSize = 190;
const [defaultSize, setDefaultSize] = useState(
parseInt(localStorage.getItem('dashboard-size'), 10) || 220,
parseInt(localStorage.getItem('dashboard-size'), 10) || initialSize,
);
const debounceSaveSize = useRef(
debounce((size) => {