Skip to content

Commit

Permalink
Revert "Fully functioning Iphone SE width Support"
Browse files Browse the repository at this point in the history
This reverts commit 9996e30.
  • Loading branch information
Crazypkr1099 committed Sep 6, 2023
1 parent 9996e30 commit 54a8663
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions packages/desktop-client/src/components/Titlebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export function SyncButton({ style }: SyncButtonProps) {
WebkitAppRegion: 'none',
color: mobileColor,
},
media(`(min-width: ${tokens.breakpoint_extrasmall})`, {
media(`(min-width: ${tokens.breakpoint_small})`, {
color:
syncState === 'error'
? colors.r4
Expand Down Expand Up @@ -296,15 +296,7 @@ export default function Titlebar({ style }) {
let navigate = useNavigate();
let location = useLocation();
let sidebar = useSidebar();
const { isNarrowWidth } = useResponsive();
const { isExtraSmallWidth } = useResponsive();
let isWidth = false;

if (isNarrowWidth || isExtraSmallWidth) {
isWidth = true;
} else {
isWidth = false;
}
let { isNarrowWidth } = useResponsive();
let serverURL = useServerURL();
let floatingSidebar = useSelector(
state => state.prefs.global.floatingSidebar,
Expand All @@ -313,7 +305,7 @@ export default function Titlebar({ style }) {
let privacyModeFeatureFlag = useFeatureFlag('privacyMode');
let themesFlag = useFeatureFlag('themes');

return isWidth ? null : (
return isNarrowWidth ? null : (
<View
style={{
flexDirection: 'row',
Expand Down

0 comments on commit 54a8663

Please sign in to comment.