Skip to content

Commit

Permalink
Merge branch 'master' into imprv/153742-153037-security-setting-new-d…
Browse files Browse the repository at this point in the history
…esign
  • Loading branch information
kazutoweseek committed Jan 22, 2025
2 parents d8fcbc7 + 7c204ce commit 2063190
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ import type {
import { pagePathUtils } from '@growi/core/dist/utils';
import { GlobalCodeMirrorEditorKey } from '@growi/editor';
import { useCodeMirrorEditorIsolated } from '@growi/editor/dist/client/stores/codemirror-editor';
import { auto } from '@popperjs/core';
import { useTranslation } from 'next-i18next';
import dynamic from 'next/dynamic';
import Link from 'next/link';
import { useRouter } from 'next/router';
import { useTranslation } from 'next-i18next';
import Sticky from 'react-stickynode';
import { DropdownItem, UncontrolledTooltip } from 'reactstrap';

Expand All @@ -22,11 +21,6 @@ import { toastSuccess, toastError, toastWarning } from '~/client/util/toastr';
import { GroundGlassBar } from '~/components/Navbar/GroundGlassBar';
import type { OnDuplicatedFunction, OnRenamedFunction, OnDeletedFunction } from '~/interfaces/ui';
import { useShouldExpandContent } from '~/services/layout/use-should-expand-content';
import {
useCurrentPathname,
useCurrentUser, useIsGuestUser, useIsReadOnlyUser, useIsLocalAccountRegistrationEnabled, useIsSharedUser, useShareLinkId,
} from '~/stores-universal/context';
import { useEditorMode } from '~/stores-universal/ui';
import {
usePageAccessoriesModal, PageAccessoriesModalContents, type IPageForPageDuplicateModal,
usePageDuplicateModal, usePageRenameModal, usePageDeleteModal, usePagePresentationModal,
Expand All @@ -40,6 +34,11 @@ import {
useIsAbleToChangeEditorMode,
useIsDeviceLargerThanMd,
} from '~/stores/ui';
import {
useCurrentPathname,
useCurrentUser, useIsGuestUser, useIsReadOnlyUser, useIsLocalAccountRegistrationEnabled, useIsSharedUser, useShareLinkId,
} from '~/stores-universal/context';
import { useEditorMode } from '~/stores-universal/ui';

import { NotAvailable } from '../NotAvailable';
import { Skeleton } from '../Skeleton';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@
}
}
}

@media print {
.grw-page-path-nav-sticky :global {
.sticky-inner-wrapper {
position: static !important;
}
}
}
2 changes: 1 addition & 1 deletion apps/app/src/components/Layout/BasicLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const BasicLayout = ({ children, className }: Props): JSX.Element => {
return (
<RawLayout className={`${moduleClass} ${className ?? ''}`}>
<div className="page-wrapper flex-row">
<div className="z-2">
<div className="z-2 d-print-none">
<Sidebar />
</div>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@use '@growi/core-styles/scss/bootstrap/init' as bs;

.page-content-footer :global {
border-top: solid 1px transparent;
border-top: solid 1px var(--bs-border-color);
.page-meta {
font-size: 0.95em;
}
Expand Down
10 changes: 4 additions & 6 deletions apps/app/src/components/PageView/PageContentFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ export const PageContentFooter = (props: PageContentFooterProps): JSX.Element =>
}

return (
<div className={`${styles['page-content-footer']} page-content-footer py-4 d-edit-none d-print-none}`}>
<div className="container-lg grw-container-convertible">
<div className="page-meta">
<AuthorInfo user={creator} date={createdAt} mode="create" locate="footer" />
<AuthorInfo user={lastUpdateUser} date={updatedAt} mode="update" locate="footer" />
</div>
<div className={`${styles['page-content-footer']} my-4 pt-4 d-edit-none d-print-none}`}>
<div className="page-meta">
<AuthorInfo user={creator} date={createdAt} mode="create" locate="footer" />
<AuthorInfo user={lastUpdateUser} date={updatedAt} mode="update" locate="footer" />
</div>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion apps/app/src/components/PageView/PageViewLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const PageViewLayout = (props: Props): JSX.Element => {
</div>

{ footerContents != null && (
<footer className={`footer d-edit-none wide-gutter-x-lg ${fluidLayoutClass}`}>
<footer className={`footer d-edit-none container-lg wide-gutter-x-lg ${fluidLayoutClass}`}>
{footerContents}
</footer>
) }
Expand Down

0 comments on commit 2063190

Please sign in to comment.