fix: responsiveness

This commit is contained in:
2025-03-08 20:37:00 +01:00
parent 13a9baa175
commit 744804d445
3 changed files with 9 additions and 6 deletions
+1 -3
View File
@@ -105,15 +105,13 @@ onMounted(() => {
margin-bottom: 1em; margin-bottom: 1em;
} }
@media screen and (max-width: 400px) { @media screen and (max-width: global.$breakpointSm) {
.tabs-modes { .tabs-modes {
grid-template-areas: grid-template-areas:
'stock wiki' 'stock wiki'
'storage storage' 'storage storage'
'numgen stockgen'; 'numgen stockgen';
grid-template-columns: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr);
// grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
} }
} }
</style> </style>
+5 -1
View File
@@ -631,11 +631,15 @@ export default defineComponent({
display: grid; display: grid;
gap: 0.5em; gap: 0.5em;
grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
button { button {
width: 100%; width: 100%;
&[data-button-tooltip] {
font-size: 0.85em;
}
input { input {
opacity: 0; opacity: 0;
width: 0; width: 0;
+3 -2
View File
@@ -11,7 +11,6 @@
<li <li
v-for="(stockString, stockName) in store.storageStockData" v-for="(stockString, stockName) in store.storageStockData"
:key="stockName" :key="stockName"
:data-current="store.chosenStorageStockName == stockName"
> >
<div class="storage-item-top"> <div class="storage-item-top">
<button class="btn btn--text btn-name" @click="chooseStorageStock(stockName)"> <button class="btn btn--text btn-name" @click="chooseStorageStock(stockName)">
@@ -73,7 +72,6 @@ export default defineComponent({
data: () => ({ data: () => ({
store: useStore(), store: useStore(),
expandedEntries: [] as string[], expandedEntries: [] as string[],
}), }),
@@ -93,6 +91,7 @@ export default defineComponent({
try { try {
this.loadStockFromString(this.store.storageStockData[stockName]); this.loadStockFromString(this.store.storageStockData[stockName]);
this.store.chosenStorageStockName = stockName; this.store.chosenStorageStockName = stockName;
this.$router.push('/');
} catch (error) { } catch (error) {
console.log(error); console.log(error);
} }
@@ -117,6 +116,8 @@ export default defineComponent({
.storage-list-wrapper { .storage-list-wrapper {
position: relative; position: relative;
height: 730px;
overflow: auto;
} }
ul.storage-list { ul.storage-list {