Skip to content

Commit

Permalink
fix(DialogFooter): flex issue on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
zaaakher committed Jun 3, 2024
1 parent de43944 commit 39ddbf6
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ declare COMPONENTS_CHANGED=$(git diff --cached --name-only | grep 'packages/comp

# Run `tsc` if changes are detected in the respective directories
if [[ $COMPONENTS_CHANGED ]]; then
pushd packages/components && tsc --noEmit || exit 1
pushd packages/components && "$NVM_SYMLINK/tsc.cmd" --noEmit || exit 1
popd
fi
7 changes: 7 additions & 0 deletions apps/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# hawa-docs

## 0.0.88

### Patch Changes

- Updated dependencies
- @sikka/hawa@0.42.2

## 0.0.87

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hawa-docs",
"version": "0.0.87",
"version": "0.0.88",
"private": true,
"scripts": {
"dev": "next dev -p 3001",
Expand Down
6 changes: 6 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @sikka/hawa

## 0.42.2

### Patch Changes

- Fix `DialogFooter` flex issue on mobile screens

## 0.42.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/components/elements/dialog/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ const DialogFooter = ({
}: React.HTMLAttributes<HTMLDivElement>) => (
<div
className={cn(
"hawa-flex hawa-flex-col-reverse sm:hawa-flex-row sm:hawa-justify-end hawa-gap-2",
"hawa-flex hawa-flex-col xs:hawa-flex-row sm:hawa-justify-end hawa-gap-2",
className,
)}
{...props}
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sikka/hawa",
"version": "0.42.1",
"version": "0.42.2",
"description": "Modern UI Kit made with Tailwind",
"author": {
"name": "Sikka Software",
Expand Down
24 changes: 12 additions & 12 deletions packages/components/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,19 @@ const config: Config = {
prefix: "hawa-",
darkMode: ["class"],
theme: {
screens: {
mobile: "430px",
tablet: "640px",
laptop: "1024px",
desktop: "1280px",
},
container: {
center: true,
padding: "2rem",
screens: { "2xl": "1400px" },
},
extend: {
screens: {
xs: "440px",
mobile: "430px",
tablet: "640px",
laptop: "1024px",
desktop: "1280px",
},
container: {
center: true,
padding: "2rem",
screens: { "2xl": "1400px" },
},
arrows: {
default: {
borderColor: "hsl(var(--border))",
Expand All @@ -36,7 +37,6 @@ const config: Config = {
},
boxShadow: { neobrutalism: "5px 5px 0px 0px rgba(0,0,0,1);" },
maxWidth: { "2xs": "250px" },
screens: { xs: "440px" },
transitionProperty: { height: "height" },
borderRadius: {
inner: "var(--radius-inner)",
Expand Down
7 changes: 7 additions & 0 deletions packages/storybook/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# hawa-storybook

## 0.26.109

### Patch Changes

- Updated dependencies
- @sikka/hawa@0.42.2

## 0.26.108

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hawa-storybook",
"version": "0.26.108",
"version": "0.26.109",
"description": "Modern UI Kit made with Tailwind",
"author": {
"name": "Sikka Software",
Expand Down

0 comments on commit 39ddbf6

Please sign in to comment.