mirror of
https://github.com/Spythere/genera-tor.git
synced 2026-05-03 13:38:12 +00:00
chore: improved responsiveness
This commit is contained in:
@@ -111,10 +111,4 @@ footer {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 0.5em 0;
|
padding: 0.5em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 500px) {
|
|
||||||
#app {
|
|
||||||
font-size: calc(1vw + 0.65rem);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -2,23 +2,6 @@
|
|||||||
@use 'colors';
|
@use 'colors';
|
||||||
@use 'sass:color';
|
@use 'sass:color';
|
||||||
|
|
||||||
// Global scrollbar style
|
|
||||||
::-webkit-scrollbar {
|
|
||||||
width: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
::-webkit-scrollbar-track {
|
|
||||||
background: #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb {
|
|
||||||
background: #888;
|
|
||||||
}
|
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb:hover {
|
|
||||||
background: #555;
|
|
||||||
}
|
|
||||||
|
|
||||||
body,
|
body,
|
||||||
html {
|
html {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|||||||
@@ -15,13 +15,15 @@ $darkModeTextCol: #eee;
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 550px) {
|
@media screen and (max-width: 550px) {
|
||||||
font-size: 3vw;
|
font-size: 0.85em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
table.order-table {
|
table.order-table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
table-layout: fixed;
|
||||||
|
min-width: 750px;
|
||||||
|
|
||||||
border: 2px solid black;
|
border: 2px solid black;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
|
|||||||
+8
-9
@@ -42,7 +42,7 @@ import { TPanelMode } from '../types/dataTypes';
|
|||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const store = useStore();
|
const store = useStore();
|
||||||
|
|
||||||
const navActions: TPanelMode[] = ['OrderListPanel', 'OrderMessagePanel', 'OrderTrainPickerPanel'];
|
const navActions: TPanelMode[] = ['OrderMessagePanel', 'OrderListPanel', 'OrderTrainPickerPanel'];
|
||||||
|
|
||||||
function selectOrderMode(mode: TPanelMode) {
|
function selectOrderMode(mode: TPanelMode) {
|
||||||
store.panelMode = mode;
|
store.panelMode = mode;
|
||||||
@@ -75,29 +75,28 @@ const panelComponent = computed(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.home-container {
|
.home-container {
|
||||||
display: flex;
|
display: grid;
|
||||||
flex-wrap: wrap;
|
grid-template-columns: 800px 500px;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 2em 1em;
|
gap: 2em 1em;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
& > div {
|
& > div {
|
||||||
max-height: calc(100vh - 5em);
|
height: calc(100vh - 5em);
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 650px) {
|
@media screen and (max-width: 1350px) {
|
||||||
|
grid-template-columns: auto;
|
||||||
padding: 1em 0.5em;
|
padding: 1em 0.5em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.order-container {
|
.order-container {
|
||||||
max-width: 800px;
|
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: start;
|
align-items: start;
|
||||||
|
max-width: 800px;
|
||||||
|
|
||||||
@media screen and (max-width: 650px) {
|
@media screen and (max-width: 650px) {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -105,8 +104,8 @@ const panelComponent = computed(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.panel-container {
|
.panel-container {
|
||||||
width: 500px;
|
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
|
max-width: 800px;
|
||||||
|
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-rows: auto auto 1fr;
|
grid-template-rows: auto auto 1fr;
|
||||||
|
|||||||
Reference in New Issue
Block a user