Skip to content

Commit

Permalink
Merge pull request #62 from tosaken1116/fix/prefecture-Checkboxes-lay…
Browse files Browse the repository at this point in the history
…out-shift-#61

fix: レイアウトシフトが起こらないように修正
  • Loading branch information
tosaken1116 authored Oct 5, 2023
2 parents 6a7e50d + f0f31b6 commit f5f3a85
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 28 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { style } from '@vanilla-extract/css';

export const container = style({
display: 'flex',
flexWrap: 'wrap',
alignItems: 'center',
position: 'relative',
});
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
import { style } from '@vanilla-extract/css';

export const container = style({
display: 'flex',
flexWrap: 'wrap',
flexDirection: 'column',
alignItems: 'center',
position: 'relative',
});

export const errorText = style({
fontWeight: 'bold',
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@ import { style } from '@vanilla-extract/css';

import { PRIMARY } from '@/constants/colors';

export const container = style({
display: 'flex',
flexWrap: 'wrap',
width: '80%',
placeContent: 'center',
});

export const prefectureItem = style({
width: '8rem',
listStyle: 'none',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import { style } from '@vanilla-extract/css';

export const container = style({
display: 'flex',
flexWrap: 'wrap',
});

export const prefectureItem = style({
position: 'relative',
width: '8rem',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { faCircleExclamation } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';

import { container } from './css/base.css';
import {
container,
errorIcon,
errorMessage,
errorText,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { usePrefectureCheckBoxes } from '../hooks';

import { container, prefectureItem, selectedItem } from './css/index.css';
import { container } from './css/base.css';
import { prefectureItem, selectedItem } from './css/index.css';

import type { Response } from '@/app/api/v1/prefectures/schema';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import {
checkboxStyle,
container,
labelStyle,
prefectureItem,
} from './css/loading.css';
import { container } from './css/base.css';
import { checkboxStyle, labelStyle, prefectureItem } from './css/loading.css';

import { Skeleton } from '@/components/ui/Skeleton';

Expand Down

0 comments on commit f5f3a85

Please sign in to comment.