Skip to content

Commit

Permalink
Merge pull request #102 from ulu-telegram/master
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
ulugmer authored Nov 17, 2023
2 parents 7ac56b6 + 54ce5a1 commit b2aca0a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/components/left/LeftColumn.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
}
}

body.is-electron.is-macos #Main:not(.is-fullscreen) &:not(#TopicListHeader) {
body.is-electron.is-macos #Main:not(.is-fullscreen) {
justify-content: space-between;
padding: 0.5rem 0.5rem 0.5rem 4.5rem;
padding: 2rem 0.5rem 0.5rem 0.5rem;

.SearchInput {
margin-left: 0.5rem;
Expand Down
4 changes: 4 additions & 0 deletions src/components/left/main/ForumPanel.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,7 @@
display: inline-block;
}
}

.left-header {
margin-top: 2rem;
}
4 changes: 4 additions & 0 deletions src/components/left/main/LeftMainHeader.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,7 @@
width: 100%;
height: 50px;
}

.left-header {
margin-top: 2rem;
}
4 changes: 2 additions & 2 deletions src/components/left/main/LeftMainHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
import buildClassName from '../../../util/buildClassName';
import captureEscKeyListener from '../../../util/captureEscKeyListener';
import { formatDateToString } from '../../../util/dateFormat';
import { IS_APP, IS_ELECTRON, IS_MAC_OS } from '../../../util/windowEnvironment';
import { IS_APP, IS_MAC_OS } from '../../../util/windowEnvironment';

import useAppLayout from '../../../hooks/useAppLayout';
import useCommands from '../../../hooks/useCommands';
Expand Down Expand Up @@ -303,7 +303,7 @@ const LeftMainHeader: FC<OwnProps & StateProps> = ({
forceOpen={isBotMenuOpen}
positionX={shouldHideSearch && lang.isRtl ? 'right' : 'left'}
/* transformOriginY={IS_ELECTRON && IS_MAC_OS && !isFullscreen ? 50 : undefined} */
transformMarginTop={IS_ELECTRON && IS_MAC_OS ? 2 : undefined}
/* transformMarginTop={IS_ELECTRON && IS_MAC_OS ? 2 : undefined} */
onTransitionEnd={lang.isRtl ? handleDropdownMenuTransitionEnd : undefined}
>
<LeftSideMenuItems
Expand Down
10 changes: 5 additions & 5 deletions src/components/ui/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ const Menu: FC<OwnProps> = ({
bubbleStyle,
ariaLabelledBy,
children,
transformOriginX,
transformOriginY,
/* transformOriginX,
transformOriginY, */
transformMarginTop,
positionX = 'left',
positionY = 'top',
Expand Down Expand Up @@ -140,8 +140,8 @@ const Menu: FC<OwnProps> = ({
shouldCloseFast && 'close-fast',
);

const transformOriginYStyle = transformOriginY !== undefined ? `${transformOriginY}px` : undefined;
const transformOriginXStyle = transformOriginX !== undefined ? `${transformOriginX}px` : undefined;
/* const transformOriginYStyle = transformOriginY !== undefined ? `${transformOriginY}px` : undefined;
const transformOriginXStyle = transformOriginX !== undefined ? `${transformOriginX}px` : undefined; */
const transformMarginTopStyle = transformMarginTop !== undefined ? `${transformMarginTop}rem` : undefined;

const menu = (
Expand Down Expand Up @@ -174,7 +174,7 @@ const Menu: FC<OwnProps> = ({
ref={menuRef}
className={bubbleFullClassName}
style={buildStyle(
`transform-origin: ${transformOriginXStyle || positionX} ${transformOriginYStyle || positionY}`,
/* `transform-origin: ${transformOriginXStyle || positionX} ${transformOriginYStyle || positionY}`, */
`margin-top: ${transformMarginTopStyle}`,
bubbleStyle,
)}
Expand Down

0 comments on commit b2aca0a

Please sign in to comment.