Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

メンターのカテゴリー画面のカテゴリー作成ボタンの移動 #6729

Merged
merged 2 commits into from
Aug 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@
align-items: center

.page-header__title
+text-block(1.25rem 1, 700)
color: var(--main)
line-height: 1
font-weight: 700
font-feature-settings: "palt"
letter-spacing: .02em
+media-breakpoint-up(md)
font-size: 1.25rem
+media-breakpoint-down(sm)
font-size: 1.125rem
word-wrap: break-word
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
border-bottom: solid 1px var(--border)

.page-main-header__inner
padding-block: .75rem
padding-block: .5rem
+media-breakpoint-up(md)
min-height: calc(3.75rem - 1px)
min-height: calc(3.5rem - 1px)
display: flex
align-items: center
+media-breakpoint-down(sm)
Expand All @@ -24,6 +24,6 @@
color: var(--main)
font-weight: 700
+media-breakpoint-up(md)
+text-block(1.25rem 1.4)
+text-block(1.125rem 1.4)
+media-breakpoint-down(sm)
+text-block(1rem 1.4)
11 changes: 1 addition & 10 deletions app/views/mentor/categories/index.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,9 @@ header.page-header
.container
.page-header__inner
h1.page-header__title = title
.page-header-actions
- if current_user.mentor?
.page-header-actions__items
.page-header-actions__item
= link_to new_mentor_category_path, class: 'a-button is-md is-secondary is-block' do
i.fa-regular.fa-plus
| カテゴリー作成

= render 'mentor/mentor_page_tabs'

.page-main
main.page-main
header.page-main-header
.container
.page-main-header__inner
Expand All @@ -28,7 +20,6 @@ header.page-header
= link_to new_mentor_category_path, class: 'a-button is-md is-secondary is-block' do
i.fa-regular.fa-plus
| カテゴリー作成

.page-body
.container.is-lg
= react_component 'Categories'