Skip to content

Commit 28d7b1b

Browse files
committed
feat: rework sidebar width in plugin admin [closes Codeinwp/optimole-service#1337]
1 parent e4ff594 commit 28d7b1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

assets/src/dashboard/parts/connected/Sidebar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const Sidebar = () => {
4141
});
4242

4343
return (
44-
<div className="grid md:grid-cols-2 xl:flex xl:flex-col xl:mt-8 xl:mb-5 p-0 transition-all ease-in-out duration-700 gap-5 basis-4/12 2xl:basis-3/12">
44+
<div className="grid md:grid-cols-2 xl:flex xl:flex-col xl:mt-8 xl:mb-5 p-0 transition-all ease-in-out duration-700 gap-5 shrink-0 xl:w-[350px]">
4545
<div className="bg-white gap-5 flex flex-col text-gray-700 border-0 rounded-lg shadow-md p-8">
4646
<TextControl
4747
label={ optimoleDashboardApp.strings.logged_in_as }

assets/src/dashboard/parts/connected/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ const ConnectedLayout = ({
123123

124124
<div className="flex flex-col xl:flex-row mx-auto gap-5">
125125
<div
126-
className="flex flex-col justify-between mt-8 xl:mb-5 p-0 transition-all ease-in-out duration-700 relative text-gray-700 basis-8/12 2xl:basis-9/12"
126+
className="flex flex-col justify-between mt-8 xl:mb-5 p-0 transition-all ease-in-out duration-700 relative text-gray-700 grow"
127127
>
128128
{ 'dashboard' === tab && <Dashboard /> }
129129

0 commit comments

Comments
 (0)