From da9585e50192885fb29318ba26751343c6da5dde Mon Sep 17 00:00:00 2001
From: Ooh-Ao <chanachai.pmg.eng@gmail.com>
Date: Tue, 23 Jul 2024 20:46:50 +0700
Subject: [PATCH] widget

---
 src/app/layout-widjet/layout-widjet.component.css | 10 ++++++----
 src/app/layout-widjet/layout-widjet.component.ts  |  5 +++--
 src/app/services/widjet.service.ts                | 12 ++++++------
 3 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/src/app/layout-widjet/layout-widjet.component.css b/src/app/layout-widjet/layout-widjet.component.css
index d2ed37f..45e4db7 100644
--- a/src/app/layout-widjet/layout-widjet.component.css
+++ b/src/app/layout-widjet/layout-widjet.component.css
@@ -1,5 +1,7 @@
-body, html {
-  margin: 0;
-  padding: 0;
-  height: 200%;
+body,
+html {
+  overflow-y: auto !important;
+  margin: 0 !important;
+  padding: 0 !important;
+  /* height: 200%; */
 }
diff --git a/src/app/layout-widjet/layout-widjet.component.ts b/src/app/layout-widjet/layout-widjet.component.ts
index 3636497..5651265 100644
--- a/src/app/layout-widjet/layout-widjet.component.ts
+++ b/src/app/layout-widjet/layout-widjet.component.ts
@@ -1,4 +1,4 @@
-import { Component, OnInit } from '@angular/core';
+import { Component, OnInit, ViewEncapsulation } from '@angular/core';
 import { ServicesComponent } from '../services/services.component';
 import { Service, WidjetService } from '../services/widjet.service';
 import { CommonModule } from '@angular/common';
@@ -9,7 +9,8 @@ import { ActivatedRoute } from '@angular/router';
   standalone: true,
   imports: [CommonModule, ServicesComponent],
   templateUrl: './layout-widjet.component.html',
-  styleUrls: ['./layout-widjet.component.css']
+  styleUrls: ['./layout-widjet.component.css'],
+  encapsulation: ViewEncapsulation.None
 })
 export class LayoutWidjetComponent implements OnInit {
   appName = ""
diff --git a/src/app/services/widjet.service.ts b/src/app/services/widjet.service.ts
index c20226c..19179f3 100644
--- a/src/app/services/widjet.service.ts
+++ b/src/app/services/widjet.service.ts
@@ -40,7 +40,7 @@ export class WidjetService {
         dataModel: "ss",
         dataSoure: "sss",
         api: "",
-        width: 6,
+        width: 12,
         heigth: "",
         tag: ""
       },
@@ -51,7 +51,7 @@ export class WidjetService {
         dataModel: "ss",
         dataSoure: "sss",
         api: "",
-        width: 6,
+        width: 12,
         heigth: "",
         tag: ""
       },
@@ -62,7 +62,7 @@ export class WidjetService {
         dataModel: "ss",
         dataSoure: "sss",
         api: "select data",
-        width: 3,
+        width: 12,
         heigth: "",
         tag: ""
       },
@@ -73,7 +73,7 @@ export class WidjetService {
         dataModel: "4444",
         dataSoure: "2312",
         api: "https://hrplus.myhr.co.th/hr/taapi/leave/statistic?yearId=2024",
-        width: 3,
+        width: 12,
         heigth: "",
         tag: ""
       },
@@ -84,7 +84,7 @@ export class WidjetService {
         dataModel: "4444",
         dataSoure: "2312",
         api: "https://hrplus.myhr.co.th/hr/taapi/leave/statistic?yearId=2024",
-        width: 3,
+        width: 12,
         heigth: "",
         tag: ""
       },
@@ -95,7 +95,7 @@ export class WidjetService {
         dataModel: "4444",
         dataSoure: "2312",
         api: "https://hrplus.myhr.co.th/hr/taapi/leave/statistic?yearId=2024",
-        width: 3,
+        width: 12,
         heigth: "",
         tag: ""
       }
--
libgit2 0.26.0