Skip to content
This repository has been archived by the owner on Jun 19, 2022. It is now read-only.

Commit

Permalink
improvement: make tabs reorderable
Browse files Browse the repository at this point in the history
  • Loading branch information
MystPi committed Feb 4, 2022
1 parent 3be1fc3 commit f33bab2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@tailwind utilities;

@layer base {
*, *::after, *::before {
*:not(#tabbar>button), *::after, *::before, {
@apply select-none;
-webkit-user-drag: none;
-webkit-app-region: no-drag;
Expand Down
5 changes: 3 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
<head>
<meta charset="UTF-8">
<title>Ninetails</title>
<link rel="stylesheet" href="roboto/roboto.css">
<link rel="stylesheet" href="tailwind.css">
<link rel="stylesheet" href="./roboto/roboto.css">
<link rel="stylesheet" href="./tailwind.css">
<script src="./js/sortable.js"></script>
</head>
<body class="m-0 p-0 h-[100vh]">
<!-- Loading screen -->
Expand Down
2 changes: 2 additions & 0 deletions src/js/sortable.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/js/startup.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ fetch('../package.json')
});


const sortable = Sortable.create(byId('tabbar'), {
animation: 150
});


setTimeout(() => {
byId('loading').classList.add('opacity-0');
setTimeout(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/tailwind.css

Large diffs are not rendered by default.

0 comments on commit f33bab2

Please sign in to comment.