Skip to content

Commit

Permalink
refactor(responsive): 🎉 update responsive design
Browse files Browse the repository at this point in the history
  • Loading branch information
gokhangunduz committed Aug 11, 2023
1 parent 0bf614f commit a3416fb
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1524,6 +1524,11 @@ video {
cursor: pointer;
}

.select-none{
-webkit-user-select: none;
user-select: none;
}

.resize{
resize: both;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/ActionCells/OrganizationActionCells.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function OrganizationActionCells({
text={
<BiPencil
className={`${
envOnPremise ? "text-layer-light-500" : "text-red-600"
envOnPremise ? "text-layer-light-500" : "text-layer-primary-500"
}`}
/>
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function Sidebar(): ReactElement {

return (
<Fragment>
<div className="fixed flex flex-col items-center gap-4 h-screen w-16 lg:w-20 py-2 bg-layer-light-50 shadow-2xl z-40 border-r border-layer-light-200 animate__animated animate__fadeInLeft">
<div className="fixed flex flex-col items-center gap-4 h-screen w-16 lg:w-20 py-2 bg-layer-light-50 shadow-2xl z-40 border-r border-layer-light-200 select-none animate__animated animate__fadeInLeft ">
<Link to={`/`}>
<img
draggable="false"
Expand Down
2 changes: 1 addition & 1 deletion src/components/SidebarLists/SidebarListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default function SidebarListItem({
return (
<div
key={name}
className={`flex cursor-pointer animate__animated animate__fadeIn border rounded-lg hover:scale-[0.98] ${
className={`flex cursor-pointer animate__animated animate__fadeIn border rounded-lg hover:scale-[0.98] select-none ${
selected
? "bg-layer-light-100 border-layer-light-400 shadow"
: "bg-layer-light-50 border-layer-light-200 shadow-sm"
Expand Down
2 changes: 1 addition & 1 deletion src/components/SidebarMenuItem/SideBarMenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default function SideBarMenuItem({
return (
<div
onClick={() => !loading && !disabled && handleClick()}
className={`${activeSwitcher()} relative transition-500 p-2 rounded-md cursor-pointer hover:scale-90 animate__animated animate__fadeInLeft ${
className={`${activeSwitcher()} relative transition-500 p-2 rounded-md cursor-pointer hover:scale-90 select-none animate__animated animate__fadeInLeft ${
(loading || disabled) && "!cursor-not-allowed"
}`}
onMouseEnter={() => !loading && !disabled && setIsHover(true)}
Expand Down
2 changes: 1 addition & 1 deletion src/components/SidebarStaticItem/SidebarStaticItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function SidebarStaticItem({
return (
<Link
to={to}
className={`transition-all duration-500 p-2 rounded-md cursor-pointer hover:scale-90 animate__animated animate__fadeInLeft relative ${
className={`transition-all duration-500 p-2 rounded-md cursor-pointer hover:scale-90 animate__animated animate__fadeInLeft relative select-none ${
location?.pathname?.includes(to) &&
"bg-layer-light-100 transition-all duration-500"
}`}
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/SidebarContentLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export default function SidebarContentLayout(): ReactElement {

return (
<div
className={`fixed flex flex-col justify-between left-16 lg:left-20 w-fill-available md:w-[40rem] h-full bg-layer-light-50 shadow-2xl animate__animated animate__fadeInLeftBig animate__fast z-[32] border-r border-layer-light-200 rounded-r-xl ${
className={`fixed flex flex-col justify-between left-16 lg:left-20 w-fill-available md:w-[40rem] h-full bg-layer-light-50 shadow-2xl animate__animated animate__fadeInLeftBig animate__fast z-[32] border-r border-layer-light-200 rounded-r-xl select-none ${
url?.robotName || sidebarState?.isCreateMode ? "px-8 pt-8 pb-2" : "p-8"
}`}
>
Expand Down

0 comments on commit a3416fb

Please sign in to comment.