Skip to content

A self-hosted media server and file management system

install aspect ratio plugin

aminnausineae7cd0343c7
diff --git a/package-lock.json b/package-lock.json
index 9c37f67b..9db3322b 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -5,6 +5,7 @@
"packages": {
"": {
"dependencies": {
+ "@tailwindcss/aspect-ratio": "^0.4.2",
"@tailwindcss/forms": "^0.5.7"
},
"devDependencies": {
@@ -664,6 +665,14 @@
"win32"
]
},
+ "node_modules/@tailwindcss/aspect-ratio": {
+ "version": "0.4.2",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/aspect-ratio/-/aspect-ratio-0.4.2.tgz",
+ "integrity": "sha512-8QPrypskfBa7QIMuKHg2TA7BqES6vhBrDLOv8Unb6FcFyd3TjKbc6lcmb9UPQHxfl24sXoJ41ux/H7qQQvfaSQ==",
+ "peerDependencies": {
+ "tailwindcss": ">=2.0.0 || >=3.0.0 || >=3.0.0-alpha.1"
+ }
+ },
"node_modules/@tailwindcss/forms": {
"version": "0.5.7",
"resolved": "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.5.7.tgz",
diff --git a/package.json b/package.json
index 8cd03a1a..a3c6445e 100644
--- a/package.json
+++ b/package.json
@@ -14,6 +14,7 @@
"vite": "^5.0.0"
},
"dependencies": {
+ "@tailwindcss/aspect-ratio": "^0.4.2",
"@tailwindcss/forms": "^0.5.7"
}
}
diff --git a/tailwind.config.js b/tailwind.config.js
index 9ee80f6e..5171305d 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -14,7 +14,13 @@ export default {
"./resources/**/*.vue",
],
theme: {
- extend: {},
+ extend: {
+ aspectRatio: {
+ 'video': '16 / 9',
+ 'square': '1 / 1',
+ 'portrait': '9 / 16'
+ },
+ },
},
variants: {
extend: {
@@ -24,6 +30,9 @@ export default {
},
},
},
- plugins: [forms],
+ plugins: [
+ require('@tailwindcss/forms'),
+ require('@tailwindcss/aspect-ratio'),
+ ]
}