Skip to content

Commit

Permalink
Merge pull request #5 from fiskhandlarn/fix/github-button-size
Browse files Browse the repository at this point in the history
Make github button fill it's parent
  • Loading branch information
fiskhandlarn authored Dec 5, 2023
2 parents da86a45 + dd410bc commit 8eda711
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "birkan",
"version": "0.1",
"version": "0.2",
"description": "Bacon or beercan or Birkan‽",
"license": "AGPL-3.0-or-later",
"author": {
Expand Down
4 changes: 2 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<script>(function (d){d.className=d.className.replace(/\bno-js\b/, 'js')})(document.documentElement)</script>

<link rel="stylesheet" href="/assets/app_0.1.css">
<link rel="stylesheet" href="/assets/app_0.2.css">

<meta name="description" content="Bacon or beercan or Birkan‽">
<meta property="og:title" content="Bacon or beercan or Birkan‽">
Expand Down Expand Up @@ -65,6 +65,6 @@ <h1 class="title">Bacon or beercan or Birkan‽</h1>
</a>
</main>
</div>
<script src="/assets/app_0.1.js"></script>
<script src="/assets/app_0.2.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions resources/styles/components/_github-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
height: auto;
max-height: 100%;
max-width: 100%;
width: 100%;
}

&:hover,
Expand Down
6 changes: 3 additions & 3 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ export default ({ command }) => ({
'resources/styles/app.scss',
],
output: {
entryFileNames: `[name]_0.1.js`,
chunkFileNames: `[name]_0.1.js`,
entryFileNames: `[name]_0.2.js`,
chunkFileNames: `[name]_0.2.js`,
assetFileNames: (assetInfo) => {
if (assetInfo.name == 'app.css') {
return 'app_0.1.css';
return 'app_0.2.css';
}
return assetInfo.name;
},
Expand Down

0 comments on commit 8eda711

Please sign in to comment.