commit 0509d8f621697bbe2b9e8416f7825619dc7730f2
parent 778f0b691c76255515543c3a7626ca34995ee687
Author: Brennen T. Mazur <brennen@madis.cool>
Date: Sun, 2 Apr 2023 22:48:59 -0600
fix firefox dashboard widget styles, clean up punchclock widget, change 'change hours' button to 'my hours' for clarity
Diffstat:
2 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/app/static/css/main.css b/app/static/css/main.css
@@ -145,10 +145,13 @@ header #logout {
text-align:right;
}
/********** WIDGETS **********/
+/*section h3 {
+ max-height: max-content;
+}*/
.permissions, .reportswidget, .activeusers, .agreements, .fleet, .punchclock {
height:max-content;
display: grid;
- align-items: center;
+ /*align-items: center;*/
justify-items: center;
text-align:center;
background-color: var(--widgetbg);
@@ -157,11 +160,15 @@ header #logout {
@media (min-width: 415px) {
.punchclock {
height:-webkit-fill-available;
+ height:-moz-available;
width:-webkit-fill-available;
+ width:-moz-available;
}
.permissions, .reportswidget, .activeusers, .agreements, .fleet {
height:-webkit-fill-available;
+ height:-moz-available;
width:-webkit-fill-available;
+ width:-moz-available;
min-height:40vh;
}
}
diff --git a/app/templates/dashboard/punchclock/widget.html b/app/templates/dashboard/punchclock/widget.html
@@ -26,10 +26,7 @@
{% endif %}
<!-- Add iff satement for clocked_in==True
<p> form.projects(choices=projects,default=(if(project[0]==0){return project[0].label })</p>
- <p>{ form.clockout() }}</p>
- <p>{ form.lunchBox() }} { form.lunchBox.label }}</p>
- <p>{ form.perdiumBox() }} { form.perdiumBox.label }}</p>
-->
- <button><a href="{{ url_for('hours',username=current_user.username) }}">Change Hours</a></button><!--routes to userhours.html-->
- <h2>{{ current_user.fname }} {{ current_user.lname }}</h2><!-- something like currenttime above -->
+ <button><a href="{{ url_for('hours',username=current_user.username) }}">My Hours</a></button>
+ <h2>{{ current_user.fname }} {{ current_user.lname }}</h2>
</section>