Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-takei committed Apr 18, 2024
1 parent 5de2ef0 commit d1141a5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const ShareLink = (): JSX.Element => {

return (
<div className="container p-0" data-testid="share-link-management">
<h3 className="grw-modal-head d-flex pb-2">
<h3 className="d-flex pb-2">
{ t('share_links.share_link_list') }
<button className="btn btn-danger ms-auto " type="button" onClick={deleteAllLinksButtonHandler}>{t('delete_all')}</button>
</h3>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const ShareLinkForm: FC<Props> = (props: Props) => {

return (
<div className="share-link-form p-3">
<h3 className="grw-modal-head pb-2"> { t('share_links.share_settings') }</h3>
<h3 className="pb-2"> { t('share_links.share_settings') }</h3>
<div className=" p-3">

{/* ExpirationTypeOptions */}
Expand Down
6 changes: 3 additions & 3 deletions apps/app/src/components/PageCreateModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const PageCreateModal: React.FC = () => {
return (
<div className="row">
<fieldset className="col-12 mb-4">
<h3 className="grw-modal-head pb-2">{t('create_page_dropdown.todays.desc', { ns: 'commons' })}</h3>
<h3 className="pb-2">{t('create_page_dropdown.todays.desc', { ns: 'commons' })}</h3>

<div className="d-sm-flex align-items-center justify-items-between">

Expand Down Expand Up @@ -181,7 +181,7 @@ const PageCreateModal: React.FC = () => {
return (
<div className="row" data-testid="row-create-page-under-below">
<fieldset className="col-12 mb-4">
<h3 className="grw-modal-head pb-2">{t('Create under')}</h3>
<h3 className="pb-2">{t('Create under')}</h3>

<div className="d-sm-flex align-items-center justify-items-between">
<div className="flex-fill">
Expand Down Expand Up @@ -239,7 +239,7 @@ const PageCreateModal: React.FC = () => {
<div className="row">
<fieldset className="col-12">

<h3 className="grw-modal-head pb-2">
<h3 className="pb-2">
{t('template.modal_label.Create template under')}<br />
<code className="h6" data-testid="grw-page-create-modal-path-name">{pathname}</code>
</h3>
Expand Down
4 changes: 0 additions & 4 deletions apps/app/src/styles/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
}
}

.grw-modal-head {
border-bottom: 1px solid transparent;
}

.grw-scrollable-modal-body {
max-height: calc(100vh - 330px);
overflow-y: scroll;
Expand Down

0 comments on commit d1141a5

Please sign in to comment.