Skip to content

Commit

Permalink
Merge pull request #8986 from weseek/support/150156-sidebar-header-te…
Browse files Browse the repository at this point in the history
…xt-size

support: Sidebar header text size
  • Loading branch information
miya authored Jul 25, 2024
2 parents 10ba086 + 2e23f97 commit a933337
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apps/app/src/client/components/Sidebar/Bookmarks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const Bookmarks = () : JSX.Element => {
return (
<div className="px-3">
<div className="grw-sidebar-content-header">
<h4 className="mb-0 py-4">{t('Bookmarks')}</h4>
<h3 className="fs-6 fw-bold mb-0 py-4">{t('Bookmarks')}</h3>
</div>
{isGuestUser ? (
<h4 className="fs-6">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ export const CustomSidebar = (): JSX.Element => {
return (
<div className="pt-4 pb-3 px-3">
<div className="grw-sidebar-content-header d-flex">
<h4 className="mb-0">
<h3 className="fs-6 fw-bold mb-0">
{t('CustomSidebar')}
{ !isLoading && <Link href="/Sidebar#edit" className="h6 ms-2"><span className="material-symbols-outlined">edit</span></Link> }
</h4>
</h3>
{ !isLoading && <SidebarHeaderReloadButton onClick={() => mutate()} /> }
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ export const InAppNotification = (): JSX.Element => {
return (
<div className="px-3">
<div className="grw-sidebar-content-header py-4 d-flex">
<h4 className="mb-0">
<h3 className="fs-6 fw-bold mb-0">
{t('In-App Notification')}
</h4>
</h3>
</div>

<InAppNotificationForms
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const PageTree = (): JSX.Element => {
return (
<div className="pt-4 pb-3 px-3">
<div className="grw-sidebar-content-header d-flex">
<h4 className="mb-0">{t('Page Tree')}</h4>
<h3 className="fs-6 fw-bold mb-0">{t('Page Tree')}</h3>
<Suspense>
<PageTreeHeader
isWipPageShown={isWipPageShown}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const RecentChanges = (): JSX.Element => {
return (
<div className="px-3" data-testid="grw-recent-changes">
<div className="grw-sidebar-content-header py-4 d-flex">
<h4 className="mb-0 text-nowrap">{t('Recent Changes')}</h4>
<h3 className="fs-6 fw-bold mb-0 text-nowrap">{t('Recent Changes')}</h3>
<Suspense>
<RecentChangesHeader
isSmall={isSmall}
Expand Down
2 changes: 1 addition & 1 deletion apps/app/src/client/components/Sidebar/Sidebar.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
.grw-sidebar :global {
.grw-sidebar-content-header {
.grw-btn-reload {
font-size: 18px;
font-size: 16px;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions apps/app/src/client/components/Sidebar/Tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ const Tag: FC = () => {
// todo: adjust design by XD
return (
<div className="container-lg px-3 mb-5 pb-5" data-testid="grw-sidebar-content-tags">
<div className="grw-sidebar-content-header py-3 d-flex">
<h4 className="mb-0">{t('Tags')}</h4>
<div className="grw-sidebar-content-header pt-4 pb-3 d-flex">
<h3 className="fs-6 fw-bold mb-0">{t('Tags')}</h3>
<SidebarHeaderReloadButton onClick={() => onReload()} />
</div>

Expand Down

0 comments on commit a933337

Please sign in to comment.