Compare commits

..

9 Commits

Author SHA1 Message Date
ebf9a83b60 improved css for stock view
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
2025-12-05 12:45:45 +01:00
1d55325501 Merge branch 'feature/tile_menu' into dev 2025-12-04 22:30:26 +01:00
462d0bb66e increased padding of bottom on tiny screens
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
2025-12-04 22:30:08 +01:00
fda7f34b99 tried to fix bug: easylist would register clicks when scolling on mobile devices
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
2025-12-04 21:50:59 +01:00
56b79e1ecf minor CSS improvement
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
2025-12-04 21:48:13 +01:00
72cb91f865 bugfix
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
2025-12-04 21:05:36 +01:00
3833f2f978 css improvement, coping to other themes
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
2025-12-04 20:54:01 +01:00
5e0b59bacf CSS improvement
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
2025-12-04 20:44:54 +01:00
55f5a663fe improving main menu for mobile devices
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
2025-12-04 20:18:21 +01:00
8 changed files with 210 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ import TimeRecorder from './TimeRecorder.svelte';
let key = $state(null);
const router = useTinyRouter();
const modules = $state([]);
let expand = $state(false);
async function fetchModules(){
const url = `${location.protocol}//${location.host.replace('5173','8080')}/legacy/user/modules`;
@@ -27,6 +28,7 @@ async function fetchModules(){
function onclick(e){
e.preventDefault();
expand = false;
let href = e.target.getAttribute('href');
if (href) router.navigate(href);
return false;
@@ -34,6 +36,7 @@ function onclick(e){
async function search(e){
e.preventDefault();
expand = false;
router.navigate(`/search?key=${key}`);
return false;
}
@@ -47,11 +50,12 @@ onMount(fetchModules);
}
</style>
<nav>
<nav class={expand?"":"collapsed"}>
<form onsubmit={search}>
<input type="text" bind:value={key} />
<button type="submit">{t('search')}</button>
</form>
<button class="symbol" onclick={e => expand = !expand}></button>
<a href="/user" {onclick} class="user">{t('users')}</a>
<a href="/company" {onclick} class="company">{t('companies')}</a>
<a href="/project" {onclick} class="project">{t('projects')}</a>
@@ -72,7 +76,7 @@ onMount(fetchModules);
{#if module.name.trim()}<a href={module.url}>{module.name}</a>{/if}
{/each}
{#if user.name }
<a onclick={logout}>{t('logout_user',{user:user.name})}</a>
<a class="logout" onclick={logout}>{t('logout_user',{user:user.name})}</a>
{/if}
<TimeRecorder />
</nav>

View File

@@ -73,7 +73,7 @@
}
function measured(evt,duration,d){
if (d > 100) return;
if (d > 10) return;
if (duration < 500){
onclick(evt);
} else {

View File

@@ -307,4 +307,11 @@ tr:hover .taglist .tag button {
.easylist .filter{
background: black;
}
@media screen and (max-width: 900px) {
#app nav a{
background: black;
color: red;
}
}

View File

@@ -426,6 +426,48 @@ a.wikilink{
float: right;
}
@media screen and (min-width: 900px) {
#app nav button.symbol{
display: none;
}
}
@media screen and (max-width: 900px) {
body{
padding-top: 13px;
}
#app nav{
grid-template-columns: 33% 34% 33%;
display: grid;
padding: 0 10px;
position: absolute;
left: 0;
right: 0;
}
#app nav form{
grid-column-end: span 2;
}
#app nav .logout{
grid-column-end: 4;
}
#app nav.collapsed a{
display: none;
}
#app nav a {
font-size: 19px !important;
display: grid;
text-align: center;
border: 1px solid;
margin: 5px;
padding: 15px 0;
border-radius: 7px;
}
}
@media screen and (max-width: 600px) {
.grid2{
display: grid;
@@ -455,6 +497,15 @@ a.wikilink{
.easylist input{
font-size: 20px;
}
#app nav{
grid-template-columns: auto auto;
}
#app nav form{
grid-column-end: span 1;
}
#app nav .logout{
grid-column-end: 3;
}
}
fieldset.vcard{

View File

@@ -297,4 +297,11 @@ tr:hover .taglist .tag button {
.easylist .filter{
background: black;
}
@media screen and (max-width: 900px) {
#app nav a{
background: black;
color: orange;
}
}

View File

@@ -504,8 +504,75 @@ a.wikilink{
float: right;
}
@media screen and (min-width: 900px) {
#app nav button.symbol{
display: none;
}
}
@media screen and (max-width: 900px) {
body{
padding-top: 30px;
}
#app nav{
grid-template-columns: 33% 34% 33%;
display: grid;
padding: 0 10px;
position: absolute;
left: 0;
right: 0;
}
#app nav form{
grid-column-end: span 2;
}
#app nav .logout{
grid-column-end: 4;
}
#app nav.collapsed a{
display: none;
}
#app nav a {
font-size: 19px !important;
display: grid;
text-align: center;
border: 1px solid;
margin: 5px;
border-radius: 7px;
}
#app nav a::before {
font-size: 30px;
}
.grid3 {
grid-template-columns: auto auto;
}
.grid3 .properties{
grid-column-end: span 2;
order: 1;
}
.grid3 .tags{
order: 2;
}
.grid3 .notes{
grid-column-end: span 2;
order: 3;
}
.grid3 .locations{
order: 5;
}
.grid3 .items{
order: 6;
}
}
@media screen and (max-width: 600px) {
.grid2{
.grid2,
.grid3{
display: grid;
grid-template-columns: auto;
}
@@ -533,6 +600,18 @@ a.wikilink{
.easylist input{
font-size: 20px;
}
#app nav{
grid-template-columns: auto auto;
}
#app nav form,
.grid3 .notes,
.grid3 .tags,
.grid3 .properties{
grid-column-end: span 1;
}
#app nav .logout{
grid-column-end: 3;
}
}
fieldset.vcard{

View File

@@ -282,4 +282,11 @@ tr:hover .taglist .tag button {
.easylist fieldset {
border-color: blue;
color: blue;
}
@media screen and (max-width: 900px) {
#app nav a{
background: white;
color: blue;
}
}

View File

@@ -426,6 +426,48 @@ a.wikilink{
float: right;
}
@media screen and (min-width: 900px) {
#app nav button.symbol{
display: none;
}
}
@media screen and (max-width: 900px) {
body{
padding-top: 13px;
}
#app nav{
grid-template-columns: 33% 34% 33%;
display: grid;
padding: 0 10px;
position: absolute;
left: 0;
right: 0;
}
#app nav form{
grid-column-end: span 2;
}
#app nav .logout{
grid-column-end: 4;
}
#app nav.collapsed a{
display: none;
}
#app nav a {
font-size: 19px !important;
display: grid;
text-align: center;
border: 1px solid;
margin: 5px;
padding: 15px 0;
border-radius: 7px;
}
}
@media screen and (max-width: 600px) {
.grid2{
display: grid;
@@ -455,6 +497,15 @@ a.wikilink{
.easylist input{
font-size: 20px;
}
#app nav{
grid-template-columns: auto auto;
}
#app nav form{
grid-column-end: span 1;
}
#app nav .logout{
grid-column-end: 3;
}
}
fieldset.vcard{