Skip to content

Commit 6a90b3c

Browse files
committed
improved timer page on mobiles. fix #8
1 parent 5563556 commit 6a90b3c

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
lines changed

css/style.css

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ html[xmlns] .clearfix { display: block;}
8888
.wi-child-element {
8989
display: flex;
9090
border-bottom: #eee solid 1px;
91+
flex-direction:row;
9192
}
9293
.wi-child-duration {
9394
padding: 10px;
@@ -527,4 +528,38 @@ td.ε_row {
527528

528529
.select-project {
529530
/*font-size: 24px;*/
531+
}
532+
.tags-select {
533+
width:200px;
534+
}
535+
.project-select {
536+
width:200px;
537+
}
538+
@media screen and (max-width: 700px) {
539+
.wi-child-element {
540+
display: inline-flex;
541+
flex-direction:column;
542+
width: 100%;
543+
}
544+
.wi-trash {
545+
display: inline;
546+
}
547+
.wi-child-duration {
548+
text-align: left;
549+
}
550+
.wi-child{
551+
border-bottom: 2px var(--color-background-darker) solid;
552+
}
553+
.tags-select {
554+
width:auto;
555+
}
556+
.project-select {
557+
width:auto;
558+
}
559+
.wi-play{
560+
display:table;
561+
margin: 0 auto;
562+
}
563+
564+
530565
}

js/src/timer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var moment = require("moment");
55
require("jqueryui");
66
//require("jqueryui/jquery-ui.css");
77
//import 'select2/dist/js/select2.full.js'
8-
import 'select2/dist/js/select2.js'
8+
import 'select2/dist/js/select2.full.js'
99
require('select2/dist/css/select2.css');
1010
require('daterangepicker/daterangepicker.css');
1111
require('../../css/style.css');
@@ -424,7 +424,7 @@ function() {
424424

425425

426426
$(this).select2({
427-
width: '200px',
427+
containerCssClass:'project-select',
428428
escapeMarkup : function(markup) { return markup; },
429429
placeholder: "<span class='fas fa-folder'></span>",
430430
allowClear: true,
@@ -483,7 +483,7 @@ function() {
483483

484484
$(this).select2({
485485
tags: true,
486-
width: '200px',
486+
containerCssClass:'tags-select',
487487
placeholder: "Select tags...",
488488
allowClear: true,
489489

0 commit comments

Comments
 (0)